Page 1 of 1

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

Posted: 11 Apr 2021, 03:58
by mslonik
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

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

Posted: 13 Apr 2021, 07:56
by Ragnar
Thanks for reporting. The changes are included in PR #480.