search for: layout_fill_x

Displaying 12 results from an estimated 12 matches for "layout_fill_x".

2008 Sep 06
0
Tab control using FXRuby
...p 01 17:20:31 +1000 2008 # plus added code to setup scroller require ''fox16'' include Fox class MainWindow < FXMainWindow def initialize(app) super( app, ''Zest Address Entry'') self.width = 422 self.height = 250 amain= FXVerticalFrame.new(self,LAYOUT_NORMAL|LAYOUT_FILL_X|LAYOUT_FILL_Y) main = FXScrollWindow.new(amain, LAYOUT_FILL_X|LAYOUT_FILL_Y) addr= FXMatrix.new(main, 2,MATRIX_BY_COLUMNS|LAYOUT_CENTER_X) # addr FXLabel.new(addr, "First Name" , nil,LABEL_NORMAL|LAYOUT_FILL_X|LAYOUT_FILL_Y) fld1= FXDataTarget.new("") fld1a=FX...
2009 Jun 23
9
Learning FXRuby please help!
...easier way to get text on a screen in response to pressing a button. Any hints? Thanks! Marlene require ''fox16'' include Fox class Lookup < FXMainWindow def initialize(app) super(app, "Lookup window", :width=>400, :height=>600, :opts => DECOR_ALL|LAYOUT_FILL_X|LAYOUT_FILL_Y) bframe = FXHorizontalFrame.new(self, :opts => LAYOUT_FILL_X) hearButton = FXButton.new(bframe, "Do you hear me?") yesWindow = FXHorizontalFrame.new(self, :opts => FRAME_GROOVE|LAYOUT_FILL_X) yesLabel = FXLabel.new(yesWindow,"Yes") y...
2007 Aug 24
2
setting the font in FXText
...le dialog box 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&q...
2008 Oct 27
2
Using BUTTON_TOOLBAR
...e: require ''fox16'' include Fox class MainWindow < FXMainWindow def initialize(app) 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 Fil...
2005 Feb 18
5
FXTable segfaults after multiple setTableSize calls
...------------------------------------------------------ require "fox12" include Fox class TestWindow < FXMainWindow TABLE_SIZE = 10_000 def initialize(app) super(app, "MyTest", nil, nil, DECOR_ALL, 0, 0, 600, 400, 0, 0) mainFrame = FXVerticalFrame.new(self, LAYOUT_FILL_X|LAYOUT_FILL_Y) @table = FXTable.new(mainFrame, nil, 0, LAYOUT_FILL_X|LAYOUT_FILL_Y) goButton = FXButton.new(mainFrame, " Go method 1") goButton.connect(SEL_COMMAND) { fillTable } goButton2 = FXButton.new(mainFrame, " Go method 2") goButton2.connect(SEL_C...
2005 Dec 01
1
Can''t add text to FXCanvas
...ot;Color Dialog") # Create a font dialog for later use @fontDialog = FXFontDialog.new(self, "Axis Font Dialog") # Create a tooltip so we get tool tips for things in this window FXToolTip.new(self.getApp()) statusbar = FXStatusBar.new(self, LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X|STATUSBAR_WITH_DRAGCORNER) #BUTTONS @rightFrame = FXVerticalFrame.new(self, LAYOUT_SIDE_TOP|LAYOUT_SIDE_RIGHT|LAYOUT_FILL_Y) FXVerticalSeparator.new(self, LAYOUT_SIDE_RIGHT|LAYOUT_FILL_Y|SEPARATOR_GROOVE) colorButton = FXButton.new(@rightFrame, "&Colors\tOpen C...
2008 Apr 14
3
Copy-paste between FXTable and FXTextfield
...#39;' require ''fox16'' include Fox class MyWindow < FXMainWindow def initialize(app) super(app, "Window", nil, nil, DECOR_ALL, 0, 0, 600, 350) # Menu bar stretched along the top of the main window menubar = FXMenuBar.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X) # File menu filemenu = FXMenuPane.new(self) FXMenuTitle.new(menubar, "&File", nil, filemenu) FXMenuCommand.new(filemenu, "&Quit\tCtl-Q\tQuit the application", nil, app, FXApp::ID_QUIT) # Field field = FXTextField.new(self, 15)...
2007 Apr 26
3
FXSplitter width is 1 until created
Why is the width of an FXSplitter equal to 1 before the FXSplitter#create method is called? My splitter is configured to have LAYOUT_FILL_X, so wouldn''t its width be determined before its children were created? It''s not really a big deal, but I was configuring the split based on a preferences file during initialize, and couldn''t make it work properly. Doing it in #create is an acceptable workaround. This...
2005 Feb 18
2
Fixed column widths in FXTable?
...mb ram. ------------------------------------------------------------------------- require "fox12" include Fox class TestWindow < FXMainWindow def initialize(app) super(app, "MyTest", nil, nil, DECOR_ALL, 0, 0, 600, 400, 0, 0) table = FXTable.new(self, nil, 0, LAYOUT_FILL_X|LAYOUT_FILL_Y) table.setTableSize(50, 3) (0...50).each do |r| table.setItemText(r, 0, "#{r},0") table.setItemText(r, 1, "#{r},1") table.setItemText(r, 2, "#{r},2") end end def create super show(PLACEMENT_SCREEN) e...
2008 May 31
2
Getting items to fill a column
Hi I''ve been following through the example app in the FXRuby book (which has generally been very helpful!) and I''m now at the extending it stage. I''d like to get the images display at the centre of a column and have a uniform width for all columns. The centering I have fixed, but no combinations of setting width and height options and LAYOUT_FILLs seems to work to get
2006 Jun 07
0
How to determine width and height of FXImageView?
...eds to be generated first > (by Gnuplot ... no problem to output PNG from there, > except one: to set the size : I don''t know what > to tell Gnuplot there: > - how do I see what the size of that > > @imageview_rec = FXImageView.new(@topFrame_rec, nil, nil, 0, > LAYOUT_FILL_X|LAYOUT_FILL_Y) > > is ? > I tried > p @imageview_rec.getHeight > p @imageview_rec.getWidth > > but that gives me 1 and 1. The FXImageView widget isn''t going to have a known size until it''s created, and I''m guessing you''re callin...
2008 May 18
8
FXTable::fitColumnsToContents
On May 17, 2008, at 6:54 AM, David Toll wrote: > I tried to submit the following message to the "fxruby-users" > message board (I clicked the link to send it as an email to fxruby-users at rubyforge.org > , but the message did not appear). I conclude I do not know how to > submit questions to this message board. You need to be subscribed to the mailing list before you