 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
sosaited
Joined: 24 Feb 2005 Posts: 233
|
Posted: Thu May 12, 2005 6:03 pm Post subject: GuiControl doesnt update |
|
|
hi...
run this script it is pretty much self explanatory...
| Code: | Gui, Add, Text, vv_text, 123
Gui, Add, Button, gchange1, Change Control
Gui, Add, Button, gchange2, Change Control2
Gui, Show
return
change1:
GuiControl, , v_text, 123456
return
change2:
GuiControl, , v_text, 321
return
GuiClose:
ExitApp |
the thing is that the GuiControl never updates "123456" and the only reason i can think of is that it is more than the initial length of the control "123" because "321" updates successfully and when you press "change control 1" again ... it will update to "123" but not "123456" so is this a bug? |
|
| Back to top |
|
 |
niwi
Joined: 27 Feb 2005 Posts: 128 Location: Heidelberg, Germany
|
Posted: Thu May 12, 2005 7:02 pm Post subject: |
|
|
Hi,
change the first line to
| Code: | | Gui, Add, Text, w50 vv_text, 123 |
You can change the width to something else.
The problem is, that the width of text label will be calculated during the element is created. So if you change the text later, you habe to reorganize your gui or just some elements. Windows doesn't know what you like to do
NiWi. |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|