this may be an interesting Q for you :
http://www.experts-exchang
Main Topics
Browse All TopicsWhen 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.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
this may be an interesting Q for you :
http://www.experts-exchang
Hi Geert
The bevel solution is unideal because Bevels are not transparent. Of course you could put the bevels behind the buttons, but that is unideal in my case because I have some buttons that fit exactly onto a panel.
I am not sure why everyone is obsessed with 'hovering' in those links you gave me - I can just use the MouseEnter and the MouseLeave events for buttons to detect when the mouse is hovering over the button and when it is not.
And so again it looks like my best solution is to draw on the form's canvas, but that is creating a huge headache because of the titlebar and border!!
Aurrrghh.
From his help file:
"The Focus Technology is a powerful programming technique that allows developers to give a visual cue when a control receives focus. No more searching for the control that has focus, our Focus Technology draws a rectangle around the control that has focus and can even change the Font attributes of a label for the control. Developers are given the flexibility to change the appearance of the rectangle by providing many properties that can be altered such as spacing, color, 3D, etc. In addition, we provide events for when a focus rectangle and label are about to be painted or removed from the screen so that developers can provide other visual cues to the user as to which control has focus.
Another powerful feature of our Focus Technology is the ability to use this technology on any TWinControl. Thats right, you dont have to replace your current controls in your application to use the great feature. Simply place a TrscMasterFocus component on a form and select the controls that you want to have this capability. It is as simple as that."
Business Accounts
Answer for Membership
by: Geert_GruwezPosted on 2009-05-04 at 23:54:22ID: 24302086
why not use a bevel control ?
and then just set the bevel visible property when hovering to true