Thread: [Fxruby-users] show(PLACEMENT_MAXIMIZED) > maximized?
Status: Inactive
Brought to you by:
lyle
From: Joseph <rub...@te...> - 2004-06-23 00:37:18
|
Hi. If I use PLACEMENT_SCREEN as the argument for show and then click on the window's maximize button, then I get a normal MS Windows maximized window. But if I use PLACEMENT_MAXIMIZED instead, then the client area of the window occupies the full screen (i.e. as though I was in a full-screen mode), and the window's border (including the system menu and the minimize, maximize/restore, and close button are hidden (i.e. there is no screen real estate left to display them). Can I use some other PLACEMENT_xxx constant to programmatically have the window start up in the normal MS Windows maximized mode? TIA, Joseph |
From: jeroen <je...@fo...> - 2004-06-23 01:23:01
|
On Tuesday 22 June 2004 07:39 pm, Joseph wrote: > Hi. > > If I use PLACEMENT_SCREEN as the argument for show and then click on the > window's maximize button, then I get a normal MS Windows maximized > window. But if I use PLACEMENT_MAXIMIZED instead, then the client area > of the window occupies the full screen (i.e. as though I was in a > full-screen mode), and the window's border (including the system menu > and the minimize, maximize/restore, and close button are hidden (i.e. > there is no screen real estate left to display them). Can I use some > other PLACEMENT_xxx constant to programmatically have the window start > up in the normal MS Windows maximized mode? The call: mainwindow->maximize() is supposed to do the job. I found that calling setDecor(DECOR_NONE) prior to this call has the desired effect, but this may be window-manager dependent. Regards, Jeroen -- +----------------------------------------------------------------------------+ | Copyright (C) 21:20 06/22/2004 Jeroen van der Zijp. All Rights Reserved. | +----------------------------------------------------------------------------+ |
From: Rich <ri...@li...> - 2004-06-23 05:17:05
|
I'm not seeing the method 'maximize' off of the FXMainWindow object. There's a maximize for MDI stuff... ... I'm confused. -Richard ----- Original Message ----- From: "jeroen" <je...@fo...> To: <fxr...@li...> Cc: "Joseph" <rub...@te...> Sent: Tuesday, June 22, 2004 8:28 PM Subject: Re: [Fxruby-users] show(PLACEMENT_MAXIMIZED) > maximized? > On Tuesday 22 June 2004 07:39 pm, Joseph wrote: > > Hi. > > > > If I use PLACEMENT_SCREEN as the argument for show and then click on the > > window's maximize button, then I get a normal MS Windows maximized > > window. But if I use PLACEMENT_MAXIMIZED instead, then the client area > > of the window occupies the full screen (i.e. as though I was in a > > full-screen mode), and the window's border (including the system menu > > and the minimize, maximize/restore, and close button are hidden (i.e. > > there is no screen real estate left to display them). Can I use some > > other PLACEMENT_xxx constant to programmatically have the window start > > up in the normal MS Windows maximized mode? > > The call: > > mainwindow->maximize() > > is supposed to do the job. I found that calling setDecor(DECOR_NONE) > prior to this call has the desired effect, but this may be window-manager > dependent. > > > Regards, > > Jeroen > > > -- > +--------------------------------------------------------------------------- -+ > | Copyright (C) 21:20 06/22/2004 Jeroen van der Zijp. All Rights Reserved. | > +--------------------------------------------------------------------------- -+ > > > > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & Training. > Attend Black Hat Briefings & Training, Las Vegas July 24-29 - > digital self defense, top technical experts, no vendor pitches, > unmatched networking opportunities. Visit www.blackhat.com > _______________________________________________ > Fxruby-users mailing list > Fxr...@li... > https://lists.sourceforge.net/lists/listinfo/fxruby-users > |
From: jeroen <je...@fo...> - 2004-06-23 05:34:42
|
On Wednesday 23 June 2004 12:18 am, Rich wrote: > I'm not seeing the method 'maximize' off of the FXMainWindow object. > > There's a maximize for MDI stuff... FXMainWindow supports all the functions from its base classes ... - Jeroen -- +----------------------------------------------------------------------------+ | Copyright (C) 01:30 06/23/2004 Jeroen van der Zijp. All Rights Reserved. | +----------------------------------------------------------------------------+ |
From: Rich <ri...@li...> - 2004-06-23 12:59:25
|
When I try it, I get: >ruby shell_hotkey.rb shell_hotkey.rb:96:in `exec': undefined method `maximize' for #<Fox::FXMainWindow:0xb14b668> (NoMethodError) from shell_hotkey.rb:101 >Exit code: 1 Is there a specific time when I should call this method? I'm calling it between the show method of the FXMainWindow and the run method of the FXApp. -Richard ----- Original Message ----- From: "jeroen" <je...@fo...> To: <fxr...@li...> Cc: "Rich" <ri...@li...> Sent: Wednesday, June 23, 2004 12:40 AM Subject: Re: [Fxruby-users] show(PLACEMENT_MAXIMIZED) > maximized? > On Wednesday 23 June 2004 12:18 am, Rich wrote: > > I'm not seeing the method 'maximize' off of the FXMainWindow object. > > > > There's a maximize for MDI stuff... > > FXMainWindow supports all the functions from its base classes ... > > - Jeroen > > -- > +--------------------------------------------------------------------------- -+ > | Copyright (C) 01:30 06/23/2004 Jeroen van der Zijp. All Rights Reserved. | > +--------------------------------------------------------------------------- -+ > |