GuiControl -> sub-command Font does not have Options parameter Topic is solved

Share your ideas as to how the documentation can be improved.
User avatar
mslonik
Posts: 144
Joined: 21 Feb 2019, 04:38
Location: Poland
Contact:

GuiControl -> sub-command Font does not have Options parameter

Post by mslonik » 11 Apr 2021, 03:58

Dear Forum,

it is stated in documentation of GuiControl here that GuiControl has 3 parameters: Font, ControlID, Options. This isn't true, because if I run the following code:

Code: Select all

Gui, Add, Text, HwndMyTextHandle, This is example of Text
GuiControl, Font, %MyTextHandle%, Verdana
I get the following error:
Parameter #3 must be blank in this case.

My suggestion:

Alter Font sub-command definition:

Code: Select all

GuiControl, Font, ControlID
Kind regards, mslonik

My scripts on this forum: Hotstrings Diacritic O T A G L E
Please become my patreon: Patreon👍
Written in AutoHotkey text replacement tool: Hotstrings.technology
Courses on AutoHotkey :ugeek:

User avatar
Ragnar
Posts: 613
Joined: 30 Sep 2013, 15:25

Re: GuiControl -> sub-command Font does not have Options parameter  Topic is solved

Post by Ragnar » 13 Apr 2021, 07:56

Thanks for reporting. The changes are included in PR #480.

Post Reply

Return to “Suggestions on Documentation Improvements”