Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xmaddtopostfromlist(3) [centos man page]

XmAddToPostFromList(library call)										 XmAddToPostFromList(library call)

NAME
XmAddToPostFromList -- a RowColumn function that makes a menu accessible from more than one widget SYNOPSIS
#include <Xm/RowColumn.h> void XmAddToPostFromList( Widget menu, Widget post_from_widget); DESCRIPTION
XmAddToPostFromList makes a menu accessible from more than one widget. After a menu is once created, this function may be used to make that menu accessible from a second widget. The process may be repeated indefinitely. In other words, where an application would use XmCreatePop- upMenu or XmCreatePulldownMenu or their equivalent to create a new menu identical to one that already exists, it can use this function to reuse that earlier menu. If menu refers to a Popup menu, then the post_from_widget widget can now pop up the specified menu. The actual posting of the menu occurs as it always does, either through an event handler, or the automatic popup menu support (see the XmRowColumn(3) reference page). If menu refers to a Pulldown menu, its ID is placed in the XmNsubMenuId resource of the specified post_from_widget. In this case, the post_from_widget widget must be either a CascadeButton or a CascadeButtonGadget. Note that this function manipulates the internal structures themselves, not a copy of them. menu Specifies the ID of the RowColumn widget containing the menu (Popup or Pulldown) to be made accessible from the widget. post_from_widget Specifies the widget ID of the widget which will now be able to post the menu specified by menu. For a complete definition of RowColumn and its associated resources, see XmRowColumn(3). RELATED
XmGetPostedFromWidget(3), XmRemoveFromPostFromList(3), and XmRowColumn(3). XmAddToPostFromList(library call)

Check Out this Related Man Page

XmRemoveFromPostFromList(library call)									    XmRemoveFromPostFromList(library call)

NAME
XmRemoveFromPostFromList -- a RowColumn function that disables a menu for a particular widget SYNOPSIS
#include <Xm/RowColumn.h> void XmRemoveFromPostFromList( Widget menu, Widget post_from_widget); DESCRIPTION
XmRemoveFromPostFromList makes a Popup or Pulldown menu no longer accessible from a widget. This function does not destroy a menu, or deal- locate the memory associated with it. It simply removes the widget from the menu's list of widgets permitted to post that menu. If the menu argument refers to a Popup menu, the event handlers are removed from the post_from_widget widget. If the argument refers to a Pulldown menu, its ID is removed from the XmNsubMenuId of the specified post_from_widget. Also, if the menu is a Pulldown menu, the post_from_widget widget must be either a CascadeButton or a CascadeButtonGadget. menu Specifies the widget ID of a the Popup or Pulldown menu to be made inaccessible from the post_from_widget widget. post_from_widget Specifies the widget ID of the widget which can no longer post the menu referred to by the menu argument.. For a complete definition of RowColumn and its associated resources, see XmRowColumn(3). RELATED
XmAddToPostFromList(3), XmGetPostedFromWidget(3), and XmRowColumn(3). XmRemoveFromPostFromList(library call)
Man Page

14 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Creating menu list from configuration file

Hi folks, I have the following function ,which generates menu for installation type: select_install_type() { echo echo ======================================== echo Please select the type of installation: echo ======================================== ... (8 Replies)
Discussion started by: nir_s
8 Replies

2. What is on Your Mind?

AIX Smit menu designer. WinSmit

Hi, Please excuse me for posting an "ad" message here. Over the last few months I have created software called WinSmit, with this tool you can create your own AIX smit menus and corresponding message files. We all know the smit or smitty menus that IBM provides to maintain the system, the... (6 Replies)
Discussion started by: mimyrtek
6 Replies

3. UNIX for Dummies Questions & Answers

Selectable numeric text menu from file possible?

Is there a way i can take 'lets say the etc/group file' and arange the group names into a selectable numeric menu eg; 1) root:0 2) other:1 3) bin:2 4) sys:3 ..... ..... ..... and so on then GROUP="group name of users selection" i have tried for over an hour searching on... (6 Replies)
Discussion started by: switchkill
6 Replies

4. Shell Programming and Scripting

SubMenu Exit problem!

I basically have a menu driven script in which one of the options from the main menu would open a sub menu, this works fine but i can't seem to be able to exit the sub menu back to the main menu....any ideas? (5 Replies)
Discussion started by: Alendrin
5 Replies

5. Shell Programming and Scripting

Colorful Menu

I know how to create a menu using select and case. What i want to know is,how can i create a menu using select and case where the menu options are in colored text? ---------- Post updated at 02:50 AM ---------- Previous update was at 02:42 AM ---------- if the menu options are like: 1)... (5 Replies)
Discussion started by: proactiveaditya
5 Replies

6. Shell Programming and Scripting

Help regarding a bash menu script

Greetings all, I'm having some trouble writing a menu drive bash script, actually coding the menu part was not difficult however its a problem with a menu option I'm having trouble with. My menu has 5 options, when the user selects the second option, they are then prompted to enter a number from... (5 Replies)
Discussion started by: Vitrophyre
5 Replies

7. UNIX for Dummies Questions & Answers

menu + awk + while + case

the idea is to create script with menu and when option 1 or2 is pressed program should clear screan display info and get back to menu.... I managed some code but getting errors... #!/bin/bash choice1=ls -l|awk'{print $9 $1}' choice2= ls | wc -c choice3=exit while do clear echo "... (8 Replies)
Discussion started by: me.
8 Replies

8. Shell Programming and Scripting

get chosen value from bash menu

Hi again :) This is just a sample whiptail menu. Works great, but have been trying to get the chosen value into a variable but failing pretty bad...its ther but unsure how to echo it out when needed #! /bin/bash #This is the menu whiptail --title "Menu example" --menu "Choose an... (9 Replies)
Discussion started by: olearydc
9 Replies

9. Post Here to Contact Site Administrators and Moderators

Searching for "menu generator"

Hello. Happy new year for everybody. I would like to search for "menu generator" not for menu or generator. Is it possible ? I get an error : Array What is the meaning ? (5 Replies)
Discussion started by: jcdole
5 Replies

10. Homework & Coursework Questions

Shell scripting/menu

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Write a shell menu program that will: a. copy a file to a designated directory b. tell you if a specified user... (13 Replies)
Discussion started by: Jagst3r21
13 Replies

11. UNIX for Dummies Questions & Answers

Dynamic menu selection? Help..

Hi guys, i would like to create a program that allow user to show the information of certain thing such as network card. I would like the menu to be dynamic, for example: my computer system have 2 network card inserted at the moment, therefore the menu will have 2 choice for the user. eth0... (12 Replies)
Discussion started by: malfolozy
12 Replies

12. Shell Programming and Scripting

Bash menu opens and closes

Ever since I added these two code blocks to my bash menu it just opens and closes right away. I use a batch file that worked fine until these codes were added and I am not sure what is wrong. Basically, what I am trying to do in the additional section is if the answer is "Y" then it goes back... (13 Replies)
Discussion started by: cmccabe
13 Replies

13. Shell Programming and Scripting

Bash menu not running

(8 Replies)
Discussion started by: cmccabe
8 Replies

14. Shell Programming and Scripting

Help with 'select' for menu input

A lot of my scripting makes use of the 'select' command to create menu driven input. A typical example of how I use it is as: somevar='' PS3='Select one: ' while ]; do select somevar in $(sqlplus -s $dbuser/$dbpw@mydb <<EOF set echo off feedback off verify off... (7 Replies)
Discussion started by: edstevens
7 Replies