|
|
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » DropList with "quick trigger option": best way to implement?
DropList with "quick trigger option": best way to implement? [message #4909] |
Thu, 24 August 2006 22:16  |
Werner
Messages: 234 Registered: May 2006 Location: Cologne / Germany
|
Experienced Member |
|
|
I want a DropList which triggers an external action not only when the widget view is clicked (WhenClick) but already when a DropList item is selected (list.WhenSelect).
It is quite easy to achieve this by deriving MyDropList from DropList and overriding Select().
But I don't like this solution. It appears too complicated. Above all good C++ policy forbids to override non-virtual base class functions and Select() is a non-virtual function.
Is there a simpler or at least "cleaner" solution?
Werner
|
|
|
|
Re: DropList with "quick trigger option": best way to implement? [message #4919 is a reply to message #4915] |
Fri, 25 August 2006 06:53   |
Werner
Messages: 234 Registered: May 2006 Location: Cologne / Germany
|
Experienced Member |
|
|
luzr wrote on Fri, 25 August 2006 00:21 | I am not completely sure I understand.
Do you need callback to be invoked when you are goind through the pop-upped list?
Mirek
|
Not exactly. I want to perform an action as soon as a new item is selected.
For instance think of the "reference / Display" example and imagine the DropList to be near a control in which you can read a text (= target). As soon as an item in the pop-upped list is clicked, the target font should change accordingly. (Normal behavior is that clicking one item of the list just changes the DropList control itself so that another click is needed to change the appearance of the text. Basically I just want to avoid one click .)
Werner
[Updated on: Fri, 25 August 2006 06:54] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Sun Apr 27 18:29:22 CEST 2025
Total time taken to generate the page: 0.01009 seconds
|
|
|