blob: b14be2023f92821bf639ce2680e198756a457cbe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/usr/bin/env kjscmd
// Demo of TQFrame and enum support
function add_frame( parent )
{
var v = new TQVBox( parent );
v.margin = 6;
return new TQFrame( v );
}
var top = new TQVBox();
var hbox = new TQHBox( top );
var f = add_frame( hbox );
f.frameShape = TQFrame.Box;
f = add_frame( hbox );
f.frameShape = TQFrame.WinPanel | TQFrame.Sunken;
f = add_frame( hbox );
f.frameShape = TQFrame.PopupPanel;
top.resize(300,200);
top.show();
application.exec();
|