Ok, I don't have a UI open in front of me this exact second, but I'll try to give you a direction...
Your dropdown has an event which I think is called "OnSelect". If it's not, it's something close to that.
Your OnSelect event will Copy the command code to the OnPress event of your button and then press the button.
"parent.RunCommands.OnPress=SelectedItem.Command
parent.RunCommands.Press=true"
Viola... just remember that the commands will be executed relative to the RunCommands element and not your dropdown or yours data source when you figure out your paths.
__________________
'Tetht the printhiple, tetht the printhiple,' muttered Igor. 'Thorry, thur, but Igorth do not "tetht the printhiple". Thtrap it to the bench and put a good thick bolt of lightning through it, thatth our motto. Thatth how you tetht thomething.'
|