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 

LV_Modify list in other GUI or redraw other GUI

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
pantagruel



Joined: 08 Oct 2006
Posts: 67
Location: denmark

PostPosted: Wed May 21, 2008 9:56 am    Post subject: LV_Modify list in other GUI or redraw other GUI Reply with quote

Hi,

I am trying to modify a list control in another GUI than the GUI I am in (at least I think that is the problem) is there a way to take care of that.

Another solution could be if I could send a command to redraw that other GUI?
Back to top
View user's profile Send private message
Icarus



Joined: 24 Nov 2005
Posts: 440

PostPosted: Wed May 21, 2008 2:41 pm    Post subject: Reply with quote

No need to redraw, just set your target GUI as the default gui with Gui 2:Default (replace 2 with your GUI number)

See this example:
Code:
#SingleInstance Force

Gui Add, ListView,,Hello|World
LV_Add( 0, "GUI 1", "is in the house" )
Gui Show,y200,GUI 1

Gui 2:Default
Gui Add, ListView,,Hello|World
LV_Add( 0, "GUI 2", "is in the house" )
Gui Show,y340,GUI 2
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help 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