Displaying 3 results from an estimated 3 matches for "getitemtext".
Did you mean:
setitemtext
2008 May 18
8
FXTable::fitColumnsToContents
...ad the column data with spaces. However, is
> there a better way of doing this?
This seems to work; see what you think:
class FXTable
def fitColumnsToContents(col, nc)
col.upto(col+nc-1) do |c|
cw = getMinColumnWidth(c)
hw = columnHeader.font.getTextWidth(columnHeader.getItemText(c))
setColumnWidth(c, [cw, hw].max)
end
end
end
Note that this is similar to the original implementation of
fitColumnsToContents() from FOX; but it also checks the width of the
column header items to see if they''re wider.
> I have another question:
>
> Many F...
2006 Apr 25
5
FXListBox ...connect(SEL_COMMAND)
Hi,
I think I got a problem with the FXListBox widget. ( ruby 1.8.4 (2005-12-24) [i386-mswin32]) )
FXListBox.new(parent, nil, 0) do |libo4|
libo4.appendItem("0 very weird")
libo4.appendItem("1 very weird")
libo4.appendItem("2 very weird")
libo4.appendItem("3 very weird")
libo4.appendItem("4 very
2007 Aug 27
3
Problem with ListCtrl#get_item
Hello,
I have a problem with getting items from ListCtrl.
Although my ListCtrl is in LC_REPORT mode, it has columns set up,
every cell is set with set_item and everything displays fine, this
code:
x = myList.get_item(row,col).get_text()
always returns an empty string.
For example:
myList.set_item(0,0,"Hello")
x = myList.get_item(0,0).get_text()
now x equals "" !
I