Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: newbieQ: How to make full screen View layout with no border or title

From: holger::rebol::com at: 2-Oct-2001 6:45

On Tue, Oct 02, 2001 at 07:52:06PM +0800, [philb--upnaway--com] wrote:
> Hi Jason, > > Try > > view/options/offset layout > [ > size system/view/screen-face/size > button "End" [unview] > ] > [no-title no-border] 0x0
Yes, but please keep in mind that there is no guarantee that the resulting window will actually have these attributes on all systems, or that it will have the same size as the screen. The no-title and no-border keywords are hints to the operating system, nothing more. It is up to the OS and (for X11) to the window manager to decide exactly how the window is rendered. The application does not have final control over this, it can only make requests, so your window may very well end up having borders and a title bar (or other decorations) on some systems. Same thing for the offset: some X window managers are notorious for ignoring the application-provided offset, and position the window wherever they feel like, usually "staggered" in some way, or cached from the last time the application was run, or even interactively in a dialog with the user. We have seen this behavior with KDE, Twm and other widely used window managers. Another offset-related problem is that the offset may be off by the height and width of the border and titlebar. That is the result of some window managers handling offsets inconsistently and incorrectly on windows with borders or titlebar. And about the size: some systems support "virtual screens", so the value in system/view/screen-face/size might not be meaningful and only refer to one out of several possible screen sizes. The actual size being used for the virtual screen, once the window is opened, may very well be different, depending on configuration or user choices. It is still a good idea to use those flags if you really need that full-screen look (e.g. for a presentation program), but even if you do you still need to be prepared to handle smaller resulting windows, window dragging etc. in your applicarion. You should also allow the user to override the window size in your application's configuration settings, e.g. in the case where an operating system supports window sizes and offsets correctly, but ignores no-border or no-title (common in Unix), because in that case your window would end up partially off-screen with your current code, with some window managers. -- Holger Kruse [holger--rebol--com]