Displaying 5 results from an estimated 5 matches for "settablesize".
Did you mean:
setdtablesize
2005 Feb 18
5
FXTable segfaults after multiple setTableSize calls
...tton = FXButton.new(mainFrame, " Go method 1")
goButton.connect(SEL_COMMAND) { fillTable }
goButton2 = FXButton.new(mainFrame, " Go method 2")
goButton2.connect(SEL_COMMAND) { fillTable2 }
end
# fails after 2 to 15-20 iterations
def fillTable
@table.setTableSize(TABLE_SIZE, 1)
(0...TABLE_SIZE).each do |r|
@table.setItemText(r, 0, "#{r}")
end
@table.setFocus
end
# seems to require more iterations, but still fails
def fillTable2
@table.setTableSize(0, 1)
(0...TABLE_SIZE).each do |r|
@table.insertRows...
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 runme
application = FXA...
2004 Oct 23
0
Re: FXTable -- numColumns & resize
...assume that I should be able to resize by 1 row for each
> row from the database, w/o losing data (so I don''t have to know ahead of
> time how many rows will be filled in)?
For that situation I think I''d recommend the FXTable#insertRows method
(which is not destructuve like setTableSize is). To append a row to
the end of the table, pass the current number of rows as the
"starting" row number:
aTable.insertRows(aTable.numRows, 1)
> P.S. Should questions like this be sent to the list (fxruby-users), do
> you want them sent to you, or do you not care one way or...
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 Apr 14
3
Copy-paste between FXTable and FXTextfield
...::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.new("Attik System", "FXRuby Test")...