Displaying 5 results from an estimated 5 matches for "table_col_siz".
2006 Mar 28
11
setting widget attributes
I''m trying to set attributes of widgets in subclasses like the following.
class PersonTable < FXTable
def initialize(owner)
options = TABLE_COL_SIZEABLE
super(owner, nil, 0, options)
visibleRows = 5
...
end
end
visibleRows doesn''t get set.
However, if I do this
self.visibleRows = 5
then it does.
Shouldn''t it work without "self."?
--
R. Mark Volkmann
Object Computing, Inc.
2005 Feb 18
2
Fixed column widths in FXTable?
Is there a way to make an FXTable''s column widths (and row heights)
unchangeable by the user? By experimentation it looks to me like leaving
out TABLE_COL_SIZABLE and TABLE_ROW_SIZABLE from the options field in
FXTable.new() has no effect. I can still drag the intersection between
two column heading buttons to change the column width. The code I''m
using to test this is below.
The test is on a machine running Windows XP Home, service pack 2....
2008 Aug 20
0
FXTable scrolling problem
...e 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(:table_scrolled))...
2005 May 18
0
Re: FXTable possible bug
...<elgato@rambler.ru> wrote :
> I am still learning to deal with FOX and playing with different
> widgets. I have encountered strange behavior of FXTable with regard to
> style options. FXTable allows to resize rows and columns both w/ and
> w/o options TABLE_ROW_SIZABLE, TABLE_COL_SIZABLE.
This bug in FOX 1.2 was reported to Jeroen back in February 2005 and, as far
as I know, it was only fixed in the FOX 1.4 branch (i.e. he has not gone
back and fixed it in FOX 1.2). See this message from the FOX Users'' Mailing
List Archive:
http://sourceforge.net/mailarchive/mess...
2008 Apr 14
3
Copy-paste between FXTable and FXTextfield
...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!'')
end
def create
super
show(PLACEMENT_SCR...