2.28 :openpopup()
This method opens the pop-up menu of the object, provided a menu has been defined.
Definition
boolean :openpopup
(
)
Parameters
None.
Return value
- true
- The pop-up menu could be opened.
- false
- The pop-up menu could not be opened. Perhaps no pop-up menu has been defined at the object.
Objects with this method
- canvas
- checkbox
- control
- edittext
- groupbox
- image
- layoutbox
- listbox
- notebook
- notepage
- poptext
- progressbar
- pushbutton
- radiobutton
- rectangle
- scrollbar
- spinbox
- splitbox
- statictext
- statusbar
- tablefield
- toolbar
- treeview
The objects menubox and window do not have this method.
Example
window Wn
{
.title "MyWindow";
child pushbutton POpen
{
.xleft 37;
.ytop 5;
.height 1;
.text "Open";
on select
{
Cb:openpopup();
}
}
child checkbox Cb
{
.xleft 15;
.width 24;
.ytop 3;
.height 1;
.text "Checkbox";
.state state_unchecked;
child menubox Mb
{
.title "MyMenu";
child menuitem
{
.text "Test Entry";
}
child menuitem
{
.text "TestEntry 2";
}
}
}
}
See also
Attribut