I've invented woking, but ugly sollution (so common in SAP
)
Well,
- Add a BottonCombo to a form. Set the desirable Caption.
- Create appropriate ChooseFromList for each ValidValue in the ButtonCombo .
- Add a hidden button MyButton. You may not bother about its location and size, because it will be always hidden.
Now you need to implement the handler of ButtonCombo.ComboSelectBeforeevent. This handler
- Checks which ValidValue has been choosen.
- Sets the appropriate MyButton.Item.ChooseFromListUID.
- Freezes the form and unhides the button.
- Calls the MyButton.Item.Click() method which openes the corresponding ChooseFromList.
- Unfreezes the form and sets BubbleEvent to false. The letter step prevents the altering of Caption.