Thank you, that's it!
on mouseUp
create btn "Test"
set the style of btn "Test" to "menu"
set the menuMode of btn "Test" to comboBox
set the menuLines of btn "Test" to 5
put "A" & cr & "B" & cr & "C" & cr & "D" & cr & "E" into btn "Test"
end mouseUp
ow it works well
:-)
Reinhold
Am 25.01.2009 um 12:33 schrieb Sarah Reichelt
<[email protected]>:
I want to create a combobox-button.
I failed with this script:
on mouseUp
create btn "Test"
set the menuMode of btn "Test" to comboBox
set the menuLines of btn "Test" to 5
put "A" & cr & "B" & cr & "C" & cr & "D" & cr & "E" into btn "Test"
end mouseUp
You just need one extra line:
set the style of btn "Test" to "menu"
You might also want to set the size of your combobox as the default
height is too much and so the combo menu appears offset.
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution