U++ framework
Do not panic. Ask here before giving up.

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: 217
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

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 Jul 23 16:57:48 GMT+2 2026

Total time taken to generate the page: 0.00439 seconds