Thread: [Fxruby-users] switch to full screen mode
Status: Inactive
Brought to you by:
lyle
From: Simon S. <ne...@ad...> - 2004-05-24 12:28:15
|
I am working on a fxruby frontend for my text editor. I wish to switch to full-screen mode, but have not been able to find any text about how to accomplish this. Any ideas/suggestions are very welcome ? In case you know a fox application which are able to do this then please tell me.. then I will try doing copy/paste :-) -- Simon Strandgaard |
From: Rich <ri...@li...> - 2004-05-24 13:08:07
|
There will be a point when you do something like: ... @appRef=FXApp.new ... @mainwin=FXMainWindow.new(@appRef,"test") ... @appRef.create @mainwin.show(PLACEMENT_SCREEN) @appRef.run You'll want to use 'PLACEMENT_MAXIMIZED' instead of 'PLACEMENT_SCREEN' when you 'show' your main window. -Rich ----- Original Message ----- From: "Simon Strandgaard" <ne...@ad...> To: "fxruby" <fxr...@li...> Sent: Monday, May 24, 2004 6:23 AM Subject: [Fxruby-users] switch to full screen mode > I am working on a fxruby frontend for my text editor. > I wish to switch to full-screen mode, but have not been able to > find any text about how to accomplish this. > > Any ideas/suggestions are very welcome ? > > In case you know a fox application which are able to do this > then please tell me.. then I will try doing copy/paste :-) > > -- > Simon Strandgaard > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Fxruby-users mailing list > Fxr...@li... > https://lists.sourceforge.net/lists/listinfo/fxruby-users > |
From: Simon S. <ne...@ad...> - 2004-05-24 13:18:11
|
Ok.. this makes a full screen window. However my blackbox titlebar is still visible, and the bottom of the window is outside the screen (the outside part has the same height as the titlebar). How do I spawn the window so that the titlebar is outside the display, so that pixel x=0, y=0 corresponds to the top-left most corner of the display ? -- Simon Strandgaard Rich <ri...@li...> wrote: > There will be a point when you do something like: > ... > @appRef=FXApp.new > ... > @mainwin=FXMainWindow.new(@appRef,"test") > ... > @appRef.create > @mainwin.show(PLACEMENT_SCREEN) > @appRef.run > > You'll want to use 'PLACEMENT_MAXIMIZED' instead of 'PLACEMENT_SCREEN' when > you 'show' your main window. > > -Rich > > > ----- Original Message ----- > From: "Simon Strandgaard" <ne...@ad...> > To: "fxruby" <fxr...@li...> > Sent: Monday, May 24, 2004 6:23 AM > Subject: [Fxruby-users] switch to full screen mode > > > > I am working on a fxruby frontend for my text editor. > > I wish to switch to full-screen mode, but have not been able to > > find any text about how to accomplish this. > > > > Any ideas/suggestions are very welcome ? > > > > In case you know a fox application which are able to do this > > then please tell me.. then I will try doing copy/paste :-) > > > > -- > > Simon Strandgaard > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: Oracle 10g > > Get certified on the hottest thing ever to hit the market... Oracle 10g. > > Take an Oracle 10g class now, and we'll give you the exam FREE. > > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > > _______________________________________________ > > Fxruby-users mailing list > > Fxr...@li... > > https://lists.sourceforge.net/lists/listinfo/fxruby-users > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Fxruby-users mailing list > Fxr...@li... > https://lists.sourceforge.net/lists/listinfo/fxruby-users -- |
From: Simon S. <ne...@ad...> - 2004-05-24 13:26:56
|
Silly me.. Of cause I had to change from DECOR_ALL into DECOR_NONE. Thanks Rich for leading me on the right track :-) -- Simon Strandgaard Simon Strandgaard wrote: > Ok.. this makes a full screen window. However my blackbox titlebar > is still visible, and the bottom of the window is outside the screen > (the outside part has the same height as the titlebar). > > How do I spawn the window so that the titlebar is outside the display, > so that pixel x=0, y=0 corresponds to the top-left most corner of the display ? > > -- > Simon Strandgaard > > > > Rich <ri...@li...> wrote: > > There will be a point when you do something like: > > ... > > @appRef=FXApp.new > > ... > > @mainwin=FXMainWindow.new(@appRef,"test") > > ... > > @appRef.create > > @mainwin.show(PLACEMENT_SCREEN) > > @appRef.run > > > > You'll want to use 'PLACEMENT_MAXIMIZED' instead of 'PLACEMENT_SCREEN' when > > you 'show' your main window. > > > > -Rich > > > > > > ----- Original Message ----- > > From: "Simon Strandgaard" <ne...@ad...> > > To: "fxruby" <fxr...@li...> > > Sent: Monday, May 24, 2004 6:23 AM > > Subject: [Fxruby-users] switch to full screen mode > > > > > > > I am working on a fxruby frontend for my text editor. > > > I wish to switch to full-screen mode, but have not been able to > > > find any text about how to accomplish this. > > > > > > Any ideas/suggestions are very welcome ? > > > > > > In case you know a fox application which are able to do this > > > then please tell me.. then I will try doing copy/paste :-) > > > > > > -- > > > Simon Strandgaard > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by: Oracle 10g > > > Get certified on the hottest thing ever to hit the market... Oracle 10g. > > > Take an Oracle 10g class now, and we'll give you the exam FREE. > > > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > > > _______________________________________________ > > > Fxruby-users mailing list > > > Fxr...@li... > > > https://lists.sourceforge.net/lists/listinfo/fxruby-users > > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: Oracle 10g > > Get certified on the hottest thing ever to hit the market... Oracle 10g. > > Take an Oracle 10g class now, and we'll give you the exam FREE. > > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > > _______________________________________________ > > Fxruby-users mailing list > > Fxr...@li... > > https://lists.sourceforge.net/lists/listinfo/fxruby-users > > > -- > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Fxruby-users mailing list > Fxr...@li... > https://lists.sourceforge.net/lists/listinfo/fxruby-users -- |
From: Rich <ri...@li...> - 2004-05-24 13:31:33
|
No problem - I would have mentioned what you found on your own... :-) -Rich ----- Original Message ----- From: "Simon Strandgaard" <ne...@ad...> To: <fxr...@li...> Sent: Monday, May 24, 2004 7:22 AM Subject: Re: [Fxruby-users] switch to full screen mode > Silly me.. Of cause I had to change from DECOR_ALL into DECOR_NONE. > > Thanks Rich for leading me on the right track :-) > > -- > Simon Strandgaard > > > Simon Strandgaard wrote: > > > Ok.. this makes a full screen window. However my blackbox titlebar > > is still visible, and the bottom of the window is outside the screen > > (the outside part has the same height as the titlebar). > > > > How do I spawn the window so that the titlebar is outside the display, > > so that pixel x=0, y=0 corresponds to the top-left most corner of the display ? > > > > -- > > Simon Strandgaard > > > > > > > > Rich <ri...@li...> wrote: > > > There will be a point when you do something like: > > > ... > > > @appRef=FXApp.new > > > ... > > > @mainwin=FXMainWindow.new(@appRef,"test") > > > ... > > > @appRef.create > > > @mainwin.show(PLACEMENT_SCREEN) > > > @appRef.run > > > > > > You'll want to use 'PLACEMENT_MAXIMIZED' instead of 'PLACEMENT_SCREEN' when > > > you 'show' your main window. > > > > > > -Rich > > > > > > > > > ----- Original Message ----- > > > From: "Simon Strandgaard" <ne...@ad...> > > > To: "fxruby" <fxr...@li...> > > > Sent: Monday, May 24, 2004 6:23 AM > > > Subject: [Fxruby-users] switch to full screen mode > > > > > > > > > > I am working on a fxruby frontend for my text editor. > > > > I wish to switch to full-screen mode, but have not been able to > > > > find any text about how to accomplish this. > > > > > > > > Any ideas/suggestions are very welcome ? > > > > > > > > In case you know a fox application which are able to do this > > > > then please tell me.. then I will try doing copy/paste :-) > > > > > > > > -- > > > > Simon Strandgaard > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.Net email is sponsored by: Oracle 10g > > > > Get certified on the hottest thing ever to hit the market... Oracle 10g. > > > > Take an Oracle 10g class now, and we'll give you the exam FREE. > > > > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > > > > _______________________________________________ > > > > Fxruby-users mailing list > > > > Fxr...@li... > > > > https://lists.sourceforge.net/lists/listinfo/fxruby-users > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by: Oracle 10g > > > Get certified on the hottest thing ever to hit the market... Oracle 10g. > > > Take an Oracle 10g class now, and we'll give you the exam FREE. > > > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > > > _______________________________________________ > > > Fxruby-users mailing list > > > Fxr...@li... > > > https://lists.sourceforge.net/lists/listinfo/fxruby-users > > > > > > -- > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: Oracle 10g > > Get certified on the hottest thing ever to hit the market... Oracle 10g. > > Take an Oracle 10g class now, and we'll give you the exam FREE. > > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > > _______________________________________________ > > Fxruby-users mailing list > > Fxr...@li... > > https://lists.sourceforge.net/lists/listinfo/fxruby-users > > > -- > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Fxruby-users mailing list > Fxr...@li... > https://lists.sourceforge.net/lists/listinfo/fxruby-users > |
From: Simon S. <ne...@ad...> - 2004-05-24 13:49:46
|
I have a few problem removing the decorations.. here is my story. I want to toggle between window mode and full-screen mode. The main-window is stated with PLACEMENT_SCREEN and DECOR_ALL. Then when the application has been running for a while, I want to switch to full-screen. def onToggleScreenMode(sender, sel, event) self.place(PLACEMENT_MAXIMIZED) self.setDecorations(DECOR_NONE) end It goes to full-screen.. but doesn't remove the decorations. Any ideas on how to accomplish this ? -- Simon Strandgaard Rich <ri...@li...> wrote: > No problem - I would have mentioned what you found on your own... > > :-) > > -Rich > > ----- Original Message ----- > From: "Simon Strandgaard" <ne...@ad...> > To: <fxr...@li...> > Sent: Monday, May 24, 2004 7:22 AM > Subject: Re: [Fxruby-users] switch to full screen mode > > > > Silly me.. Of cause I had to change from DECOR_ALL into DECOR_NONE. > > > > Thanks Rich for leading me on the right track :-) > > > > -- > > Simon Strandgaard > > > > > > Simon Strandgaard wrote: > > > > > Ok.. this makes a full screen window. However my blackbox titlebar > > > is still visible, and the bottom of the window is outside the screen > > > (the outside part has the same height as the titlebar). > > > > > > How do I spawn the window so that the titlebar is outside the display, > > > so that pixel x=0, y=0 corresponds to the top-left most corner of the > display ? > > > > > > -- > > > Simon Strandgaard > > > > > > > > > > > > Rich <ri...@li...> wrote: > > > > There will be a point when you do something like: > > > > ... > > > > @appRef=FXApp.new > > > > ... > > > > @mainwin=FXMainWindow.new(@appRef,"test") > > > > ... > > > > @appRef.create > > > > @mainwin.show(PLACEMENT_SCREEN) > > > > @appRef.run > > > > > > > > You'll want to use 'PLACEMENT_MAXIMIZED' instead of 'PLACEMENT_SCREEN' > when > > > > you 'show' your main window. > > > > > > > > -Rich > > > > > > > > > > > > ----- Original Message ----- > > > > From: "Simon Strandgaard" <ne...@ad...> > > > > To: "fxruby" <fxr...@li...> > > > > Sent: Monday, May 24, 2004 6:23 AM > > > > Subject: [Fxruby-users] switch to full screen mode > > > > > > > > > > > > > I am working on a fxruby frontend for my text editor. > > > > > I wish to switch to full-screen mode, but have not been able to > > > > > find any text about how to accomplish this. > > > > > > > > > > Any ideas/suggestions are very welcome ? > > > > > > > > > > In case you know a fox application which are able to do this > > > > > then please tell me.. then I will try doing copy/paste :-) > > > > > > > > > > -- > > > > > Simon Strandgaard > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > This SF.Net email is sponsored by: Oracle 10g > > > > > Get certified on the hottest thing ever to hit the market... Oracle > 10g. > > > > > Take an Oracle 10g class now, and we'll give you the exam FREE. > > > > > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > > > > > _______________________________________________ > > > > > Fxruby-users mailing list > > > > > Fxr...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/fxruby-users > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.Net email is sponsored by: Oracle 10g > > > > Get certified on the hottest thing ever to hit the market... Oracle > 10g. > > > > Take an Oracle 10g class now, and we'll give you the exam FREE. > > > > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > > > > _______________________________________________ > > > > Fxruby-users mailing list > > > > Fxr...@li... > > > > https://lists.sourceforge.net/lists/listinfo/fxruby-users > > > > > > > > > -- > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by: Oracle 10g > > > Get certified on the hottest thing ever to hit the market... Oracle 10g. > > > Take an Oracle 10g class now, and we'll give you the exam FREE. > > > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > > > _______________________________________________ > > > Fxruby-users mailing list > > > Fxr...@li... > > > https://lists.sourceforge.net/lists/listinfo/fxruby-users > > > > > > -- > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: Oracle 10g > > Get certified on the hottest thing ever to hit the market... Oracle 10g. > > Take an Oracle 10g class now, and we'll give you the exam FREE. > > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > > _______________________________________________ > > Fxruby-users mailing list > > Fxr...@li... > > https://lists.sourceforge.net/lists/listinfo/fxruby-users > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Fxruby-users mailing list > Fxr...@li... > https://lists.sourceforge.net/lists/listinfo/fxruby-users -- |
From: Simon S. <ne...@ad...> - 2004-05-24 14:13:52
|
I somewhere read a reply by Jeroen, that some windowmanagers ignore the decoration requests.. I guess in order to switch from window-mode (with decorations) to full-screen (borderless) then I have to close the window and spawn a full-screen window. -- Simon Strandgaard Simon Strandgaard <ne...@ad...> wrote: > I have a few problem removing the decorations.. here is my story. > > I want to toggle between window mode and full-screen mode. > > The main-window is stated with PLACEMENT_SCREEN and DECOR_ALL. > Then when the application has been running for a while, I want > to switch to full-screen. > > def onToggleScreenMode(sender, sel, event) > self.place(PLACEMENT_MAXIMIZED) > self.setDecorations(DECOR_NONE) > end > > It goes to full-screen.. but doesn't remove the decorations. > > Any ideas on how to accomplish this ? > > -- > Simon Strandgaard > > > Rich <ri...@li...> wrote: > > No problem - I would have mentioned what you found on your own... > > > > :-) > > > > -Rich > > > > ----- Original Message ----- > > From: "Simon Strandgaard" <ne...@ad...> > > To: <fxr...@li...> > > Sent: Monday, May 24, 2004 7:22 AM > > Subject: Re: [Fxruby-users] switch to full screen mode > > > > > > > Silly me.. Of cause I had to change from DECOR_ALL into DECOR_NONE. > > > > > > Thanks Rich for leading me on the right track :-) > > > > > > -- > > > Simon Strandgaard > > > > > > > > > Simon Strandgaard wrote: > > > > > > > Ok.. this makes a full screen window. However my blackbox titlebar > > > > is still visible, and the bottom of the window is outside the screen > > > > (the outside part has the same height as the titlebar). > > > > > > > > How do I spawn the window so that the titlebar is outside the display, > > > > so that pixel x=0, y=0 corresponds to the top-left most corner of the > > display ? > > > > > > > > -- > > > > Simon Strandgaard > > > > > > > > > > > > > > > > Rich <ri...@li...> wrote: > > > > > There will be a point when you do something like: > > > > > ... > > > > > @appRef=FXApp.new > > > > > ... > > > > > @mainwin=FXMainWindow.new(@appRef,"test") > > > > > ... > > > > > @appRef.create > > > > > @mainwin.show(PLACEMENT_SCREEN) > > > > > @appRef.run > > > > > > > > > > You'll want to use 'PLACEMENT_MAXIMIZED' instead of 'PLACEMENT_SCREEN' > > when > > > > > you 'show' your main window. > > > > > > > > > > -Rich > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > From: "Simon Strandgaard" <ne...@ad...> > > > > > To: "fxruby" <fxr...@li...> > > > > > Sent: Monday, May 24, 2004 6:23 AM > > > > > Subject: [Fxruby-users] switch to full screen mode > > > > > > > > > > > > > > > > I am working on a fxruby frontend for my text editor. > > > > > > I wish to switch to full-screen mode, but have not been able to > > > > > > find any text about how to accomplish this. > > > > > > > > > > > > Any ideas/suggestions are very welcome ? > > > > > > > > > > > > In case you know a fox application which are able to do this > > > > > > then please tell me.. then I will try doing copy/paste :-) > > > > > > > > > > > > -- > > > > > > Simon Strandgaard > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > This SF.Net email is sponsored by: Oracle 10g > > > > > > Get certified on the hottest thing ever to hit the market... Oracle > > 10g. > > > > > > Take an Oracle 10g class now, and we'll give you the exam FREE. > > > > > > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > > > > > > _______________________________________________ > > > > > > Fxruby-users mailing list > > > > > > Fxr...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/fxruby-users > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > This SF.Net email is sponsored by: Oracle 10g > > > > > Get certified on the hottest thing ever to hit the market... Oracle > > 10g. > > > > > Take an Oracle 10g class now, and we'll give you the exam FREE. > > > > > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > > > > > _______________________________________________ > > > > > Fxruby-users mailing list > > > > > Fxr...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/fxruby-users > > > > > > > > > > > > -- > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.Net email is sponsored by: Oracle 10g > > > > Get certified on the hottest thing ever to hit the market... Oracle 10g. > > > > Take an Oracle 10g class now, and we'll give you the exam FREE. > > > > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > > > > _______________________________________________ > > > > Fxruby-users mailing list > > > > Fxr...@li... > > > > https://lists.sourceforge.net/lists/listinfo/fxruby-users > > > > > > > > > -- > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by: Oracle 10g > > > Get certified on the hottest thing ever to hit the market... Oracle 10g. > > > Take an Oracle 10g class now, and we'll give you the exam FREE. > > > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > > > _______________________________________________ > > > Fxruby-users mailing list > > > Fxr...@li... > > > https://lists.sourceforge.net/lists/listinfo/fxruby-users > > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: Oracle 10g > > Get certified on the hottest thing ever to hit the market... Oracle 10g. > > Take an Oracle 10g class now, and we'll give you the exam FREE. > > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > > _______________________________________________ > > Fxruby-users mailing list > > Fxr...@li... > > https://lists.sourceforge.net/lists/listinfo/fxruby-users > > > -- > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Fxruby-users mailing list > Fxr...@li... > https://lists.sourceforge.net/lists/listinfo/fxruby-users -- |
From: Simon S. <ne...@ad...> - 2004-05-24 16:50:37
|
FYI: It wasn't possible to change the MainWindow of the application. Instead I now use a FXDialogBox as my primary window. When I want to toggle between fullscreen and windowed mode then I close the dialogbox, and then from the MainWindow I now spawn a new dialogbox instance in the opposite mode. Now I just have to figure out how to make the FXMainWindow invisible? -- Simon Strandgaard Simon Strandgaard wrote: > I somewhere read a reply by Jeroen, that some windowmanagers ignore > the decoration requests.. I guess in order to switch from > window-mode (with decorations) to full-screen (borderless) then > I have to close the window and spawn a full-screen window. > > -- > Simon Strandgaard > > > Simon Strandgaard <ne...@ad...> wrote: > > I have a few problem removing the decorations.. here is my story. > > > > I want to toggle between window mode and full-screen mode. > > > > The main-window is stated with PLACEMENT_SCREEN and DECOR_ALL. > > Then when the application has been running for a while, I want > > to switch to full-screen. > > > > def onToggleScreenMode(sender, sel, event) > > self.place(PLACEMENT_MAXIMIZED) > > self.setDecorations(DECOR_NONE) > > end > > > > It goes to full-screen.. but doesn't remove the decorations. > > > > Any ideas on how to accomplish this ? > > > > -- > > Simon Strandgaard > > > > > > Rich <ri...@li...> wrote: > > > No problem - I would have mentioned what you found on your own... > > > > > > :-) > > > > > > -Rich > > > > > > ----- Original Message ----- > > > From: "Simon Strandgaard" <ne...@ad...> > > > To: <fxr...@li...> > > > Sent: Monday, May 24, 2004 7:22 AM > > > Subject: Re: [Fxruby-users] switch to full screen mode > > > > > > > > > > Silly me.. Of cause I had to change from DECOR_ALL into DECOR_NONE. > > > > > > > > Thanks Rich for leading me on the right track :-) > > > > > > > > -- > > > > Simon Strandgaard > > > > > > > > > > > > Simon Strandgaard wrote: > > > > > > > > > Ok.. this makes a full screen window. However my blackbox titlebar > > > > > is still visible, and the bottom of the window is outside the screen > > > > > (the outside part has the same height as the titlebar). > > > > > > > > > > How do I spawn the window so that the titlebar is outside the display, > > > > > so that pixel x=0, y=0 corresponds to the top-left most corner of the > > > display ? > > > > > > > > > > -- > > > > > Simon Strandgaard > > > > > > > > > > > > > > > > > > > > Rich <ri...@li...> wrote: > > > > > > There will be a point when you do something like: > > > > > > ... > > > > > > @appRef=FXApp.new > > > > > > ... > > > > > > @mainwin=FXMainWindow.new(@appRef,"test") > > > > > > ... > > > > > > @appRef.create > > > > > > @mainwin.show(PLACEMENT_SCREEN) > > > > > > @appRef.run > > > > > > > > > > > > You'll want to use 'PLACEMENT_MAXIMIZED' instead of 'PLACEMENT_SCREEN' > > > when > > > > > > you 'show' your main window. > > > > > > > > > > > > -Rich > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > From: "Simon Strandgaard" <ne...@ad...> > > > > > > To: "fxruby" <fxr...@li...> > > > > > > Sent: Monday, May 24, 2004 6:23 AM > > > > > > Subject: [Fxruby-users] switch to full screen mode > > > > > > > > > > > > > > > > > > > I am working on a fxruby frontend for my text editor. > > > > > > > I wish to switch to full-screen mode, but have not been able to > > > > > > > find any text about how to accomplish this. > > > > > > > > > > > > > > Any ideas/suggestions are very welcome ? > > > > > > > > > > > > > > In case you know a fox application which are able to do this > > > > > > > then please tell me.. then I will try doing copy/paste :-) > > > > > > > > > > > > > > -- > > > > > > > Simon Strandgaard > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > This SF.Net email is sponsored by: Oracle 10g > > > > > > > Get certified on the hottest thing ever to hit the market... Oracle > > > 10g. > > > > > > > Take an Oracle 10g class now, and we'll give you the exam FREE. > > > > > > > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > > > > > > > _______________________________________________ > > > > > > > Fxruby-users mailing list > > > > > > > Fxr...@li... > > > > > > > https://lists.sourceforge.net/lists/listinfo/fxruby-users > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > This SF.Net email is sponsored by: Oracle 10g > > > > > > Get certified on the hottest thing ever to hit the market... Oracle > > > 10g. > > > > > > Take an Oracle 10g class now, and we'll give you the exam FREE. > > > > > > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > > > > > > _______________________________________________ > > > > > > Fxruby-users mailing list > > > > > > Fxr...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/fxruby-users > > > > > > > > > > > > > > > -- > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > This SF.Net email is sponsored by: Oracle 10g > > > > > Get certified on the hottest thing ever to hit the market... Oracle 10g. > > > > > Take an Oracle 10g class now, and we'll give you the exam FREE. > > > > > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > > > > > _______________________________________________ > > > > > Fxruby-users mailing list > > > > > Fxr...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/fxruby-users > > > > > > > > > > > > -- > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.Net email is sponsored by: Oracle 10g > > > > Get certified on the hottest thing ever to hit the market... Oracle 10g. > > > > Take an Oracle 10g class now, and we'll give you the exam FREE. > > > > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > > > > _______________________________________________ > > > > Fxruby-users mailing list > > > > Fxr...@li... > > > > https://lists.sourceforge.net/lists/listinfo/fxruby-users > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by: Oracle 10g > > > Get certified on the hottest thing ever to hit the market... Oracle 10g. > > > Take an Oracle 10g class now, and we'll give you the exam FREE. > > > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > > > _______________________________________________ > > > Fxruby-users mailing list > > > Fxr...@li... > > > https://lists.sourceforge.net/lists/listinfo/fxruby-users > > > > > > -- > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: Oracle 10g > > Get certified on the hottest thing ever to hit the market... Oracle 10g. > > Take an Oracle 10g class now, and we'll give you the exam FREE. > > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > > _______________________________________________ > > Fxruby-users mailing list > > Fxr...@li... > > https://lists.sourceforge.net/lists/listinfo/fxruby-users > > > -- > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Fxruby-users mailing list > Fxr...@li... > https://lists.sourceforge.net/lists/listinfo/fxruby-users -- |
From: jeroen <je...@fo...> - 2004-05-24 22:08:23
|
On Monday 24 May 2004 09:09 am, Simon Strandgaard wrote: > I somewhere read a reply by Jeroen, that some windowmanagers ignore > the decoration requests.. I guess in order to switch from > window-mode (with decorations) to full-screen (borderless) then > I have to close the window and spawn a full-screen window. The maximize requires the window manager to understand "extended window manager hints". See freedesktop.org for details. My first choice would be to see if the blackbox people have added this already, and if not, request it from them [it'll help with ALL modern GUI apps, not just FOX but also gnome and kde]. While you're waiting, you can create a borderless toplevel window and reparent into that. This should work AFIAK. The advantage of reparenting is that you can reparent again to move back to the original toplevel window when you come out of full screen mode again. Regards - Jeroen -- +----------------------------------------------------------------------------+ | Copyright (C) 23:50 12/11/2003 Jeroen van der Zijp. All Rights Reserved. | +----------------------------------------------------------------------------+ |
From: Simon S. <ne...@ad...> - 2004-05-24 22:52:36
|
jeroen <je...@fo...> wrote: > On Monday 24 May 2004 09:09 am, Simon Strandgaard wrote: > > I somewhere read a reply by Jeroen, that some windowmanagers ignore > > the decoration requests.. I guess in order to switch from > > window-mode (with decorations) to full-screen (borderless) then > > I have to close the window and spawn a full-screen window. > > The maximize requires the window manager to understand "extended window manager > hints". See freedesktop.org for details. > > My first choice would be to see if the blackbox people have added this already, > and if not, request it from them [it'll help with ALL modern GUI apps, not > just FOX but also gnome and kde]. I just tried a quick switch to FWM, there resize are working. However I forgot to close my mail-client (sylpheed), and it of cause hadn't written it configuration to disk. The fxruby folder I created today did not survive *sigh*. I would have liked to reply to your other mail, but cannot. Conclusion1: write config to file immediately after a the user have changed something. Conclusion2: close all windows before switching window-manager. > While you're waiting, you can create a borderless toplevel window and reparent > into that. This should work AFIAK. > The advantage of reparenting is that you can reparent again to move back to > the original toplevel window when you come out of full screen mode again. I think I understand what you are saying, however I don't know how to 'reparent'. Any hints ? I partially solved it myself by inherit from FXDialogBox, except that A) when in windowed mode, the window is not resizable. B) don't know how to hide MainWindow. My Ruby implementation can be seen here: http://rubyforge.org/cgi-bin/viewcvs/cgi/viewcvs.cgi/projects/experimental/buffer/viewfox.rb?rev=1.29&cvsroot=aeditor&content-type=text/vnd.viewcvs-markup BTW: thanks for the suggestions :-) -- Simon Strandgaard |