Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Widget w = parseML(q{
- VerticalLayout {
- id: main
- alignment: bottom
- layoutWidth: fill;layoutHeight: fill
- // background for window - tiled texture
- backgroundImageId: "tx_fabric.tiled"
- VerticalLayout {
- id: topBar
- margins: 0
- padding: 4
- layoutWidth: fill;layoutHeight: 60
- HorizontalLayout {
- Button {
- id: btnRefMdlList;text: "Refresh"
- }
- }
- }
- TableLayout {
- colCount: 2
- layoutWidth: fill;layoutHeight: fill
- VerticalLayout {
- layoutWidth: 300;layoutHeight: fill
- margins: 10
- padding: 10
- backgroundColor: "#C0E0E070" // semitransparent yellow background
- // red bold text with size = 150% of base style size and font face Arial
- TextWidget {
- text: "Hello World example for DlangUI";textColor: "red";fontSize: 150% ;fontWeight: 800;fontFace: "Arial"
- }
- // arrange controls as form - table with two columns
- StringListWidget {
- id: modelList
- }
- HorizontalLayout {
- Button {
- id: btnOk;text: "Ok"
- }
- Button {
- id: btnCancel;text: "Cancel"
- }
- }
- }
- VerticalLayout {
- alignment: left
- layoutWidth: fill; layoutHeight: fill
- backgroundImageId: "tx_fabric.tiled"
- VerticalLayout {
- // child widget - will draw using OpenGL here
- id: glView
- margins: 20
- padding: 20
- layoutWidth: fill;layoutHeight: fill
- TextWidget {
- text: "Test";textColor: "red";fontSize: 150% ;fontWeight: 800;fontFace: "Helvetica"
- }
- }
- }
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement