Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: Tue Jul 15 13:57:08 CEST 2025

Total time taken to generate the page: 0.02218 seconds