>From: Robin <robinc@...> >Reply-To: futurebasic@... >To: <futurebasic@...> >Subject: Re: [FB] editing PG windows >Date: Fri, 28 Jul 2000 10:31:43 +1000 > > > I need to figure out a way to change the rectangles (and some other >aspects > > of windows) for PG windows. I tried using the WINDOW command to change >the > > rectangle of a window, and then FN pGclose to save the window's new > > attributes. However, when I run it, it brings up an > > error saying that it couldn't find the control list for the window from >the > > PG3 resource. So, how am I supposed to edit them? > >Modify this, which sets a window to fill the current screen size: > >LOCAL FN sizeWnd(wnd,W,H)' >/* Sets the data window, depending on the screen >H screen height >W screen width >Window constant >Centres window with gObjT=0 and gObjL=0 >Dims >*/ >'Dims >DIM myWnd.gWndSize >DIM wTitle$ >'Code >wTitle$ = FN pGgetWnd$(Wnd,@myWnd) >myWnd.gWndT = 0 >myWnd.gWndL = 0 >myWnd.gWndB = H-20'allow room for menu bar >myWnd.gWndR = W >FN pGputWnd (Wnd,@myWnd) >END FN > >-- >Robin Ok, thanks! I put that in, and with a slight modification (added x and y for top and left) it works perfectly. > > *btw, I didn't see any response to my question about having a program > > automatically load a file at startup.. maybe I missed it, but if not I >would > > greatly appreciate some help there.. > >Don't remember the initial question, but if I understand your question, the >easiest way is simply store the complete pathname to the file in your >Preferences and when your app starts, have it check that the file still >exists, and if it does, load it. Sounds good... two questions, however. One.. what preferences? And two, how? I have very basic knowledge of how files and everything works... I just figured out how to save/load a couple weeks ago. So, could you give a basic (as possible) example? Thanks again! -Peter Dempsey ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com