Gérard Ménochet
2006-May-31 14:00 UTC
[fxruby-users] FXLabel: ca''nt set the Icon attibute
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] note: I''m aware I could file a bug report but it seems i have some problems with the account name G?rard M?nochet -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/fxruby-users/attachments/20060531/c6736ec7/attachment-0001.htm
lyle at knology.net
2006-May-31 14:07 UTC
[fxruby-users] FXLabel: ca''nt set the Icon attibute
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 nameI don''t understand what you mean?
Gérard Ménochet
2006-May-31 17:11 UTC
[fxruby-users] FXLabel: ca''nt set the Icon attibute
1_ Thanks. That works calling the the create(). ... 2_ To file a bug report, I need a identifier and a password. I think my password is ok so I suppose the problem comes from the identifier ( sorry for the ''account name'', i was in another planet.) ... 3_ Another thing: I''ve filed a bug report using my email adress on FXMenuTilte and canFocus set to false. It seems a little thing but it''s a big problem with MCHILD ( you lose the focus ). I you have an easy workarount, I take it Regards G?rard M?nochet ----- Original Message ----- From: <lyle at knology.net> To: <fxruby-users at rubyforge.org> Sent: Wednesday, May 31, 2006 4:07 PM Subject: Re: [fxruby-users] FXLabel: ca''nt set the Icon attibute 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 nameI don''t understand what you mean? _______________________________________________ fxruby-users mailing list fxruby-users at rubyforge.org http://rubyforge.org/mailman/listinfo/fxruby-users
lyle at knology.net
2006-May-31 17:46 UTC
[fxruby-users] FXLabel: ca''nt set the Icon attibute
On Wed, 31 May 2006 19:11:53 +0200, G?rard M?nochet <gerard.menochet at wanadoo.fr> wrote :> 1_ Thanks. That works calling the the create().OK.> 2_ To file a bug report, I need a identifier and a password. I think my > password is ok so I suppose the problem comes from the identifier ( sorry > for the ''account name'', i was in another planet.)You''re going to have to contact RubyForge support to get this problem corrected (see http://rubyforge.org/projects/support/).