Displaying 2 results from an estimated 2 matches for "visiblerow".
Did you mean:
visiblerows
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.
2008 Apr 14
3
Copy-paste between FXTable and FXTextfield
...-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_SCREEN)
end
end
if __FILE__ == $0
application = FXApp....