OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Jim Short on November 28, 2008, 04:34:48 PM

Title: Right Click Menu
Post by: Jim Short on November 28, 2008, 04:34:48 PM
I am designing a copy/paste type modal menu to appear at the cursor. How does one get the client window coordinates of an OpenDCL window?
Anyone have suggestions on doing this? How does one draw a menu separator line.

Thanks,
Jim
Title: Re: Right Click Menu
Post by: owenwengerd on November 28, 2008, 07:49:33 PM
Control_GetPos returns the coordinates of a form or control in the parent's client coordinates. The Width and Height properties contain the size of the client area of a form or control. You could probably use a frame with 1 pixel height as a separator.
Title: Re: Right Click Menu
Post by: Fred Tomke on November 29, 2008, 12:28:22 AM
Hello,

since I've made the experience that a frame with a 1px height in some cases (several windows styles) shows only a point left and a point right instead of a line I use a 1px height picturebox without an image with just a background color.

Fred
Title: Re: Right Click Menu
Post by: Jim Short on November 29, 2008, 06:05:35 AM
Thanks guys,

That should get things going.

Jim