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.
|
|
|
#!/usr/bin/env kjscmd
|
|
|
|
var mw = new KMainWindow(this);
|
|
|
|
var hbox = new TQHBox( mw );
|
|
|
|
|
|
|
|
var f1 = new TQLabel( hbox );
|
|
|
|
f1.frameShape = TQLabel.Box;
|
|
|
|
f1.frameShadow = TQLabel.Raised;
|
|
|
|
f1.lineWidth = 4;
|
|
|
|
f1.margin = 4;
|
|
|
|
f1.midLineWidth = 1;
|
|
|
|
f1.paletteBackgroundColor = "red";
|
|
|
|
f1.text = "Frame 1";
|
|
|
|
|
|
|
|
var f2 = new TQLabel( hbox );
|
|
|
|
f2.frameShape = TQLabel.WinPanel;
|
|
|
|
f2.frameShadow = TQLabel.Sunken;
|
|
|
|
f2.lineWidth = 4;
|
|
|
|
f2.margin = 4;
|
|
|
|
f2.midLineWidth = 1;
|
|
|
|
f2.paletteBackgroundColor = "white";
|
|
|
|
f2.text = "Frame 2";
|
|
|
|
|
|
|
|
var f3 = new TQLabel( hbox );
|
|
|
|
f3.frameShape = TQLabel.Box;
|
|
|
|
f3.lineWidth = 4;
|
|
|
|
f3.margin = 4;
|
|
|
|
f3.midLineWidth = 1;
|
|
|
|
f3.paletteBackgroundColor = "blue";
|
|
|
|
f3.text = "Frame 3";
|
|
|
|
|
|
|
|
mw.setCentralWidget(hbox);
|
|
|
|
mw.show();
|
|
|
|
application.exec();
|