Displaying 5 results from an estimated 5 matches for "layout_fill".
2008 May 31
2
Getting items to fill a column
...uby 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 columns to display at the same width, no matter
the width of the image within.
Regards
Jon
2006 Mar 13
2
Autocomplete broken after update to Rails 1.0
When I upgraded to 1.0, I broke autocomplete on a field. I''ve done
everything that I can think of to fix the problem, but nothing has
worked. I''m able to recreate a simple autocomplete from examples on the
various tutorials, but my original code just will not work.
<input id="incident_first_party_name" name="incident[first_party_name]"
2010 Apr 09
2
Problem detecting keypresses in FXTable
I''m using an RXTable in my application and I would like to be able to
select a row and then press the Delete key to delete the selected row.
This does not seem to work, however, as apparently keypresses are not
initially recognized. In my FXTable derived class I have:
connect(SEL_KEYRELEASE) do |sender, selector, event|
puts "code = #{''%X'' %
2008 Aug 20
0
FXTable scrolling problem
...uery database for records
2) Populate FXTable with first 50 records from cursor
3) Populate more rows as the table scrolls down
To accomplish this I subclassed FXTable (class Table < FXTable) and defined
the initialize method as shown below:
def initialize(parent)
super(parent, :opts=>LAYOUT_FILL|TABLE_COL_SIZABLE|TABLE_ROW_SIZABLE,
:padding => 2)
self.editable=false
setBackColor(FXRGB(255, 255, 255))
setCellColor(1, 0, FXRGB(240, 255, 240))
setCellColor(1, 1, FXRGB(240, 255, 240))
rowHeader.width=30
verticalScrollBar.connect(SEL_COMMAND, method(:tabl...
2008 May 18
8
FXTable::fitColumnsToContents
...he width of the
column header 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 heigh...