At GUI/ADD TEXT, the doc says:
Additionally, he doc says at GUICONTROL, TEXT:If a width (W) is specified in Options but no rows (R) or height (H), the text will be word-wrapped as needed, and the control's height will be set automatically.
And, thus, the reason I have included the GUICONTROL, MOVE commands in my sample below. (It does, however, seem to do nothing, since I'm not wanting to change the Width.Text/Button/GroupBox/StatusBar/Link: Specify for Param3 the control's new text. Since the control will not expand automatically, use GuiControl, Move, MyText, W300 if the control needs to be widened.
I want to change a text control that I have already created and have the new text act as if the ROW and/or HEIGHT parameter is not specified. Is this possible?
Here is what I tried, which doesn't work.
ALT+CTL + F10 changes the text as does ALT+CTL+F11 (the difference the sequence of Guicontrol commands)
Code: Select all
txt1 := "TXT1: This is a test. TXT1"
txt2 := "TXT2: This is a test. However this is much more text much much much more TXT2"
txt3 := "TXT3: This is a test. However this is much more text much much much more TXT3"
Gui, color,Black
Gui, Font, cFF00000 s16
Gui, Add, Text, x25 y25 w400 vTestTxt, %txt1%
Gui, Show, w500 h300 x1 y1, TEST
return
!^F12:: exitapp
!^F10::
GuiControl, move, TestTxt, w450
GuiControl, , TestTxt, %txt2%
return
!^F11::
GuiControl, , TestTxt, %txt3%
GuiControl, move, TestTxt, w450
return