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
Messages: 205 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
|
|
|
Goto Forum:
Current Time: Fri Sep 20 05:37:32 CEST 2024
Total time taken to generate the page: 0.04685 seconds
|