[fxruby-users] FXLabel: ca'nt set the Icon attibute

lyle at knology.net lyle at knology.net
Wed May 31 10:07:59 EDT 2006


On Wed, 31 May 2006 16:00:04 +0200, Gérard Ménochet
<gerard.menochet at wanadoo.fr> wrote :

> Hi,
> 
> trying that:
> 
>  aLabel = FXLabel.new(menuBar35,nil,@@maximizeIcon,0)
>  aLabel.icon = @@restoreIcon      # ok
>  aLabel.connect(SEL_LEFTBUTTONPRESS) do |sender, selector, data|
>     case sender.icon
>            when @@maximizeIcon
>                  sender.icon = @@restoreIcon
>             when @@restoreIcon
>                 sender.icon = @@maximizeIcon
>         end
>        0
>   end
> 
> Result
> 
> abnormal program termination
> test7.rb:161: [BUG] Segmentation fault
> ruby 1.8.4 (2005-12-24) [i386-mswin32]

Have you called create() on @@restoreIcon?

> note:   I'm aware I could file a bug report but it seems i have some
> problems with the account name

I don't understand what you mean?


More information about the fxruby-users mailing list