Displaying 3 results from an estimated 3 matches for "setitemtext".
2005 Feb 18
2
Fixed column widths in FXTable?
...ox12"
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 = FXApp.new("MyTest", "FoxTest")
TestWin...
2005 Feb 18
5
FXTable segfaults after multiple setTableSize calls
...ct(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(r)
@table.setItemText(r, 0, "#{r}")
end
@table....
2008 Apr 14
3
Copy-paste between FXTable and FXTextfield
...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")
MyWindow.new(application)
application.create
application.run
End
--------------------...