- frame.add{type = 'label', caption = {'some_luaconsole.inputlabel'}}
- input = frame.add{type = 'text-box',
- name = 'input',
- style='some_luaconsole_input_textbox'
- }
+ local title_flow = frame.add{type = "flow", direction = "horizontal"}
+ title_flow.style.horizontally_stretchable = true
+ title_flow.style.horizontal_spacing = 8
+
+ local title_label = title_flow.add{type = 'label', caption = {'some-luaconsole.title'}, style = "frame_title"}
+ title_label.drag_target = frame
+
+ local title_pusher = title_flow.add{type = "empty-widget", style = "draggable_space_header"}
+ title_pusher.style.height = 24
+ title_pusher.style.horizontally_stretchable = true
+ title_pusher.drag_target = frame
+
+ local title_close_button = title_flow.add{type = "sprite-button", style = "frame_action_button", sprite = "utility/close", name = 'some-luaconsole-close', tooltip = {'some-luaconsole.close_tooltip'}}
+
+
+ frame.add{type = 'label', caption = {'some-luaconsole.inputlabel'}, style = "frame_title"}
+
+
+ local input = frame.add{type = 'text-box', name = 'input', style='some-luaconsole-input-textbox', enabled = admin}