[Fxruby-users] Re: Maximizing an MDI child window in a FXRuby application
Status: Inactive
Brought to you by:
lyle
From: Lyle J. <ly...@kn...> - 2003-11-01 21:19:23
|
Stephan Kämper wrote: > I'm trying to figure out how to write a small application that's just > capable of displaying some text in child windows. (I reduced the > "mditest.rbw" script that comes with FXRuby to show the problem I have). > > My problem is: > If I run the script below and maximize the chlid window, there's no way > to resize it. > The three widgets on the top right (child) window corner will dissaprear > (The "under score", "square" and "X" icons to minimize, close and > maximize the window). Well, the short answer is, compare your reduced program to the original mditest.rbw example and figure out what you took out ;) But here's a hint: look at the section of the original mditest.rb example program that begins with the comment "MDI buttons in menu..." and copy the code that creates any of the buttons that you're interested in. In your case, it sounds like you want to add an FXMDIDeleteButton, FXMDIRestoreButton and FXMDIMinimizeButton to the main menu bar. |