Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2007 Feb : question about background colors
| Subject: | question about background colors |
| Posted by: | "David S" (nowhe..@nohow.com) |
| Date: | 17 Feb 2007 21:37:46 |
I've got a TRzPanel that has OnMouseEnter and OnMouseLeave events implemented where I set them to simply swap the FG and BG colors when the mouse is inside the panels's borders. (It does it for the panel and everything in it's Components array.) This works fine.
However, if I place controls on the panel, like labels and radio buttons, then when the mouse goes over them, it triggers an OnMouseLeave event. The mouse is still inside the boundaries of the panel, though.
I do *NOT* want it to trigger an OnMouseLeave event until the mouse has actually LEFT the boundaries of the panel.
Is this a bug in the way the OnMouseEnter/Leave are being triggered? Or is it something deeper inside of windows?
TIA
-David