[fxruby-users] table.getItem(1,1).icon=ic

Lyle Johnson lyle at knology.net
Mon Apr 24 09:15:52 EDT 2006


If I understand what you're asking, I think the solution is to call 
create() on ic2 before using it:

	@table.getItem(1, 1).icon = ic2

If this does not solve your problem, please try to express your 
question more clearly.

Hope this helps,


On Apr 24, 2006, at 1:36 AM, Helmut Hagemann wrote:

> High
> i have trouble with FXTable
> setItemIcon(row, column, icon)
> Modify cell icon, deleting the old icon if it was owned. Raises 
> IndexError if either row or column is out of bounds.
> where is owned find
> first Picture
> @table.getItem(1,1).icon=ic
> the first Picture is displayed
> Second Picture
> I will change die icon in table
> @table.getItem(1,1).icon=ic2 
> but ruby send an Error
> This application has requested the Runtime to terminate it in an 
> unusual way.
> Please contact the application's support team for more information.
> F:/edi/rbB.tmp:241: [BUG] Segmentation fault
> ruby 1.8.4 (2005-12-24) [i386-mswin32]
> for reading thanks
> Helmut Hagemann
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 3786 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/fxruby-users/attachments/20060424/2e7e12b7/attachment-0001.bin 

More information about the fxruby-users mailing list