AutoHotkey Community

It is currently May 26th, 2012, 5:24 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: April 15th, 2009, 9:06 pm 
Offline

Joined: August 25th, 2005, 9:40 pm
Posts: 129
When a tree view node is edited, such as by F2 keypress or a double click, how can I capture the values before and then after the edit ?

Code:
MyTree:

   if A_GuiEvent = DoubleClick ; or F2 for edit to begin
   {
           ;get old value here
   }
   if A_GuiEvent = e ; the user has finished editing the field
   {
       ;get new value here
    }

return

________
Coach Purses


Last edited by webber on March 11th, 2011, 12:34 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject: Anyone?
PostPosted: April 20th, 2009, 5:39 am 
Offline

Joined: June 18th, 2006, 8:47 am
Posts: 346
Location: Phoenix, AZ
Webber,
I have the same question. You would think the documentation on Controlget or similar commands would point out how to get data from treeviews or clearly state it isn't possible.

If anyone can point out what we are missing please let us know.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Anyone?
PostPosted: June 9th, 2009, 8:17 am 
Offline

Joined: August 13th, 2006, 6:45 am
Posts: 354
Location: Germany
Hi keybored, hi Webber,
change your code:
Code:
MyTree:

   if A_GuiEvent == E ; the user has begun editing the field
   {
           ;get old value here
   }
   if A_GuiEvent == e ; the user has finished editing the field
   {
       ;get new value here
    }

return

Please note, that you must add AltSubmit to the treeview options.

Hubert


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: batto, Bing [Bot], BrandonHotkey, mrhobbeys, MSN [Bot], Mtes, perlsmith, rbrtryn, stanman and 63 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group