Groups | Blog | Home
all groups > dotnet drawing api > june 2005 >

dotnet drawing api : DrawRectangle problem


Francisco Padron
6/15/2005 9:53:40 AM
Sounds like an overlapping problem.

Can you post the code.

--
Francisco Padron
www.chartfx.com

Siri Krishna
6/15/2005 10:21:43 AM
Hi,
We have a custom control into which we add controls like labels and move
them at run time. The problem we have is that when a child control is
selected and moved, we draw a rectangle around it to identify it as
selected. The DrawRectangle works fine when the child controls is on left
half of the custom control area but fails to draw the rectangle when moved
to right half of the custom control. When placed some where in between we
see about half rectangle drawn on left side around child control. Does some
body know the strange behavior.
Regards,
Siri

Phil Wright
6/15/2005 9:53:29 PM
If you are adding the rectangle by creating another sibling control then you
need to ensure that the Z-order of the new control means it appears on the
top of all other siblings. When added make sure it is placed at the end of
the .Controls collection.

Phil Wright
Follow the startup of my microISV at...
http://componentfactory.blogspot.com

[quoted text, click to view]

AddThis Social Bookmark Button