|
re:.0
>I need to know how to create submenus from a menu verb selection,
> Generate Reports [->
I assume you mean a pullright within a pulldown menu. If so, then this is
simply another pulldown_entry widget inside the pulldown_menu. Here is
an example in UIL: (Assuming "File" has "New..." and "Generate Reports" as
part of its pulldown.)
main_window
|
menu_bar
/ \
"File" pulldown_entry ...
|
pulldown_menu
/ \
"New" push_button "Gen Rpt" pulldown_entry [->
|
pulldown_menu
/ | \
pb pb pb
file_Entr : pulldown_entry gadget
{
arguments
{
label_label = "File";
};
controls
{
pulldown_menu
{
controls
{
push_button new_Btn;
pulldown_entry gen_rpt_Entr;
};
};
};
}; ! file_Entr
gen_rpt_Entr : pulldown_entry gadget
{
arguments
{
label_label = "Generate Reports";
};
controls
{
pulldown_menu
{
controls
{
push_button rpt_style1_Btn;
push_button rpt_style2_Btn;
push_button rpt_style3_Btn;
};
};
};
}; ! gen_rpt_Entr
|