home *** CD-ROM | disk | FTP | other *** search
- Index file for the "Windows" library
-
- Procedures provided:
-
- DEFPROCstartup_windows(max_windows%) - This sets up the various variables
- and arrays used in this library. max_windows% is the maximum number of
- windows you will be creating.
-
- DEFFNwindowflags(str$,oldflags%) - this returns the value of the window
- flags passed in str$. oldflags% contains a previous value, or 0 if there
- isn't any. str$ contains the flags made up of a string of letters in the
- following format:
-
- D - the window is draggable
- R - the window is redrawn by the WIMP
- P - the window is a pane
- X - the window can extend beyond the screen
- A - generate auto-repeat scroll events
- S - generate scroll events without auto-repeat
- G - treat window colours as GCOL ones
- B - no windows below this one
- K - generate key pressed events for 'hot keys'
- F - this must be followed by a second letter:
- B - back icon
- C - close icon
- T - title bar
- S - toggle size icon
- V - vertical scroll bar
- A - adjust size icon
- H - horizontal scroll bar
-
- DEFPROCcreate_window_simple(flags%,minx%,miny%,maxx%,maxy%,w%,h%,title$,
- indtitle%,iblock%) - this creates a window. w% and h% are the width and
- height. indtitle% is an address pointing to an indirect block. Usually
- this should be zero, as the procedure will take care of long titles
- itself.
-
- DEFPROCopenwindow(handle%) - this opens a window on top of the stack.
-
- DEFPROCgetorigin - this is for internal use only.
-
- DEFPROCredraw - starts a redraw. If the handle is known to the program
- it will call FNredraw_n where n is the window number. n is 0 for the
- first window created, 1 for the second, etc. If the handle is unknown,
- FNredraw_unknown is called. PROCpoll() will automatically call this if
- a redraw code is recieved. Passed to FNredraw_n is the origin of the
- window (0,0) in xO%, yO%. Drawing must be done relative to this point.
-
- DEFPROCcreate_window_complex(flags%,minx%,miny%,w%,h%,title$,indtitle%,
- iblock%,foreground%,background%,input%,border%,areatype%) - this allows
- you to create windows with different colours and button types on the
- work area.
-
- DEFPROCforceredraw(minx%,miny%,maxx%,maxy%,handle%) - this forces a redraw
- of a window
-
- DEFFNreporterror(taskname$,error$,ok%,cancel%,no_error_from%) - this
- pops up a error box. To set the flags ok%, cancel% and no_error_from%,
- set them to 1. It reports 1 for OK and 2 for cancel.
-
- DEFFNerror(taskname$,ok%,cancel%) - reports an error as it occurs, using
- REPORT$. The “Internal Error Code” is the line number.
-
- DEFPROCaddpane(host%,pane%,x%,y%) - makes a window with the handle contained
- in pane% a host of the window with the handle host%, at the coordinates x%,
- y% releative to the top left hand side of the window.
-
- DEFPROCopenwindowpane(host%) - opens the window with the handle 'host%',
- including panes.
-
- DEFPROCopenpanes(host%,position%,getstate%) - opens a window with panes at
- position postion% in the stack. getstate% is for internal use only, and
- should be set to 0.
-
-
- Variables used:
-
- handle%() - contains all the window handles. 'Templates' also needs this.
- handle%(0) is the first window, handle%(1) the second, etc.
-