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++ Library : Other (not classified elsewhere) » DropList events
DropList events [message #37005] Tue, 07 August 2012 21:45 Go to next message
nixnixnix is currently offline  nixnixnix
Messages: 415
Registered: February 2007
Location: Kelowna, British Columbia
Senior Member
Hi,

I use a DropList to switch a dialog's data from one object to another. I use the following events

     dropTower.WhenDrop = THISBACK(GetTower);
     dropTower.WhenAction = THISBACK(SetTower);


to grab the current object's data from the dialog and then initialise it with the next chosen object and that all works fine.

My problem is that my users love the ability to scroll the mouse wheels to choose towers and this only generates the second event WhenAction.

My question is: is there are way to disable this mousewheel functionality for some DropLists or even better would be if I can still generate the two events and have it work like it does just now but with the mousewheel?

Thanks for any help or suggestions.

Nick

Re: DropList events [message #37006 is a reply to message #37005] Wed, 08 August 2012 05:29 Go to previous messageGo to next message
Sender Ghost is currently offline  Sender Ghost
Messages: 301
Registered: November 2008
Senior Member
Hello, Nick.
nixnixnix wrote on Tue, 07 August 2012 21:45

Is there are way to disable this mousewheel functionality for some DropLists or even better would be if I can still generate the two events and have it work like it does just now but with the mousewheel?

Yes, there is. It is possible to create custom DropList with your requirements.
You need to override MouseWheel and Key (because, there are also up, down, left and right keys to select values) virtual DropList methods.

A possible implementation is as follows:
Toggle Spoiler

[Updated on: Wed, 08 August 2012 06:37]

Report message to a moderator

Re: DropList events [message #37104 is a reply to message #37006] Thu, 23 August 2012 05:10 Go to previous message
nixnixnix is currently offline  nixnixnix
Messages: 415
Registered: February 2007
Location: Kelowna, British Columbia
Senior Member
Thanks
Previous Topic: Unstable 64bit builds
Next Topic: Serial.cpp for 64bit
Goto Forum:
  


Current Time: Thu Mar 28 17:26:19 CET 2024

Total time taken to generate the page: 0.01405 seconds