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

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 Go to previous message
Werner is currently offline  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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: OcxConnectionPointContainer
Next Topic: design custom controls
Goto Forum:
  


Current Time: Sat May 30 15:07:53 GMT+2 2026

Total time taken to generate the page: 0.00508 seconds