Skip to content
Snippets Groups Projects
Commit 5e96c06c authored by Lars Kanis's avatar Lars Kanis
Browse files

Replace LAYOUT_FILL_X and _Y by LAYOUT_FILL in example

parent fe95560f
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ class ThreadedWindow < Fox::FXMainWindow
super(app, "Threaded Widget Test", :opts => DECOR_ALL, width: 200, height: 500)
@vframe = FXVerticalFrame.new(self,
FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y, :padding => 0) do |frame|
FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL, :padding => 0) do |frame|
FXButton.new(frame, "Click to add", opts: FRAME_RAISED|FRAME_THICK|LAYOUT_FILL_X) do |button|
button.connect(SEL_COMMAND, method(:on_button_clicked))
end
......@@ -19,7 +19,7 @@ class ThreadedWindow < Fox::FXMainWindow
def on_button_clicked(sender, sel, ptr)
FXHorizontalFrame.new(@vframe,
FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y, :padding => 10) do |frame|
FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL, :padding => 10) do |frame|
label = FXLabel.new frame, "..."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment