What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » WLM Plus! Bug Reports » ListViewControl + ReportView + HasCheckboxes + OnWindowIdEvent_LstViewClicked = Bug

ListViewControl + ReportView + HasCheckboxes + OnWindowIdEvent_LstViewClicked = Bug
Author: Message:
OcuS
New Member
*

Avatar


Posts: 11
– / Male / –
Joined: Jul 2006
O.P. ListViewControl + ReportView + HasCheckboxes + OnWindowIdEvent_LstViewClicked = Bug
Hi

I'm using a window which contains a ListViewControl set in ReportView mode with HasCheckboxes set to true.

I want to get the ListViewControl first item's checked status,
so I've created the OnWNDInterfaceEvent_LstViewClicked event listener.

When clicking on the item's text OnWNDInterfaceEvent_LstViewClicked  is called and
code:
PlusWnd.LstView_GetCheckedState(ControlId, ItemIdx);
returns the real checked status (no problem here)

but

When clicking on the item's checkbox LstView_GetCheckedState(...) returns the opposite of the real status...

It behaves as if the Event_LstViewClicked was fired before the checkbox is really checked/unchecked...


[Edit]
Install package and type /lvrb in a chat window to test this.


code:
Versions :
MsgPlus.Version: 4.010000228881836
MsgPlus.VersionBuild: 240
Messenger.Version: 8.0.0792.00
Windows.Version: XP (2002) + SP2


.plsc File Attachment: ListView_Report_Bug.plsc (5.15 KB)
This file has been downloaded 194 time(s).

This post was edited on 07-21-2006 at 12:30 AM by OcuS.
                                    Another french user
[Image: ocus-banner.gif]
[Bugs found: 1]
07-21-2006 12:26 AM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: ListViewControl + ReportView + HasCheckboxes + OnWindowIdEvent_LstViewClicked = B
quote:
Originally posted by OcuS
It behaves as if the Event_LstViewClicked was fired before the checkbox is really checked/unchecked...
Actually, this is exactly what happens and which is logically the correct behaviour!



When you click on a checkbox this is what happens:

1) The program detects you pressed your mouse button
2) The program grabs the position of your mouse and looks if a control is underneath it
3) If so, it set focus to that control
4) It then checks if there is some associated action with it when you click the control.
5) If so, it performs that action (in this case the action would be to toggle the checkbox)

It can't even be the other way around as the program can not magically know you want to change a checkbox before you first actually click on it...

Or to put it in another way: clicking is the action, the checkbox toggling is the reaction on it. It can't be the other way around.



This post was edited on 01-13-2007 at 07:46 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
07-21-2006 01:12 AM
Profile PM Find Quote Report
OcuS
New Member
*

Avatar


Posts: 11
– / Male / –
Joined: Jul 2006
O.P. RE: ListViewControl + ReportView + HasCheckboxes + OnWindowIdEvent_LstViewClicked = B
Okay,

so how could I detect when the checkbox status change ?
                                    Another french user
[Image: ocus-banner.gif]
[Bugs found: 1]
07-21-2006 09:45 AM
Profile E-Mail PM Find Quote Report
Patchou
Messenger Plus! Creator
*****

Avatar

Posts: 8607
Reputation: 201
43 / Male / Flag
Joined: Apr 2002
RE: ListViewControl + ReportView + HasCheckboxes + OnWindowIdEvent_LstViewClicked = Bug
you currently cant but if it's helpful I'll add the event in the next version

This post was edited on 07-29-2006 at 06:05 PM by Patchou.
[Image: signature2.gif]
07-22-2006 05:51 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On