mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-13 05:29:26 +02:00
Docs: LCL/menus. Modifies TMenuItem.Default to include suggested revisions.
This commit is contained in:
parent
d61c5aaa38
commit
dfba70e859
@ -2979,18 +2979,16 @@ Indicates if the menu item is the default selection.
|
||||
<descr>
|
||||
<p>
|
||||
When <var>Default</var> is set to <b>True</b>, the menu item is normally
|
||||
displayed using a bold typeface and can be executed by pressing the
|
||||
<b>Enter</b> key. The default value for the property is <b>False</b> and
|
||||
indicates that the menu item is <b>not</b> the default menu item.
|
||||
displayed using a bold typeface. The default value for the property is
|
||||
<b>False</b> and indicates that the menu item is <b>not</b> the default menu item.
|
||||
</p>
|
||||
<p>
|
||||
Only one item in the Items hierarchy for TMenuItem can be the default menu
|
||||
item. Changing the value for the property causes items on the parent menu item
|
||||
to be visited and updated (when assigned). Another TMenuItem instance with its
|
||||
Default property enabled is changed to <b>False</b> prior to updating Default
|
||||
in the class instance. In addition, MenuChanged is called to signal the
|
||||
OnChange event handler (when assigned). This allows a parent menu item to be
|
||||
updated or rebuilt after the menu item has been changed.
|
||||
Only one of the entries in Items for a given TMenuItem instance can be the
|
||||
default menu item. Changing the value for the Default property clears the
|
||||
previous default item prior to setting the new default item. In addition,
|
||||
MenuChanged is called to signal the OnChange event handler (when assigned).
|
||||
This allows a parent menu item to be updated or rebuilt after the default item
|
||||
has been changed.
|
||||
</p>
|
||||
<remark>
|
||||
The Default property is not supported for the GTK2, GTK3, QT4, QT5, and QT6
|
||||
|
Loading…
Reference in New Issue
Block a user