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 » What is best way to obtain button info via callback?
What is best way to obtain button info via callback? [message #13586] Tue, 15 January 2008 19:51 Go to previous message
jlfranks is currently offline  jlfranks
Messages: 57
Registered: May 2007
Location: Houston, TX, USA
Member
The problem that I'm trying to solve is to have one callback handler for buttons with layout like Qwerty keyboard (we only have
a touch panel and need a keyboard device).

The alphabetic buttons can be upper or lower case, depending on
the case toggle button. I would sure be nice to service over 50
buttons (keys on keyboard) with one callback routine.

The problem is that Button only takes THISBACK and not THISBACK1, so there's no way of sending an argument identifying the key that is pressed.

Also, there is a way to set the label on the button, but not a way to get the lable. Handler could have simply used this, if it knew which key to access.

Is simple way of writing this (sure don't like writing 50 callbacks that all do just about the same thing) ?

--jlf
 
Read Message
Read Message
Read Message
Previous Topic: Zooming layouts and different behaviour windows/linux
Next Topic: QTF tooltip on tray icon.
Goto Forum:
  


Current Time: Sun Apr 28 10:37:23 CEST 2024

Total time taken to generate the page: 0.03152 seconds