rfwoolf
asked on
Best way to draw a rectangle around a control (TShape hides behind)
When the user hovers the mouse over a TButton (OnMouseEnter) I want to draw a box around it (actually around a few buttons).
The problem with using a TShape is that it is not a TWinControl - so it will always appear BEHIND things like TPanels, TButtons etc.
I am busy working with another solution that draws on the "DeskTopWindow" canvas, but I'm sure there must be a more direct way (such as using the Form's Canvas) but I can't seem to get it right.
Some help would be appreciated.
The problem with using a TShape is that it is not a TWinControl - so it will always appear BEHIND things like TPanels, TButtons etc.
I am busy working with another solution that draws on the "DeskTopWindow" canvas, but I'm sure there must be a more direct way (such as using the Form's Canvas) but I can't seem to get it right.
Some help would be appreciated.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.