Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Frames and enter/leave



Permlink Replies: 1 - Last Post: Sep 15, 2017 7:25 AM Last Post By: Roy Lambert
Roy Lambert

Posts: 1,063
Registered: 8/7/01
Frames and enter/leave
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 15, 2017 6:49 AM
I'm creating multiple frames at run time and parenting them on a scrollbox. Each frame has several components, including a panel aligned alLeft and a Lable aligned alTop.

I want to have a visual indicator to show users which panel they are over. MouseEnter/Leave doesn't work because the mouse leaves the frame when it enters eg the panel or label. I can't just trap the mouse enter/leave events for all components because some (HTMLView) don't have them.

Any suggestions as to a suitable message handler to override or do I need to create my own message handler for each frame so I can intercept the mouse events?

Roy Lambert

Roy Lambert

Posts: 1,063
Registered: 8/7/01
Re: Frames and enter/leave
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 15, 2017 7:25 AM   in response to: Roy Lambert in response to: Roy Lambert
Traced back and overrode

procedure CMMouseEnter(var Message: TMessage); message CM_MOUSEENTER;
procedure CMMouseLeave(var Message: TMessage); message CM_MOUSELEAVE;

Roy Lambert

Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02