AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

GuiControl doesnt update

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
sosaited



Joined: 24 Feb 2005
Posts: 233

PostPosted: Thu May 12, 2005 6:03 pm    Post subject: GuiControl doesnt update Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
niwi



Joined: 27 Feb 2005
Posts: 128
Location: Heidelberg, Germany

PostPosted: Thu May 12, 2005 7:02 pm    Post subject: Reply with quote

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 Smile

NiWi.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group