U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Widgets - General questions or Mixed problems » How can I detect Button press / release
Re: How can I detect Button press / release [message #29496 is a reply to message #29486] Sun, 24 October 2010 14:34 Go to previous message
jerson is currently offline  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
}


Regards
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Layout call procedure buggy for invisible controls?
Next Topic: Problem with Calendar control
Goto Forum:
  


Current Time: Thu Jun 11 11:12:20 GMT+2 2026

Total time taken to generate the page: 0.00520 seconds