You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdebindings/kjsembed/tests/test_popupmenu.js

16 lines
334 B

#!/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();