mirror of
https://github.com/FellippeHeitor/InForm.git
synced 2024-09-18 19:54:44 +00:00
Updated SetCaption (markdown)
parent
8377a960ff
commit
111abcdb2a
1 changed files with 5 additions and 6 deletions
|
@ -2,17 +2,16 @@ The SetCaption methods changes a control's [[caption]] and parses for hot-key in
|
|||
|
||||
Syntax:
|
||||
|
||||
SetCaption ControlName$, "Caption"
|
||||
SetCaption ControlID, "Caption"
|
||||
|
||||
Notice that you must pass a control's name, not its ID.
|
||||
Example:
|
||||
|
||||
Examples:
|
||||
|
||||
SetCaption "Button1", "&OK"
|
||||
SetCaption Control(Button1).Name, "&OK"
|
||||
SetCaption Button1, "&OK"
|
||||
|
||||
The ampersand symbol (&) is used to indicate that the following letter is going to be used as a hot-key, meaning that the user will be able to hold Alt and press the letter to activate this control.
|
||||
|
||||
You can use *\n* to add a line break in a caption. It'll be replaced with a CHR$(10).
|
||||
|
||||
##Notes
|
||||
The SetCaption method can be bypassed altogether as you can manipulate the [[Caption]]() array directly, but by doing so the hot-key indicators won't be parsed.
|
||||
|
||||
|
|
Loading…
Reference in a new issue