writing a component with c++ builder

I'm writing a new component using c++ builder.It's a special kind of button.This button should satisfy two requirements.
1-When the mouse cursor passes over this button(without clicking),its caption color should change to a new color(for example from black to red).I've succeeded in satisfying this requirement.
2-When the mouse cursor goes away from this button,its caption should retrieve its old color(black for example).I can't accomplish this task.
I've searched in windows messaging system for a message which is sent when the mouse cursor leaves a control's area.
Please,inform me with any material that may help me.

Comments

  • [b][red]This message was edited by bradsnobar at 2004-8-8 10:35:32[/red][/b][hr]
    [b][red]This message was edited by bradsnobar at 2004-8-8 10:35:15[/red][/b][hr]
    [b][red]This message was edited by bradsnobar at 2004-8-8 10:34:46[/red][/b][hr]
    Are there no mouseMove, mouseOver, or mouseLeave events for this button?






Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion