1
1
Fork 0
mirror of https://github.com/FellippeHeitor/InForm.git synced 2024-09-16 19:03:54 +00:00

Updated SetCaption (markdown)

FellippeHeitor 2016-12-22 10:40:15 -02:00
parent 8377a960ff
commit 111abcdb2a

@ -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.