diff --git a/SetCaption.md b/SetCaption.md index 16fc030..e041e99 100644 --- a/SetCaption.md +++ b/SetCaption.md @@ -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.