[fxruby-users] FxTopWindow problem
vjoel at path.berkeley.edu
Thu Dec 22 09:49:35 EST 2005
boxofsoxx-goognews at yahoo.com wrote:
> I have an fxRuby GUI app that I am having problems with. I want to
> bring up a help window from the main window when someone selects a
> help/help from the help menu. I have created a helpWindow that
> inherits from FXDialogBox. It has an FXMenuBar, FXStatusBar, and an
> FXtext which gets filled with help text from a file. When the
> help/help menu is selected from the main window, I make a new
> helpWindow, and call create on it. This all seems to work well, but I
> was unhappy with the look and feel of the FXDialog. I basically
> wanted something that looked like a real window, with minimize,
> restore, and close boxes in the upper right, and windowy ( if that's
It should be possible to get these window decorations by passing the
right opts argument when you instantiate the dialog, something like
FXDialogBox.new(owner, window_name, DECOR_ALL ^ DECOR_RESIZE)
(In this case, resize is turned off, but you may not want that.)
> a word ) border. I tried using FXMainWindow, FXTopWindow, and
> FXWindow, but I am again faced with my arch nemesis of error
> messages: "This application has requested the Runtime to terminate it
> in an unusual way. Please contact the application's support team for
> more information.
FXMainWindow would be the one to use, but I've never tried having
multiple main windows. I got used to using FXDialogs with the old fox
versions, before that was possible.
>> Exit code: 3"
> I have gotten this is the past when I tried to use something that was
> not created yet, but I think I am creating everything this time. It
> is extremely frustrating that I can get the FXDialog, with identical
> code, to work just fine.
> Is there something special about FXTopWindow that requires some
> special considerations. I couldn't find any examples or mentions in
> the docs about using this. The description is of this function is a
> bit brief.
vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407
More information about the fxruby-users