[fxruby-users] table with no row headers
Joel VanderWerf
vjoel at path.berkeley.edu
Sun May 20 19:08:32 EDT 2007
Lyle Johnson wrote:
> On 5/19/07, Joel VanderWerf <vjoel at path.berkeley.edu> wrote:
>
>> Is this the right way to turn off row headers?
>>
>> table.rowHeaderMode = LAYOUT_FIX_WIDTH
>> table.rowHeaderWidth = 0
>
> What about just doing:
>
> table.rowHeader.hide
>
> ?
(My previous attempt to send this was rejected because it was too long,
so here's one with a much smaller screenshot.)
It sure looks like it should work, but it doesn't for me.
--- table.rb.bck 2007-05-20 15:56:46.000000000 -0700
+++ table.rb 2007-05-20 15:56:46.000000000 -0700
@@ -82,7 +82,7 @@
@table.getItem(6, 6).justify =
FXTableItem::CENTER_X|FXTableItem::CENTER_Y
@table.getItem(3, 4).stipple = STIPPLE_CROSSDIAG
-
+ @table.rowHeader.hide
# File Menu
filemenu = FXMenuPane.new(self)
FXMenuCommand.new(filemenu, "&Quit\tCtl-Q", nil, getApp(),
FXApp::ID_QUIT)
This patch has a bad effect on the region of the window where the header
would be: it grabs pixels from the window behind it and it stays like
that. Image attached...
--
vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hide-row-header.png
Type: image/png
Size: 8019 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/fxruby-users/attachments/20070520/6acc093e/attachment-0001.png
More information about the fxruby-users
mailing list