summaryrefslogtreecommitdiffstats
path: root/kjsembed/docs/examples/combobox/combo.js
blob: 88f94df7672c2df64f4218ea6b0c2ca2ea5b5074 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env kjscmd

// Example that uses TQComboBox

var hbox = new TQHBox();

var l = new TQLabel( hbox );
l.text = 'Combo test';

var cb = new TQComboBox( hbox );
cb.insertItem( 'test 1' );
cb.insertItem( 'test 2' );
cb.insertItem( 'test 3' );
cb.insertItem( 'test 4' );

hbox.show();
application.exec();