9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi all i am a newbie to this
is there any examples on creating a main menu with 3 sub menu
main menu -> option a , b and c
a menu -> option 1 ,2 and 3
b menu -> option 1 ,2
c menu -> option 1 ,2
i am getting headache as my code kept getting unexpected EOF
---------- Post... (0 Replies)
Discussion started by: chercm
0 Replies
2. Solaris
I have partitioned and installed Windows Vista, OpenSUSE and Solaris 11 Express on a LapTop hardDrive. However I am not able to boot OpenSUSE 11.3 although I have it in menu.lst which I put in a Solaris partition directory /rpool/boot/grub. Could someone tell me how to go about it. See what I did... (2 Replies)
Discussion started by: Tenyhwa
2 Replies
3. UNIX for Dummies Questions & Answers
I want something that would show up basically like:
Menu
-----
1) Option 1
2) Option 2
3) Option 3
Pick one:
I tried menu = " Menu \r\n ----- \r\n 1)Option 1 \r\n..............etc etc etc"
but that didnt work (just got the whole menu one one line, with the... (2 Replies)
Discussion started by: SoVi3t
2 Replies
4. Shell Programming and Scripting
Can someone show me how to create a menu? I want a script someone who is not unix literate can use, with some simple commands like ls -al a directory or find files based on a date, does anyone know how to make a simple menu ? Thanks. (4 Replies)
Discussion started by: taekwondo
4 Replies
5. Programming
Anyone knows a FMLI package for Suse?
I have bunch of screens, menu and lists on FMLI and, as much as I know,
There is no FMLI facility on Suse.
Any better suggestion than converting all of them in Shell script?
:confused: (2 Replies)
Discussion started by: Marcos Brito
2 Replies
6. Shell Programming and Scripting
Hi all
I am trying to create a Form that takes a user entered Directory name and if the Directory does not exist then I create it.
I have managed to set the descriptor done=`mkdir "$F1";update` to make the directory but really require the form done to run a function that will have the steps; ... (0 Replies)
Discussion started by: craigmckeeman
0 Replies
7. Shell Programming and Scripting
I am currently having a problem creating a dynamic Menu that reads in from a file and appends this Menu list with an exit menu item.
the syntax I am using to create the dynamic Menu is
menu="$ARG1 Host names"
`cat Hosts.data | regex '^(''.*)$0$' '
name="$m0"
action=open... (2 Replies)
Discussion started by: craigmckeeman
2 Replies
8. Shell Programming and Scripting
Does anyone know how to program signals in fmli?
My fmli script goes in loop when the telnet session is closed. When I start the script from the prompt the issue do not happen. But when it is started by the login process it hags. That's why I want to program the SIGHUP to exit/finish the script.... (0 Replies)
Discussion started by: Marcos Brito
0 Replies
9. Shell Programming and Scripting
I was not able to use "cd" command in fmli....can anyone help ? (1 Reply)
Discussion started by: Claude
1 Replies
Menu(3I) InterViews Reference Manual Menu(3I)
NAME
Menu, MenuItem, MenuBar, PopupMenu, PulldownMenu, PullrightMenu - menus
SYNOPSIS
#include <InterViews/menu.h>
DESCRIPTION
N.B.: This Menu class is completely different from the Menu class in version 2.5. No attempt has been made to be compatible, as this class
and its subclasses are more powerful and easier to use than the original class.
Menu is a subclass of Control that contains a scene of other controls, called its body. When a menu is opened, it inserts the body into
the world with a drop shadow. The appearance of the menu itself is defined by its interactor component. For example, a menu in a menu bar
might appear as ``File'' and insert a pulldown menu with commands such as ``Save'' when opened.
MenuItem is a subclass of Control for defining the leaves of a menu hierarchy. Normally, an application will derive a command class from
MenuItem and implement the virtual function Do as appropriate. One technique is to pass the Command an application object and pointer to
member function; the Do function calls the member function on the application object.
PopupMenu, PulldownMenu, and PullrightMenu are subclasses of Menu that implement a common styles of menus. MenuBar is a subclass of HBox
that manages the control state associated with a set of menus. PopupMenu has no appearance; it is opened explicitly in response to an
input event. PulldownMenu and PullrightMenu open the menu body below and to the right of the menu, respectively. These classes make it
possible to use menus in an application without creating or passing control states explicitly.
PUBLIC OPERATIONS
Menu::Menu(Interactor*)
Construct a new menu.
Menu::~Menu()
The destructor deletes the menu body in addition to its appearance component.
virtual void Menu::Include(Control*)
Add an item to the menu. If no scene is specified, Menu will create a vbox and insert items into it.
virtual void Menu::Popup(Event&)
Insert the body into the world centered around the coordinates associated with the event and activate the controls in the body. The
menu is removed from the world when the controls are deactivated (normally when a button is released).
void Menu::SetBody(Interactor*)
Interactor* Menu::GetBody()
void Menu::SetAlign(Alignment)
Alignment Menu::GetAlign()
void Menu::SetDepth(int)
int GetDepth()
void Menu::SetBodyState(ControlState*)
ControlState* Menu::GetBodyState()
void Menu::SetScene(Scene*)
Scene* Menu::GetScene()
Set or get attributes of the menu. The depth of a menu is the number of pixels separating the body and the drop shadow.
Coord Menu::InsertX()
Coord Menu::InsertY()
Return the coordinates where the menu's body was last inserted into the world.
MenuItem::MenuItem(Interactor*)
MenuItem::MenuItem(const char* str, Alignment = Left)
Construct a new menu item. The second constructor defines the appearance of the item to be a message containing the text in str.
PulldownMenu::PulldownMenu(Interactor*)
PulldownMenu::PulldownMenu(const char* str)
PullrightMenu::PullrightMenu(Interactor*)
PullrightMenu::PullrightMenu(const char* str)
Construct a new pulldown or pullright menu. The second constructor defines the appearance of the menu to be a message containing
the text in str.
PopupMenu::PopupMenu()
Construct a new popup menu.
MenuBar::MenuBar()
Construct a new menu bar.
virtual void MenuBar::Include(Control*)
Add a control to a menu bar. In addition to inserting the control into the bar's hbox, this operation attaches the control to the
bar's control state.
SEE ALSO
Control(3I), Event(3I)
InterViews 6 December 1989 Menu(3I)