search for: layout_fill_y

Displaying 10 results from an estimated 10 matches for "layout_fill_y".

Did you mean: layout_fill_x
2008 Sep 06
0
Tab control using FXRuby
...+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=FXTextField.new(...
2005 Dec 01
1
Can''t add text to FXCanvas
...) # 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 Color Dialog\tOpen a dialog for selecting colors", nil, colorDialog, FXWindow::ID_SHOW, FRAME_RAISED|FRAME_THICK|LAYO...
2009 Jun 23
9
Learning FXRuby please help!
...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") yesWindow.hide...
2007 Aug 24
2
setting the font in FXText
...itialize 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 button ok = FXButton.new(button, "OK", nil, self, ID_CANCEL, FRAME_RAISED|FRAME_THIC...
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_COMMAND) { fill...
2005 Feb 18
2
Fixed column widths in FXTable?
...-------------------------------------------------------------------- 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) end end def r...
2008 Apr 14
3
Copy-paste between FXTable and FXTextfield
...enuTitle.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) # Table f = FXHorizontalFrame.new(self, LAYOUT_FILL_X|LAYOUT_FILL_Y) table = FXTable.new(f, nil, 0, TABLE_COL_SIZABLE|LAYOUT_FILL_X|LAYOUT_FILL_Y) table.visibleRows = 3 table.visibleColumns = 3 table.setTableSize(3, 3) # Data field.text = ''copy me!'' table.setItemText(0, 0, ''copy me!'')...
2006 Jun 07
0
How to determine width and height of FXImageView?
...rated 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 calling getHeight()...
2006 Apr 10
1
Display an arrow, or transparent image colors
...e.open("ArrowShortRightRedT.png", "rb") {|f| FXPNGIcon.new(app, f.read) } # arrow_image.options = IMAGE_ALPHACOLOR | IMAGE_ALPHAGUESS arrow = FXImageFrame.new(hframe, arrow_image, FRAME_NONE) dial = FXDial.new(hframe, nil, 0, DIAL_VERTICAL | DIAL_HAS_NOTCH | LAYOUT_FILL_Y) app.create window.show app.mainloop Using this program, my red arrow will display on black background. I had expected the background to be of the same gray as used everywhere else in the fox window. Anyone know how to achieve this? I''ve tried various combinations of setting the option...
2008 May 18
8
FXTable::fitColumnsToContents
...ader items to see if they''re wider. > I have another question: > > Many FXRuby objects have a "height" parameter. However, it seems to > be ignored in at least some cases. For example, if you create an > FXText object without "LAYOUT_FILL" or "LAYOUT_FILL_Y" then the text > window is something like 3 lines high. If I add a height parameter, > the object height does not change. True. For those cases you''d need to specify the LAYOUT_FIX_HEIGHT layout width to get it to enforce your specified height value. > A corollary to...