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 » preferred way to get event "sender" control?
preferred way to get event "sender" control? [message #49113] Tue, 19 December 2017 16:13
luoganda is currently offline  luoganda
Messages: 195
Registered: November 2016
Experienced Member
many widgets have When..., but no "sender" in it.
What's the preferred way to get "sender" control if one has many buttons linked to same callback?
There is an 'eventCtrl' in Ctrl and others though - but private.
GetFocus can't always be used.

One of aproaches would be to get it by thread, because
if used as static Ctrl::sender..., it's not thread safe(unlessOneUsesMutex,lock,etc).

2nd:
Can ui be done in other that main thread? on all platforms?

[Updated on: Tue, 19 December 2017 16:17]

Report message to a moderator

 
Read Message
Previous Topic: Size of TopWindow is different then the size I set for it
Next Topic: DHCtrl: an easy way to catch it before it's closed?
Goto Forum:
  


Current Time: Thu Apr 25 22:26:26 CEST 2024

Total time taken to generate the page: 0.95134 seconds