Thomas, Jason M (Software)
2008-Jan-14 19:29 UTC
[fxruby-users] FXMessageBox - MBOX_SAVE_CANCEL_DONTSAVE problem
When I try to create a FXMessageBox with option MBOX_SAVE_CANCEL_DONTSAVE, I get the following error: RangeError: bignum out of range of unsigned long. My code looks like this: value = FXMessageBox.question(self, MBOX_SAVE_CANCEL_DONTSAVE, ''Save?'', ''Save Before Opening?'') The other MBOX_XXX options all seem to work. Jason This message and any enclosures are intended only for the addressee. Please notify the sender by email if you are not the intended recipient. If you are not the intended recipient, you may not use, copy, disclose, or distribute this message or its contents or enclosures to any other person and any such actions may be unlawful. Ball reserves the right to monitor and review all messages and enclosures sent to or from this email address.
Lyle Johnson
2008-Jan-14 20:01 UTC
[fxruby-users] FXMessageBox - MBOX_SAVE_CANCEL_DONTSAVE problem
On Jan 14, 2008, at 1:29 PM, Thomas, Jason M ((Software)) wrote:> When I try to create a FXMessageBox with option > MBOX_SAVE_CANCEL_DONTSAVE, I get the following error: RangeError: > bignum > out of range of unsigned long. > > My code looks like this: > value = FXMessageBox.question(self, MBOX_SAVE_CANCEL_DONTSAVE, > ''Save?'', > ''Save Before Opening?'') > > The other MBOX_XXX options all seem to work.OK. The integer value of that option flag must be exceeding some Ruby size limit. Could you please file a bug report on this one in the FXRuby bug tracker at RubyForge?
Thomas, Jason M (Software)
2008-Jan-14 20:04 UTC
[fxruby-users] FXMessageBox - MBOX_SAVE_CANCEL_DONTSAVE problem
Will do. I also noticed that FXMessageBox doesn''t have a MBOX_CLICKED_DONTSAVE return value so it looks like that option hasn''t been used/tested very much. -----Original Message----- From: fxruby-users-bounces at rubyforge.org [mailto:fxruby-users-bounces at rubyforge.org] On Behalf Of Lyle Johnson Sent: Monday, January 14, 2008 1:02 PM To: fxruby-users at rubyforge.org Subject: Re: [fxruby-users] FXMessageBox - MBOX_SAVE_CANCEL_DONTSAVE problem On Jan 14, 2008, at 1:29 PM, Thomas, Jason M ((Software)) wrote:> When I try to create a FXMessageBox with option > MBOX_SAVE_CANCEL_DONTSAVE, I get the following error: RangeError: > bignum > out of range of unsigned long. > > My code looks like this: > value = FXMessageBox.question(self, MBOX_SAVE_CANCEL_DONTSAVE, > ''Save?'', ''Save Before Opening?'') > > The other MBOX_XXX options all seem to work.OK. The integer value of that option flag must be exceeding some Ruby size limit. Could you please file a bug report on this one in the FXRuby bug tracker at RubyForge? _______________________________________________ fxruby-users mailing list fxruby-users at rubyforge.org http://rubyforge.org/mailman/listinfo/fxruby-users This message and any enclosures are intended only for the addressee. Please notify the sender by email if you are not the intended recipient. If you are not the intended recipient, you may not use, copy, disclose, or distribute this message or its contents or enclosures to any other person and any such actions may be unlawful. Ball reserves the right to monitor and review all messages and enclosures sent to or from this email address.
Lyle Johnson
2008-Jan-14 20:50 UTC
[fxruby-users] FXMessageBox - MBOX_SAVE_CANCEL_DONTSAVE problem
On Jan 14, 2008, at 2:04 PM, Thomas, Jason M ((Software)) wrote:> Will do. I also noticed that FXMessageBox doesn''t have a > MBOX_CLICKED_DONTSAVE return value so it looks like that option hasn''t > been used/tested very much.That is quite likely. ;) Thanks for taking the time to file a bug report. I will try to get these fixed ASAP in the next release.
Jeroen van der Zijp
2008-Jan-15 03:02 UTC
[fxruby-users] FXMessageBox - MBOX_SAVE_CANCEL_DONTSAVE problem
On Monday 14 January 2008, Thomas, Jason M (Software) wrote:> Will do. I also noticed that FXMessageBox doesn''t have a > MBOX_CLICKED_DONTSAVE return value so it looks like that option hasn''t > been used/tested very much.No, the return values are determined by what the buttons are supposed to DO. WHICH group of buttons is shown is determined by the options. So MBOX_SAVE_CANCEL_DONTSAVE means we have three buttons: "Save", "Cancel", and "Don''t Save", with return values MBOX_CLICKED_SAVE, MBOX_CLICKED_CANCEL, and MBOX_CLICKED_NO, respectively. - Jeroen -- +----------------------------------------------------------------------------+ | Copyright (C) 20:50 01/14/2008 Jeroen van der Zijp. All Rights Reserved. | +----------------------------------------------------------------------------+