TreeView_BeforeCheck acting weird

D

DH

Hey guys,
I have a treeview which is populated when the user chooses some data
(which has been saved in memory in my own object class which i created.)

The user must add data to certain nodes, and therefore once the data is
entered i have the checkbox checked.

Now i am disabling the user from being able to check/uncheck these by
the treeview_BeforeCheck event handler. If the user either by mouse or
keyboard has tried to do this i just set e.cancel=true;

Now that works except in windows vista if the user double clicks on a
checkbox *none* of the event that have to do with checkboxs happen and
the node is checked/unchecked however in windows xp this does not
happen. In XP double clicking on a checkbox does nothing which is the
correct response.
Anyone have any ideas why in Vista double clicking a checkbox does not
fire the BeforeCheck event handler but in XP it does?

DH
 
D

DH

DH said:
Hey guys,
I have a treeview which is populated when the user chooses some data
(which has been saved in memory in my own object class which i created.)

The user must add data to certain nodes, and therefore once the data is
entered i have the checkbox checked.

Now i am disabling the user from being able to check/uncheck these by
the treeview_BeforeCheck event handler. If the user either by mouse or
keyboard has tried to do this i just set e.cancel=true;

Now that works except in windows vista if the user double clicks on a
checkbox *none* of the event that have to do with checkboxs happen and
the node is checked/unchecked however in windows xp this does not
happen. In XP double clicking on a checkbox does nothing which is the
correct response.
Anyone have any ideas why in Vista double clicking a checkbox does not
fire the BeforeCheck event handler but in XP it does?

DH
I should also add that the double click in Vista is only *really seen as
a single click* by the application becuase if i click on the same node
again then the treeview node double click event handler is launched :S
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top