OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: roy_043 on April 16, 2017, 02:09:24 PM

Title: Tree control: Avoid changing selection on RightClick?
Post by: roy_043 on April 16, 2017, 02:09:24 PM
I am working with a tree control and want to collapse all but the current branch of the tree when the user right clicks anywhere on the control. The problem is that right clicking first fires the SelChanged event. Is there a way to avoid this?

The goal:
Left click: Change selection.
Right click: Do not change selection.
Title: Re: Tree control: Avoid changing selection on RightClick?
Post by: roy_043 on April 21, 2017, 10:47:20 AM
So... what I want is probably is not possible.

While playing with this, I noticed something that strikes me as strange:
When I use the LMB to select an item I have to click on the actual image or label.
If I do the same with the RMB the whole row (image, label, white space on the right and left) can be clicked.
Title: Re: Tree control: Avoid changing selection on RightClick?
Post by: Teeraporl on November 09, 2017, 01:08:04 AM
I can use it offline or offline.