OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Fred Tomke on May 15, 2008, 01:31:56 AM

Title: Ctrl-Click for singular selection in a listview with active OnKeyDown
Post by: Fred Tomke on May 15, 2008, 01:31:56 AM
Hello,

I have a listview that supports Cut & Paste. To get that I have to activate OnKeyDown. But on this case the singular selection of items by pressing left mousebutton while holding the ctrl-key won't work. It's interesting that the singular deselection by pressing ctrl-key works properly. Is there somebody who can reproduce?

You can check that in the attached project.

Fred
Title: Re: Ctrl-Click for singular selection in a listview with active OnKeyDown
Post by: owenwengerd on May 17, 2008, 01:48:21 PM
Fred, I loaded your project, but I'm not quite sure what I'm supposed to do in order to reproduce the problem.
Title: Re: Ctrl-Click for singular selection in a listview with active OnKeyDown
Post by: Fred Tomke on May 17, 2008, 01:54:27 PM
I will add a video in a few minutes.

Fred
Title: Re: Ctrl-Click for singular selection in a listview with active OnKeyDown
Post by: Fred Tomke on May 17, 2008, 02:19:44 PM
Hello, here is the video, hope that helps.

Fred
Title: Re: Ctrl-Click for singular selection in a listview with active OnKeyDown
Post by: owenwengerd on May 18, 2008, 07:29:19 AM
Fred, when I load your project I don't see a list of layers.  What am I doing wrong?
Title: Re: Ctrl-Click for singular selection in a listview with active OnKeyDown
Post by: Fred Tomke on May 18, 2008, 12:06:44 PM
Just to be sure: did you load the lisp and did you call the command LAF?

Fred
Title: Re: Ctrl-Click for singular selection in a listview with active OnKeyDown
Post by: owenwengerd on May 18, 2008, 09:21:53 PM
Yes, that is exactly what I did (after first creating a few new layers in a new drawing). See the attached screen shot.
Title: Re: Ctrl-Click for singular selection in a listview with active OnKeyDown
Post by: Fred Tomke on May 18, 2008, 11:14:36 PM
Ok, Copy and Paste isn't the same as in ancient times. When creating the sample for http://www.opendcl.com/forum/index.php?topic=323.0 I changed the OnInit-function. No it works with the lisp I attached.

Fred
Title: Re: Ctrl-Click for singular selection in a listview with active OnKeyDown
Post by: velasquez on May 19, 2008, 07:02:02 AM
When I carry the project in AutoCAD 2007 the color of the bottom it doesn't price. 
Why does this happen?
Title: Re: Ctrl-Click for singular selection in a listview with active OnKeyDown
Post by: Fred Tomke on May 19, 2008, 07:20:54 AM
Hello, velasquez,

sorry but I didn't understand your first sentence very well. Can you be more specific about what you mean? On the other hand I have no 2007 anymore. Can you upload a screen shot, please?

For your understanding: Because the palette looks not very nice in 2009 I tried to add a rectangle in the background.

Fred
Title: Re: Ctrl-Click for singular selection in a listview with active OnKeyDown
Post by: velasquez on May 19, 2008, 07:47:10 AM
I am talking about rectangle in the background.
Title: Re: Ctrl-Click for singular selection in a listview with active OnKeyDown
Post by: Fred Tomke on May 19, 2008, 08:20:38 AM
The form as it looks like at your screenshot is just like I wish but is not so in AutoCAD 2009 although there is a non-transparent rectangle in the background.
The first screenshot you see is after disanchoring and the screenshot below is after first call.

Fred