22 menusep (Menu Separator)
Menu separators are the second type of objects which can be used in a menu. They are defined with the keyword menusep.
Definition
{ export | reexport } { model } menusep { <Identifier> } { <standard attributes> <hierarchy attributes> <object-specific attributes> }
Events
Children
Parent
Menu
none
22.1 Attributes
Attribute |
RLD |
PID |
Properties |
Short Description |
---|---|---|---|---|
identifier |
color |
S,G/D/C |
background color |
|
class |
class |
-,G/-/- |
class/id of object |
|
object |
control |
-,G/-/- |
control currently belonging to object |
|
identifier |
instance |
-,G/-/- |
dialog to which the object belongs |
|
object |
document |
S,G/-/- |
accesses the I-th XML Document |
|
boolean |
boolean |
-,G/-/- |
returns if the object class is an USW class |
|
class |
class |
-,G/-/- |
returns the I-th registered USW class |
|
identifier |
color |
S,G/D/C |
foreground color |
|
object |
record |
S,G/-/C |
accesses the first record of an object |
|
identifier |
instance |
-,G/-/- |
object groupbox |
|
string identifier |
string text |
S,G/D/C |
help text of object |
|
integer index |
integer index |
-,G/-/- |
current index of object in the child list of its parent |
|
string |
string |
S,G/D/C |
name/identifier of object |
|
object |
record |
S,G/-/C |
accesses the last record of an object |
|
object |
object |
-,G/-/- |
layoutbox of object |
|
boolean |
boolean |
S,G/D/- |
defers the display of a visibly created object |
|
attribute |
attribute |
-,G/-,- |
user-defined attribute [I] of object |
|
integer |
integer |
-,G/-,- |
number of user-defined attributes |
|
identifier |
instance |
S,G/D/C |
model belonging to object |
|
object |
object |
-,G/-/- |
notepage which object currently belongs to |
|
integer |
integer |
S,G/D/- |
defines the order relative to other menuitems in a menubox |
|
identifier |
instance |
S,G/-/- |
parent of object |
|
boolean |
boolean |
-,G/-/- |
real selectivity of object |
|
boolean |
boolean |
-,G/-/- |
real visibility of object |
|
object |
record |
S,G/-/C |
accesses the I-th record of an object |
|
integer |
integer |
-,G/-/- |
queries the number of child records |
|
integer |
scope |
-,G/-/- |
queries the object type (Default, Model or instance) |
|
boolean |
boolean |
S,G/D/C |
selectivity of object |
|
string object |
string text |
S,G/-/C |
text to be displayed in statusbar |
|
integer |
integer |
S,G/D/- |
kind of display/of behavior |
|
anyvalue |
anyvalue |
S,G/D/C |
object userdata (any DM datatype) |
|
boolean |
boolean |
S,G/D/C |
visibility of object |
|
identifier |
instance |
-,G/-/- |
window to which object belongs |
22.2 Specific Attributes
The attribute .style defines whether a single-line or a double-line separator is to be used.
22.3 Example
In the following example, the menuitem End
is visually separated from other items by a separating line.
child menubox FileWithSeparator
{
.title "File";
.sensitive true;
.visible true;
child menuitem Mi_Open
{
.text "Open";
.sensitive true;
.visible true;
}
child menuitem Mi_Save
{
.text "Save";
.sensitive true;
.visible true;
}
child menusep Separator_Line
{
}
child menuitem Mi_End
{
.text "End";
.sensitive true;
.visible true;
}
}