Re: [Fxruby-users] Re: catching exceptions in event handlers
Status: Inactive
Brought to you by:
lyle
From: Lyle J. <jl...@cf...> - 2003-07-23 14:21:37
|
Emmanuel Touzery wrote: > now how to display a dialog box at this stage, as Lyle remarked.. is there > a nicer solution than to create a brand new FXApp object? Use the main window as the owner for the dialog box. To do this you'll need to save a reference to the main window in a local variable, e.g. mainWin = GlossaryMainWindow.new(application) and then pass that as the first argument to FXMessageBox.error: FXMessageBox.error(mainWin, MBOX_OK, "Error", "Boom!") Lyle |