use-revolution Digest, Vol 64, Issue 46

Reinhold Venzl-Schubert r.venzl-schubert at macbay.de
Sun Jan 25 10:13:22 EST 2009


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  
<sarah.reichelt at gmail.com>:

>> 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.





More information about the use-livecode mailing list