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 

ListView item change notificatino bug?

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



Joined: 28 Dec 2006
Posts: 332

PostPosted: Tue Mar 18, 2008 9:14 am    Post subject: ListView item change notificatino bug? Reply with quote

I posted this in the help forum a few hours ago -- then I started wondering if it could be a bug?

http://www.autohotkey.com/forum/viewtopic.php?t=29814

I used "ControlGet, OutputVar, List ..." to get the information I needed instead.


To try this out, use this code or similar:

Code:
#SingleInstance,Force

Gui,Add,ListView,gLV AltSubmit,Col1|Col2

Gui,Show

LV_Add("","Click","Me")
LV_Add("","Then Click","Me")
LV_ModifyCol()

Return

LV:
   If A_GuiEvent = I
      msgbox % ErrorLevel
   Return
Return


The help doc states: "If the user selects a new row, at least two such notifications are received: one for the de-selection of the previous row, and one for the selection of the new row."

However, after the first SF (Selected and Focused), every notification after that when switching between rows is just a single "s" for de-select.

Edit: It also reads that using the Critical command will help ensure the script not miss a notification, however it doesn't seem to help in this case.
Back to top
View user's profile Send private message
Superfraggle



Joined: 02 Nov 2004
Posts: 753
Location: London, UK

PostPosted: Tue Mar 18, 2008 10:32 am    Post subject: Reply with quote

Chaging to a tooltip improves the reliability and then adding critical works every time. At least in my tests anyway.

Code:
#SingleInstance,Force

Gui,Add,ListView,gLV AltSubmit,Col1|Col2

Gui,Show

LV_Add("","Click","Me")
LV_Add("","Then Click","Me")
LV_ModifyCol()

Return

LV:
critical
   If A_GuiEvent = I
      tooltip % ErrorLevel
   Return
Return

_________________
Steve F AKA Superfraggle

http://r.yuwie.com/superfraggle
Back to top
View user's profile Send private message MSN Messenger
adamrgolf



Joined: 28 Dec 2006
Posts: 332

PostPosted: Tue Mar 18, 2008 2:48 pm    Post subject: Reply with quote

True, this does improve reliability, but only a bit. I never got to try out this feature in previous versions, but I wonder if something has broken, because it doesn't seem like it should function so differently from the description.
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