--- /dev/null
+layout
+{
+ margin
+ {
+ top 2;
+ horizontal 8;
+ bottom 6;
+ };
+};
+
+column
+{
+ row
+ {
+ label "lbl_title"
+ {
+ text "New train";
+ };
+
+ split;
+
+ action_button "btn_close" 0
+ {
+ style "red_cross";
+ };
+ };
+
+ row
+ {
+ label "lbl_protocol"
+ {
+ text "Protocol";
+ };
+
+ dropdown "drp_protocol";
+ };
+
+ row
+ {
+ label "lbl_address"
+ {
+ text "Address:";
+ };
+ constraint COPY_WIDTH "lbl_protocol";
+
+ entry "ent_address"
+ {
+ edit_size 8 1;
+ };
+ };
+
+ row
+ {
+ label "lbl_name"
+ {
+ text "Name:";
+ };
+ constraint COPY_WIDTH "lbl_address";
+
+ entry "ent_name"
+ {
+ edit_size 30 1;
+ };
+ };
+
+ row
+ {
+ label "lbl_loco_type"
+ {
+ text "Locomotive:";
+ };
+ constraint COPY_WIDTH "lbl_name";
+
+ dropdown "drp_loco_type"
+ {
+ };
+ };
+
+ row
+ {
+ split;
+
+ action_button "btn_ok" 1
+ {
+ style "green";
+ text "Ok";
+ };
+ };
+};
+
+draghandle "";
+expand true false;
+constraint COPY_HEIGHT "lbl_title";
+constraint LEFT_OF "btn_close";