How to create a combobox button by a script?

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


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?


More information about the Use-livecode mailing list