summaryrefslogtreecommitdiffstats
path: root/kjsembed/tests/test_popupmenu.js
blob: 376ac6383ae08fe37efc6d02c091f714c4c65c7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env kjscmd
var menu = new TQPopupMenu(this);
var subMenu = new TQPopupMenu(menu);
var pix = new Pixmap();
pix.resize(12,12);
pix.fill("blue");

menu.insertItem("Test");
menu.insertItem(pix, "Test pix");

subMenu.insertItem("Test Sub", menu);
subMenu.insertItem(pix, "Test sub pix", menu);

menu.show();
application.exec();