===== 12.3.3 Action =====
The two classes Action (gb.qt4) and Action (gb.form.mdi) allow you to manage the actions that you can define in the Action property of many components. The Action (gb.qt4)
t if.
- a key string has been set and
- the .Action property has been set for the ToolButton or MenuB... t environment (IDE).
* The same applies to the .Action property of ToolButton or MenuButton in the ToolB... t the MenuButton is not configurable because its .Action property has not been set.
* The menu with its... you must set the ToolButton.Key property and the .Action property for the ToolButton and MenuButton there
x 100px - >|
^Property^Type^Default^Description^
|Action|String|Null|Sets or returns the action string. The action value is True if the sidepanel is visible and False if it is hidden. For a SidePanel, Action.Value returns the visibility of the SidePanel → A
nent has the three classes Workspace, ToolBar and Action.
Workspace → Chapter 12.3.1\\
The class implemen... nts a toolbar to hold ToolButton and MenuButton.
Action → Chapter 12.3.3\\
The Action class (gb.form.mdi) extends the Action class from gb.qt4. It provides you with a list in an array via the
should be' canceled'.
* Some events support the action of being aborted. The KeyPress event is one of th... textbox A (printing on the return key) a certain action is to be triggered and then the cursor is to be p... de = Key.Enter Or Key.Code = Key.Return Then
' ACTION ...
txb_B.SetFocus()
' Desktop.SendKeys("
en map it in a table:
^Name^Level^Group^Caption^Action^Day^Shortcut^V^E^T^C^
|mnu1Menu|0|~|Picturefile|~... .3: Save - demand
Entries in the menu editor for Action are only necessary if, for example, you want to use the Action class for synchronization between the menu and an
["picture"].Length = 0 Then
Message.Info("Action:<br>Insert new image.")
Else
If Messag... t image?", "Yes", "No") = 1 Then
Print "Action: Change current image."
Else
Print "Action: No change current image."
Stop Event
mnu16Close.Caption = "Close"
[55] mnu16Close.Action = "FormClose"
[56] mnu16Close.Picture = Picture... [85] mnu31Help.Shortcut = "F1"
[86] mnu31Help.Action = "HelpMe"
[87] mnu31Help.Picture = Picture["ic... e has been created. You can also call the program action[line 105] assigned to the mnu14SaveAs menu later
0px 110px - >|
^Property^Data type^Description^.
|Action|String|Sets the action string associated with the component or returns the value (→ Chapter 12.3.3 Action).|
|Arrange|Integer|Determines or sets how the co
Visible=11}}
^Eigenschaft^Datentyp^Beschreibung^
|Action|String|Gibt die dem Steuerelement zugeordnete Akt... ichenkette zurück oder setzt sie → Kapitel 12.3.3 Action.|
|All|String|Definiert ein zusätzliches Element,
a (boolean) function (dialogue) is named after an action (Connect, Close, ...), then it returns `False` on... thod Dialog.Open(). This method is named after an action (Open) and returns False if a file was successful
etely, search text, search and replace text, undo action, repeat action and extensive context menu, the source code editor of the IDE offers the following feature
celled if necessary, and which triggers a certain action in the final step with the OK button, which provi... recipe in 4 steps serves as an example. Since no action needs to be triggered in the last step and the di