Right Click Menu

Started by Jim Short, November 28, 2008, 04:34:48 PM

Previous topic - Next topic

Jim Short

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
Jim Short

owenwengerd

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.

Fred Tomke

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
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

Jim Short

Thanks guys,

That should get things going.

Jim
Jim Short