How to create a combobox button by a script?

Reinhold Venzl-Schubert r.venzl-schubert at macbay.de
Sat Jan 24 16:53:57 EST 2009


Hi!

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

What is my mistake?

Reinhold



More information about the use-livecode mailing list