Displaying 2 results from an estimated 2 matches for "pack_uniform_width".
2008 Oct 27
2
Using BUTTON_TOOLBAR
...super(app, "Toolbar Example",
:width => 485, :height => 300)
tool_bar_shell = FXToolBarShell.new(self)
top_dock_site = FXDockSite.new(self,
:opts => LAYOUT_FILL_X|LAYOUT_SIDE_TOP)
tool_bar = FXToolBar.new(top_dock_site, tool_bar_shell,
:opts => PACK_UNIFORM_WIDTH|FRAME_RAISED|LAYOUT_FILL_X)
new_button = FXButton.new(tool_bar,
"New File", :opts => BUTTON_TOOLBAR)
open_button = FXButton.new(tool_bar,
"Open File", :opts => BUTTON_TOOLBAR)
end
def create
super
show(PLACEMENT_SCREEN)
end
end
if __FILE...
2007 Aug 24
2
setting the font in FXText
...to use in our tests
class FXTextDialog < FXDialogBox
def initialize(owner)
# Invoke base class initialize function first
super(owner, "Temp", DECOR_TITLE|DECOR_BORDER, 0, 0, 200, 200)
button = FXHorizontalFrame.new(self,
LAYOUT_SIDE_BOTTOM|FRAME_NONE|LAYOUT_FILL_X|PACK_UNIFORM_WIDTH)
contents = FXHorizontalFrame.new(self,
LAYOUT_SIDE_TOP|FRAME_NONE|LAYOUT_FILL_X|LAYOUT_FILL_Y|PACK_UNIFORM_WIDT
H)
@fxtext = FXText.new(contents, nil, 0,
TEXT_READONLY|TEXT_WORDWRAP|LAYOUT_FILL_X|LAYOUT_FILL_Y)
@fxtext.font = FXFont.new(getApp(), "courier", 8)
# Ok...