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 » List of custom controls, how?
Re: List of custom controls, how? [message #37747 is a reply to message #37745] Thu, 08 November 2012 10:07 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1791
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

crydev wrote on Thu, 08 November 2012 09:29

There still is one thing that doesn't work that I would like to work. Using the mouse scrollwheel to scroll though the objects is not working. My guess is that this should be implemented in the Key(dword key, int) function. Is there maybe a builtin property or function to handle this? And which keys are being handled by the Key(dword key, int) function?

If you look at reference/ScrollBar, you'll see it can be done with the MouseWheel virtual function:
    virtual void MouseWheel(Point, int zdelta, dword)
    {
        sb.Wheel(zdelta);
    }

The only problem with this is that sometimes the wheel event is consumed by the Ctrl immediately under the cursor, so this MouseWheel is never invoked. I'm not really sure how this should be handled properly. Hopefully someone else will help us with that Smile

Best regards,
Honza
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Control refresh time
Next Topic: VScrollBar in a StaticText
Goto Forum:
  


Current Time: Sat Jun 07 01:44:42 CEST 2025

Total time taken to generate the page: 0.03441 seconds