jerson Messages: 202 Registered: June 2010 Location: Bombay, India
Experienced Member
Hi Honza
thanks for your example code. I really appreciate your help.
I was getting some strange behaviour on Push and Release like having to move the mouse to see the button push painting or moving the mouse after releasing the button to see button release painting.
This is what made it work
void JfButton::LeftDown(Point p, dword dw){
SetLabel("Pushed");
KeyPush(); // draw the button push state
}
void JfButton::LeftUp(Point p, dword dw){
SetLabel("Released");
FinishPush(); // draw button release state
}