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

[REBOL] Re: default offset

From: SunandaDH:aol at: 3-Oct-2003 4:44

Patrick:
> It's bothering me because (1) my Windows menu bar is already there, (2) the > top of the Rebol window is hidden. (In my own program, I always use "view > center-face".)
The default on my system is 25x25 -- don't know where it is stored, but you can easily check with something like this:
>> view mylayout: layout [box blue 100x100]
(escape)
>> mylayout/offset
== 25x25 If you want a window to start somewhere relative to your screen geometry, play around with something like this: unview/all view/offset layout [box blue 100x100] system/view/screen-face/size / 3 or even: forever [ unview/all view/new/offset layout [box blue 100x100 [halt]] random/secure system/view/screen-face/size wait 1 ] system/view/screen-face/size is your monitor's resolution. Sunanda.