Hi Beni,
We once discussed, in a previous forum, CMenus and CDropDownButtons.
And we explained that DropDownButtons have the additional feature of saving the action of the last child menu element clicked, so that further clicks of the dropDownButton will take that saved action, instead of displaying the child menu elements. In order to display the children elements, one would then click on the adjacent arrow.
So far so good
Now, what Iâm looking for, is something (I think called SplitButton), very similar to CDropDownButton, with a little twist.
Instead of saving the action of the last child menu element clicked, I want to bind some default action to this (letâs call split) splitButton.
Hence, a splitButton:
-would look exactly like a CDropDownButton
-clicking on the button part will never show the children (maybe except if no default action is attached)
-instead, clicking on the button part will always take a predefined action (which might be that of one of the child menu elements, but which will never change based on history)
-finally, the adjacent arrow will serve to display its children.
An example of this sort of button is the âNewâ drop-down button in the toolbar of eclipse.
Whereas the âRunâ dropDownButton has a behavior similar to that of a CDropDownButton (i.e. runs latest selected run), clicking the âNewâ button always triggers the same action (New wizard), regardless of selection history.
Thanks a lot,
Shant