@DATABASE "OS_DevKit Extension" @INDEX "os_index.guide/main" @AUTHOR "Fromentin BRICE & Jens Vang Petersen" @node MAIN "OS_DevKit, intuition.library support" @toc "os_Documentation.guide/main" ___________ ___________ / /\ / /\ OS-DevKit Extension / ___ / // _______/ / Additional power for AMOS Pro V2.00+ / /\_/ / // /\_____ \/ / / // / // /\ Written by: / / // / //______ / / Fromentin BRICE / /_// / /_\_____/ / / / / // / / /__________/ //__________/ / \__________\/ \__________\/ @{b}@{u}The Advanced support of 'intuition.library'@{uu}@{ub} @{" Windows " link "WIND"} @{" Screens " link "SCRE"} @{" Gadgets " link "GADG"} @{" Structure Drawing " link "STRU"} @{" Misc. " link "MISC"} @endnode @node MISC "OS_DevKit, intuition.library-misc support" @toc "MAIN" ___________ ___________ / /\ / /\ OS-DevKit Extension / ___ / // _______/ / Additional power for AMOS Pro V2.00+ / /\_/ / // /\_____ \/ / / // / // /\ Written by: / / // / //______ / / Fromentin BRICE / /_// / /_\_____/ / / / / // / / /__________/ //__________/ / \__________\/ \__________\/ @{b}@{u}The Advanced support of 'intuition.library'@{uu}@{ub} @{b}@{u}Misc Commands@{uu}@{ub} @{u}Commands:@{uu} @{" _disp Alert " Link "_disp Alert"} @{" _req Easy " Link "_req Easy"} @{" _req Init " Link "_req Init"} @{" _req Do " Link "_req Do"} @{" _req End " Link "_req End" } @{" _disp Rethink " Link "_disp Rethink"} @{" _disp Remake " Link "_disp Remake"} @{" _rfsh Begin " Link "_rfsh Begin"} @{" _rfsh End " Link "_rfsh End"} @{" _ptr Set " Link "_ptr Set"} @{" _ptr Clear " Link "_ptr Clear"} @{" _prfs Set " Link "_prfs Set"} @{" _prfs Get Def " Link "_prfs Get Def"} @{" _prfs Get " Link "_prfs Get"} @{" _dbl Click " Link "_dbl Click"} @{" _sys View " Link "_sys View"} @{" _sys Time " Link "_sys Time"} @{" _ibase Lock " Link "_ibase Lock"} @{" _ibase Unlock " Link "_ibase Unlock"} @{" _mouse Report " Link "_mouse Report"} @{" _mouse Unreport " Link "_mouse Unreport"} @{" _query Overscan " Link "_query Overscan"} @ENDNODE @NODE "_disp Alert" @toc "MISC" _disp Alert This function displays a limps type of warning 'software-failure.' The function returns 0 if the alert is of 'DEADEND' type. OK=_disp Alert(ALERTNUM,STR,HEIGHT) ALERTNUM-> 0 (RECOVERY) ou $80000000 (DEADEND) STR -> Pointer of string allocated by '_str Alloc' and located by '_str Pos' HEIGHT -> Height of alert @ENDNODE @NODE "_req Easy" @toc "MISC" _req Easy This function does a requester of 'RequestChoice' type. Then returns the number of selected button. The right one has 0, then the remainder of 1 has X in leaving of on the left. BUTTON=_req Easy(WND,PTXT0,PTXT1,PTXT2) WND -> Pointer of attached window. PTXT0 -> Pointer of Title string. PTXT1 -> Pointer of Body string. PTXT2 -> Pointer of Gadgets string. (Separated by '|') @ENDNODE @NODE "_rfsh Begin" @toc "MISC" _rfsh Begin This function has the same working that '_gt Begin Refresh' _rfsh Begin WND WND -> Pointer of Window @ENDNODE @NODE "_rfsh End" @toc "MISC" _rfsh End See '_gt End Refresh' _rfsh End WND,COMPLETE WND -> Pointer of Window COMPLETE-> Set to false means that not yet finished Otherwise, the refresh is complete. @ENDNODE @NODE "_disp Remake" @toc "MISC" _disp Remake This function redos all the counts of the ViewPorts for the display. _disp Remake @ENDNODE @NODE "_disp Rethink" @toc "MISC" _disp Rethink This function updates the display and the Copper. _disp Rethink @ENDNODE @NODE "_ptr Clear" @toc "MISC" _prt Clear This function gives the pointer of the preferences to the window. _ptr Clear WND WND -> Pointer of Window @ENDNODE @NODE "_ptr Set" @toc "MISC" _ptr Set This function gives a new pointer to the window. _ptr Set WND,PTR,W,H,XOFF,YOFF WND -> Pointer of Window PTR -> Pointer of Sprites Datas W -> Width H -> Height XOFF -> Abscissa |-> of the pointer Hot Spot YOFF -> Ordinate | @ENDNODE @NODE "_sys Time" @toc "MISC" _sys Time This function sends back the hour system to the mentioned addresses. _sys Time PTRS,PTRM PTRS -> Address of the variable for seconds PTRM -> Address of the variable for micros @ENDNODE @NODE "_dbl Click" @toc "MISC" _dbl Click Test if a double-click took place. It watches if the time between the two clicks is inferior has the one of preferences. The times could be get by the @{"_sys Time" Link "_sys Time"} function. OK=_dbl Click(STARTS,STARTM,CURRENTS,CURRENTM) STARTS -> First click in seconds STARTM -> First click in micros CURRENTS-> Second click in seconds CURRENTM-> Second click in micros @ENDNODE @NODE "_prfs Get Def" @toc "MISC" _prfs Get Def -->> OBSOLETE <<-- @ENDNODE @NODE "_prfs Get" @toc "MISC" _prfs Get -->> OBSOLETE <<-- @ENDNODE @NODE "_prfs Set" @toc "MISC" _prfs Set -->> OBSOLETE <<-- @ENDNODE @NODE "_mouse Report" @toc "MISC" _mouse Report This function starts the surveillance of the mouse for the window. _mouse Report WND WND -> Pointer of Window. @ENDNODE @NODE "_mouse Unreport" @toc "MISC" _mouse Unreport This function stops the surveillance of the mouse for the window. _mouse Unreport WND WND -> Pointer of Window. @ENDNODE @NODE "_ibase Lock" @toc "MISC" _ibase Lock This function puts in places the protection against the access to the IntuitionBase structure. This allows you to read the structures in all quietude but it is necessary to call {"_ibase Unlock" Link "_ibase Unlock"} the most quickly possible with the number sent back by the function. VERY DANGEROUS FUNCTION BECAUSE IT LOCK SYSTEM. LOCK=_ibase Lock(LOCKNB) LOCKNB -> Numéro de la protection (0 pour toute la structure) @ENDNODE @NODE "_ibase Unlock" @toc "MISC" _ibase Unlock This function removes the protection against the access put by {"_ibase Lock" Link "_ibase Lock"}. _ibase Unlock LOCK LOCK -> Returned by @{BG Fill}@{"_ibase Lock" Link "_ibase Lock"} @ENDNODE @NODE "_sys View" @toc "MISC" _sys View This function sends back the pointer of the View structure of system. VIEW=_sys View @ENDNODE @NODE "_query Overscan" @toc "MISC" _query Overscan This function filled a rectangle structure for the exploitation of the mode wanted in overscan asked. It sends back 0 if failure. OK=_query Overscan(DISPID,RECT,TYPE) DISPID -> Display Mode. RECT -> Pointer of the rectangle structure. TYPE -> Type of structure. @ENDNODE @NODE "_req Init" @toc "MISC" _req Init This function initializes a Requester structure. _req Init REQ REQ -> Pointer of Requester @ENDNODE @NODE "_req Do" @toc "MISC" _req Do This function displays a Requester. And sends back TRUE if all is OK. OK=_req Do(REQ,WND) REQ -> Pointer of Requester. WND -> Pointer of Window. @ENDNODE @NODE "_req End" @toc "MISC" _req End This function ends a requester. _req End REQ,WND REQ -> Pointer of Requester. WND -> Pointer of Window. @ENDNODE @node SCRE "OS_DevKit, intuition.library-screens support" @toc "MAIN" ___________ ___________ / /\ / /\ OS-DevKit Extension / ___ / // _______/ / Additional power for AMOS Pro V2.00+ / /\_/ / // /\_____ \/ / / // / // /\ Written by: / / // / //______ / / Fromentin BRICE / /_// / /_\_____/ / / / / // / / /__________/ //__________/ / \__________\/ \__________\/ @{b}@{u}The Advanced support of 'intuition.library'@{uu}@{ub} @{b}@{u}Screens@{uu}@{ub} @{" TAGs Description " Link "os_refs.guide/scrTAGS"} @{" Structure: NEWSCREEN " Link "os_refs.guide/nscreen_str"} @{" Structure: SCREEN " Link "os_refs.guide/screen_str"} @{u}Commands:@{uu} @{" _scr Def Body " Link "_scr Def Body" } @{" _scr Def Pens " Link "_scr Def Pens" } @{" _scr Def Font " Link "_scr Def Font" } @{" _scr Wdef Font " Link "_scr Wdef Font" } @{" _scr Def Title " Link "_scr Def Title" } @{" _scr Wdef Title " Link "_scr Wdef Title" } @{" _scr Def Bmap " Link "_scr Def Bmap" } @{" _scr Wdef Bmap " Link "_scr Wdef Bmap" } @{" _scr Def Vmodes " Link "_scr Def Vmodes"} @{" _scr Wdef Vmodes " Link "_scr Wdef Vmodes"} @{" _scr Def Type " Link "_scr Def Type" } @{" _scr Wdef Type " Link "_scr Wdef Type" } @{" _scr Def Pub " Link "_scr Def Pub" } @{" _scr Set Title " Link "_scr Set Title" } @{" _scr Set Def Title " Link "_scr Set Def Title"} @{" _scr Open " Link "_scr Open" } @{" _scr Tag Open " Link "_scr Tag Open" } @{" _scr Close " Link "_scr Close" } @{" _scr Beep " Link "_scr Beep" } @{" _scr Move " Link "_scr Move" } @{" _scr Position " Link "_scr Position" } @{" _scr To Back " Link "_scr To Back" } @{" _scr To Front " Link "_scr To Front" } @{" _scr Show Title " Link "_scr Show Title"} @{" _scr Hide Title " Link "_scr Hide Title" } @{" _scr Dinf Get " Link "_scr Dinf Get" } @{" _scr Dinf Free " Link "_scr Dinf Free" } @{" _scr Pub Lock " Link "_scr Pub Lock" } @{" _scr Pub Unlock " Link "_scr Pub Unlock" } @{" _scr Pub Modes " Link "_scr Pub Modes" } @{" _scr What Front " Link "_scr What Front" } @{" _scr What Next " Link "_scr What Next" } @{" _scr What Active " Link "_scr What Active" } @{" _scr What Def Title " Link "_scr What Def Title" } @{" _scr What Title " Link "_scr What Title" } @{" _scr What Rport " Link "_scr What Rport" } @{" _scr What Bmap " Link "_scr What Bmap" } @{" _scr What First Wnd " Link "_scr What First Wnd" } @{" _scr What Layer Info " Link "_scr What Layer Info"} @{" _scr What Layer " Link "_scr What Layer" } @{" _scr What Font " Link "_scr What Font" } @{" _scr What Width " Link "_scr What Width" } @{" _scr What Height " Link "_scr What Height" } @{" _scr What Depth " Link "_scr What Depth" } @{" _scr What B Pen " Link "_scr What B Pen" } @{" _scr What D Pen " Link "_scr What D Pen" } @{" _scr What X Mouse " Link "_scr What X Mouse" } @{" _scr What Y Mouse " Link "_scr What Y Mouse"} @{" _scr What Vmodes " Link "_scr What Vmodes" } @{" _scr What Vport " Link "_scr What Vport" } @{" _scr What Type " Link "_scr What Type" } @{" _scr What Barh " Link "_scr What Barh" } @ENDNODE @NODE "_scr Def Body" @toc "SCRE" _scr Def Body This function sets the physical features of body of the screen. _scr Def Body X,Y,W,H,D (X,Y) Coordinates of Screens W Width H Height D Depth of screens. The default is : _scr Def Body 0,0,640,256,3 @ENDNODE @NODE "_scr Def Pens" @toc "SCRE" _scr Def Pens This function sets the color of the pens of the screen. _scr Def Pens DP,BP DP Pen of details (Detail Pen) BP Pen of blocks (Block Pen) The default is : _scr Def Pens 0,1 @ENDNODE @NODE "_scr Def Font" @toc "SCRE" _scr Def Font This function sets the font of the screen. _scr Def Font TA TA Pointer of TextAttr structure The default is : _scr Def Font (_base Topaz) @ENDNODE @NODE "_scr Def Title" @toc "SCRE" _scr Def Title This function fixes the title of the screen by default. _scr Def Title PTXT PTXT Pointer on a Null Terminated String. The default is : _scr Def Font 0 {<-No Title} @ENDNODE @NODE "_scr Def Bmap" @toc "SCRE" _scr Def Bmap This function sets the default BitMap to be use by the screen if the screen type specifies to use it. _scr Def Bmap BMAP BMAP -> Pointer of BitMap @ENDNODE @NODE "_scr Def Vmodes" @toc "SCRE" _scr Def Vmodes This function sets the resolution of the screen. _scr Def Vmodes VMODES VMODES -> Standard Resolution Mode The default is : _scr Def Vmodes Hires @ENDNODE @NODE "_scr Def Type" @toc "SCRE" _scr Def Type This function sets the type of screen to open. _scr Def Type TYPE TYPE Type & Attributs de l'écran WBENCHSCREEN = $1 PUBLICSCREEN = $2 CUSTOMSCREEN = $F SHOWTITLE = $10 BEEPING = $20 CUSTOMBITMAP = $40 SCREENBEHIND = $80 SCREENQUIET = $100 SCREENHIRES = $200 PENSHARED = $400 NS_EXTENDED = $1000 AUTOSCROLL = $4000 The default is : _scr Def Type $420F @ENDNODE @NODE "_scr Def Pub" @toc "SCRE" _scr Def Pub This function defines the default public screen. _scr Def Pub PTXT PTXT -> Address of Title string. The default is : 'Workbench Screen',0 @ENDNODE @NODE "_scr Set Title" @toc "SCRE" _scr Set Title This function changes the title of the asked screen. Attention, it is necessary to create a refresh for in see the effect. _scr Set Title SCR,PTXT SCR -> Pointer of Screen PTXT -> Pointer of title string. @ENDNODE @NODE "_scr Set Def Title" @toc "SCRE" _scr Set Def Title This function changes the default title of the asked screen. Attention, it is necessary to create a refresh for in see the effect. This title appears when you select a window in this screen. _scr Set Def Title SCR,PTXT SCR -> Pointer of Screen. PTXT -> Pointer of title screen. @ENDNODE @NODE "_scr Open" @toc "SCRE" _scr Open This function opens a intuition screen. It exists several syntaxes in order to permit has all an each of in open for the basis it is not apparent. This function, if it successful, sends back the pointer of the screen that it is necessary to keep preciously for it will be necessary it mentions the for all the next operation regarding. o SCR=_scr Open Open a screen with all default settings. o SCR=_scr Open(W,H,D) Open a screen of Width W Height H Depth D o SCR=_scr Open(W,H,D,VMODES,TYPE) Open a screen of Width W Height H Depth D Mode VMODES Type TYPE WBENCHSCREEN = $1 PUBLICSCREEN = $2 CUSTOMSCREEN = $F SHOWTITLE = $10 BEEPING = $20 CUSTOMBITMAP = $40 SCREENBEHIND = $80 SCREENQUIET = $100 SCREENHIRES = $200 PENSHARED = $400 NS_EXTENDED = $1000 AUTOSCROLL = $4000 o SCR=_scr Open(NEWSCREEN) NEWSCREEN -> Pointeur on a NEWSCREEN Structure. @ENDNODE @NODE "_scr Tag Open" @toc "SCRE" _scr Tag open For the adepts of the 'TAG Lists,' here a function whose opens a screen but this time here and there, it is necessary to transmit a TAG List. o SCR=_scr Tag Open(TAG) TAG -> Pointer of TAG List. o SCR=_scr Tag Open(NEWSCREEN,TAG) NEWSCREEN Pointer of NewScreen structure TAG -> Pointer of TAG List @ENDNODE @NODE "_scr Close" @toc "SCRE" _scr Close This function closes the asked screen. _scr Close SCR SCR -> Pointer of Screen @ENDNODE @NODE "_scr Beep" @toc "SCRE" _scr Beep This function makes to blink the screen. Convenient in order to signal a mistake. _scr Beep SCR SCR -> Pointer of Screen @ENDNODE @NODE "_scr Move" @toc "SCRE" _scr Move This function displaces the screen relatively to its present place. _scr Move SCR,DX,DY SCR -> Pointer of Screen. DX -> X Offset. DY -> Y Offset. A positive X offset means a displacement toward the right, otherwise, toward the left in the negative. A positive Y offset means a displacement toward the top, otherwise, toward the bottom in the negative. @ENDNODE @NODE "_scr To Back" @toc "SCRE" _scr To Back Pass the screen in rear plan, i.e, behind the others :-) _scr to Back SCR SCR -> Pointer of Screen @ENDNODE @NODE "_scr To Front" @toc "SCRE" _scr To Front Pass the screen in before plan, i.e, before the others :-) _scr to Front SCR SCR -> Pointer of Screen @ENDNODE @NODE "_scr Position" @toc "SCRE" _scr Position V39 Displace the screen has some ABSOLUTE coordinates. _scr Position SCR,X,Y SCR -> Pointer of Screen. (X, Y) -> Absolute Coordinates. @ENDNODE @NODE "_scr Show Title" @toc "SCRE" _scr Show Title Display the title bar of a screen. _scr Show Title SCR SCR -> Pointer of Screen @ENDNODE @NODE "_scr Hide Title" @toc "SCRE" _scr Hide Title Hides the title bar of screen. _scr Hide Title SCR SCR -> Pointer of Screen @ENDNODE @NODE "_scr Dinf Get" @toc "SCRE" _scr Dinf Get This function sends back the pointer of DrawInfo structure, containing all the necessary informations to the various traces. DINF=_scr Dinf Get(SCR) SCR -> Pointer of Screen @ENDNODE @NODE "_scr Dinf Free" @toc "SCRE" _scr Dinf Free This function liberates the DrawInfo structure, previously require. _scr Dinf Free SCR,DINF SCR -> Pointer of Screen. DINF -> Pointer of DrawInfo Structure. @ENDNODE @NODE "_scr Pub Lock" @toc "SCRE" _scr Pub Lock This function locks a public screen and sends back its pointer. SCR=_scr Pub Lock(PTXT) PTXT -> Pointer of title string. @ENDNODE @NODE "_scr Pub Unlock" @toc "SCRE" _scr Pub Unlock This function liberates a screen public previously locked. _scr Pub Unlock SCR SCR -> Pointer of Screen @ENDNODE @NODE "_scr Pub Modes" @toc "SCRE" _scr Pub Modes This function changes the mode of the public screens and sends back the older one. OLDMODE=_scr Pub Modes(MODES) MODES -> Modes of public screen. @ENDNODE @NODE "_scr What Front" @toc "SCRE" _scr What Front This function sends back the pointer of the screen whose is in before plan. SCR=_scr What Front @ENDNODE @NODE "_scr What Next" @toc "SCRE" _scr What Next This function sends back the pointer of the following screen, i.e, the one right after in the display order. SCR0=_scr What Next(SCR1) SCR1 -> Pointer of Screen @ENDNODE @NODE "_scr What Active" @toc "SCRE" _scr What Active This function sends back the pointer of the active screen. SCR=_scr What Active @ENDNODE @NODE "_scr What Title" @toc "SCRE" _scr What Title This function sends back the pointer the string containing the title, if it is void, there is no title. PTXT=_scr What Title(SCR) SCR -> Pointer of Screen @ENDNODE @NODE "_scr What Def Title" @toc "SCRE" _scr What Def Title This function sends back the pointer of the string containing the default title, if it is void, there is no title. PTXT=_scr What Def Title(SCR) SCR -> Pointer of Screen @ENDNODE @NODE "_scr What Vport" @toc "SCRE" _scr What Vport This function sends back the pointer of ViewPort associated to the screen. The ViewPort is a structure who manages the display of the screen to the Copper level and of all this that it implies, i.e, colors, position ... VPORT=_scr What Vport(SCR) SCR -> Pointer of Screen @ENDNODE @NODE "_scr What Rport" @toc "SCRE" _scr What Rport This function sends back the pointer of RastPort associated to the screen. The RastPort is a structure whose manages the operations of trace on the screen, like tracing of ellipsis, of text. Cette fonction renvoie le handler du RastPort associé à l'écran. Le RastPort est une structure qui gère les opérations de tracé sur l'écran, comme le tracé d'éllipse, de texte, ... RPORT=_scr What Rport(SCR) SCR -> Pointer of Screen @ENDNODE @NODE "_scr What Bmap" @toc "SCRE" _scr What Bmap This function sends back the pointer of BitMap associated to the screen. The BitMap is a structure whose contains the binary plans, i.e, the content of the screen. It is in some leaves the matter first that he one sculpts with the RastPort then that he one shows with the ViewPort. BMAP=_scr What Bmap(SCR) SCR -> Pointer of Screen @ENDNODE @NODE "_scr What First Wnd" @toc "SCRE" _scr What First Wnd This function sends back the pointer of the window in before plan, if it is void, it is that there is no window on this screen. WND=_scr What First Wnd(SCR) SCR -> Pointer of Screen @ENDNODE @NODE "_scr What Font" @toc "SCRE" _scr What Font This function sends back the pointer of the font of the screen. More exactly, it gives the pointer of the TextAttr structure of the Font. TA=_scr What Font(SCR) SCR -> Pointer of Screen @ENDNODE @NODE "_scr What Layer Info" @toc "SCRE" _scr What Layer Info This function sends back the pointer of the Layer Info Structure. This structure manages the Layers who is some graphic elements. LAYINF=_scr What Layer Info(SCR) SCR -> Pointer of Screen @ENDNODE @NODE "_scr What Layer" @toc "SCRE" _scr What Layer This function sends back the pointer of Layer of the screen. A Layer is a graphic element. LAYER=_scr What Layer(SCR) SCR -> Pointer of Screen @ENDNODE @NODE "_scr What Width" @toc "SCRE" _scr What Width This function sends back the width of the screen, in pixels. W=_scr What Width(SCR) SCR -> Pointer of Screen @ENDNODE @NODE "_scr What Height" @toc "SCRE" _scr What Height This function sends back the height of the screen, in pixels. H=_scr What Height(SCR) SCR -> Pointer of Screen @ENDNODE @NODE "_scr What Depth" @toc "SCRE" _scr What Depth This function sends back the depth of the screen, in binary plan. D=_scr What Depth(SCR) SCR -> Pointer of Screen @ENDNODE @NODE "_scr What D Pen" @toc "SCRE" _scr What D Pen This function sends back the detail pen number of the screen. DP=_scr What D Pen(SCR) SCR -> Pointer of Screen @ENDNODE @NODE "_scr What B Pen" @toc "SCRE" _scr What B Pen This function sends back the block pen number of the screen. BP=_scr What B Pen(SCR) SCR -> Pointer of Screen @ENDNODE @NODE "_scr What X Mouse" @toc "SCRE" _scr What X Mouse This function sends back the abscissa of the mouse in the screen. X=_scr What X Mouse(SCR) SCR -> Pointer of Screen @ENDNODE @NODE "_scr What Y Mouse" @toc "SCRE" _scr What Y Mouse This function sends back the ordinate of the mouse in the screen. Y=_scr What Y Mouse(SCR) Où correspond : SCR Handler Ecran @ENDNODE @NODE "_scr What Barh" @toc "SCRE" _scr What Barh This function sends back the height of the title bar of the screen. BH=_scr What Barh(SCR) SCR -> Pointer of Screen @ENDNODE @NODE "_scr What Vmodes" @toc "SCRE" _scr What Vmodes This function sends back the ViewMode of the screen. VMODES=_scr What Vmodes(SCR) SCR -> Pointer of Screen @ENDNODE @NODE "_scr What Type" @toc "SCRE" _scr What Type This function sends back of type of the screen. (these Flags for the intimate) TYPE=_scr What Type(SCR) SCR -> Pointer of Screen @ENDNODE @NODE "_scr Wdef Title" @toc "SCRE" _scr Wdef Title This function sends back the pointer of title by default. PTXT=_scr Wdef Title @ENDNODE @NODE "_scr Wdef Bmap" @toc "SCRE" _scr Wdef Bmap This function sends back the pointer of the BitMap by default. BMAP=_scr Wdef Bmap @ENDNODE @NODE "_scr Wdef Vmodes" @toc "SCRE" _scr Wdef Vmodes This function sends back the ViewMode by default. VMODES=_scr Wdef Vmodes @ENDNODE @NODE "_scr Wdef Type" @toc "SCRE" _scr Wdef Type This function sends back the type of screen by default. Type=_scr Wdef Type @ENDNODE @NODE "_scr Wdef Font" @toc "SCRE" _scr Wdef Font Cette fonction renvoie le BitMap par défaut. BMAP=_scr Wdef Bmap @ENDNODE @node WIND "OS_DevKit, intuition.library-windows support" @toc "MAIN" ___________ ___________ / /\ / /\ OS-DevKit Extension / ___ / // _______/ / Additional power for AMOS Pro V2.00+ / /\_/ / // /\_____ \/ / / // / // /\ Written by: / / // / //______ / / Fromentin BRICE / /_// / /_\_____/ / / / / // / / /__________/ //__________/ / \__________\/ \__________\/ @{b}@{u}The Advanced support of 'intuition.library'@{uu}@{ub} @{b}@{u}Windows@{uu}@{ub} @{" List of IDCMP " Link "os_refs.guide/idcmp"} @{" Description of Flags " Link "os_refs.guide/winflags"} @{" Description of TAGs " Link "os_refs.guide/wintags"} @{" NEWWINDOW Structure " Link "os_refs.guide/_nwnd_struct"} @{" WINDOW Structure " Link "os_refs.guide/_wnd_struct"} @{u}Commands:@{uu} @{" _wnd Def Body " Link "_wnd Def Body" } @{" _wnd Wdef Left " Link "_wnd Wdef Left" } @{" _wnd Wdef Top " Link "_wnd Wdef Top" } @{" _wnd Wdef Width " Link "_wnd Wdef Width" } @{" _wnd Wdef Height " Link "_wnd Wdef Height" } @{" _wnd Def Pens " Link "_wnd Def Pens" } @{" _wnd Wdef D Pen " Link "_wnd Wdef D Pen" } @{" _wnd Wdef B Pen " Link "_wnd Wdef B Pen" } @{" _wnd Def Idcmp " Link "_wnd Def Idcmp" } @{" _wnd Wdef Idcmp " Link "_wnd Wdef Idcmp" } @{" _wnd Def Title " Link "_wnd Def Title" } @{" _wnd Wdef Title " Link "_wnd Wdef Title" } @{" _wnd Def Gad " Link "_wnd Def Gad" } @{" _wnd Wdef Gad " Link "_wnd Wdef Gad" } @{" _wnd Def Flags " Link "_wnd Def Flags" } @{" _wnd Wdef Flags " Link "_wnd Wdef Flags" } @{" _wnd Def Type " Link "_wnd Def Type" } @{" _wnd Wdef Type " Link "_wnd Wdef Type" } @{" _wnd Def Image " Link "_wnd Def Image" } @{" _wnd Wdef Image " Link "_wnd Wdef Image" } @{" _wnd Def Scr " Link "_wnd Def Scr" } @{" _wnd Wdef Scr " Link "_wnd Wdef Scr" } @{" _wnd Def Limits " Link "_wnd Def Limits" } @{" _wnd Wdef Min Width " Link "_wnd Wdef Min Width" } @{" _wnd Wdef Min Height " Link "_wnd Wdef Min Height" } @{" _wnd Wdef Max Width " Link "_wnd Wdef Max Width" } @{" _wnd Wdef Max Height " Link "_wnd Wdef Max Height" } @{" _wnd Def Bmap " Link "_wnd Def Bmap" } @{" _wnd Wdef Bmap " Link "_wnd Wdef Bmap" } @{" _wnd Set Titles " Link "_wnd Set Titles" } @{" _wnd Set Pointera " Link "_wnd Set Pointera" } @{" _wnd Set Limits " Link "_wnd Set Limits" } @{" _wnd Set Idcmp " Link "_wnd Set Idcmp" } @{" _wnd Open " Link "_wnd Open" } @{" _wnd Tag Open " Link "_wnd Tag Open" } @{" _wnd Close " Link "_wnd Close" } @{" _wnd Activate " Link "_wnd Activate" } @{" _wnd Move " Link "_wnd Move" } @{" _wnd Box " Link "_wnd Box" } @{" _wnd To Back " Link "_wnd To Back" } @{" _wnd To Front " Link "_wnd To Front" } @{" _wnd Size " Link "_wnd Size" } @{" _wnd Zip " Link "_wnd Zip" } @{" _wnd Refresh Frame " Link "_wnd Refresh Frame" } @{" _wnd In Front Of " Link "_wnd In Front Of" } @{" _wnd Scroll Raster " Link "_wnd Scroll Raster" } @{" _wnd What Active " Link "_wnd What Active" } @{" _wnd What Front " Link "_wnd What Front" } @{" _wnd What Next " Link "_wnd What Next" } @{" _wnd What Title " Link "_wnd What Title" } @{" _wnd What Scr Title " Link "_wnd What Scr Title" } @{" _wnd What Rport " Link "_wnd What Rport" } @{" _wnd What Layer " Link "_wnd What Layer" } @{" _wnd What Scr " Link "_wnd What Scr" } @{" _wnd What Font " Link "_wnd What Font" } @{" _wnd What Left " Link "_wnd What Left" } @{" _wnd What Top " Link "_wnd What Top" } @{" _wnd What Width " Link "_wnd What Width" } @{" _wnd What Height " Link "_wnd What Height" } @{" _wnd What Min Width " Link "_wnd What Min Width" } @{" _wnd What Max Width " Link "_wnd What Max Width" } @{" _wnd What Min Height " Link "_wnd What Min Height" } @{" _wnd What Max Height " Link "_wnd What Max Height" } @{" _wnd What D Pen " Link "_wnd What D Pen" } @{" _wnd What B Pen " Link "_wnd What B Pen" } @{" _wnd What X Mouse " Link "_wnd What X Mouse" } @{" _wnd What Y Mouse " Link "_wnd What Y Mouse" } @{" _wnd What Flags " Link "_wnd What Flags" } @{" _wnd What First Req " Link "_wnd What First Req" } @{" _wnd What Dm Req " Link "_wnd What Dm Req" } @{" _wnd What Count Req " Link "_wnd What Count Req" } @{" _wnd What Bdr Left " Link "_wnd What Bdr Left" } @{" _wnd What Bdr Right " Link "_wnd What Bdr Right" } @{" _wnd What Bdr Top " Link "_wnd What Bdr Top" } @{" _wnd What Bdr Bottom " Link "_wnd What Bdr Bottom" } @{" _wnd What First Gad " Link "_wnd What First Gad" } @{" _wnd What Menu " Link "_wnd What Menu" } @{" _wnd What Parent " Link "_wnd What Parent" } @{" _wnd What Descendant " Link "_wnd What Descendant" } @{" _wnd What Pointer " Link "_wnd What Pointer" } @{" _wnd What Pointer Width " Link "_wnd What Pointer Width" } @{" _wnd What Pointer Height " Link "_wnd What Pointer Height"} @{" _wnd What Pointer Xoff " Link "_wnd What Pointer Xoff" } @{" _wnd What Pointer Yoff " Link "_wnd What Pointer Yoff" } @{" _wnd What Idcmp " Link "_wnd What Idcmp" } @{" _wnd What User Port " Link "_wnd What User Port" } @{" _wnd What Port " Link "_wnd What Port" } @{" _wnd What Int Msg " Link "_wnd What Int Msg" } @{" _wnd What Image " Link "_wnd What Image" } @{" _wnd What User Data " Link "_wnd What User Data" } @{" _wnd What Ext Data " Link "_wnd What Ext Data" } @ENDNODE @NODE "_wnd Def Body" @toc "WIND" _wnd Def Body This function sets the physical features of body of the Window. _wnd Def Body X,Y,W,H (X,Y) -> Coordinates of the left top corner. W -> Width of the window. H -> Height of the windpw. The default is : _wnd Def Body 16,16,64,64 @ENDNODE @NODE "_wnd Def Pens" @toc "WIND" _wnd Def Pens This function sets the pens of the window. _wnd Def Pens DP,BP DP -> Detail Pen BP -> Block Pen The default is : _wnd Def Pens 0,1 @ENDNODE @NODE "_wnd Def Idcmp" @toc "WIND" _wnd Def Idcmp This function sets the@{"IDCMP flags" Link "os_refs.guide/idcmp"}of the window. This ones indicates the events that the window must report. (ex: CLOSEING) _wnd Def Idcmp IDCMP IDCMP -> Flags IDCMP The default is : _wnd Def Idcmp 0 @ENDNODE @NODE "_wnd Def Title" @toc "WIND" _wnd Def Title This function fixes the title of the window by default. _wnd Def Title PTXT PTXT -> Pointer of title string. The default is : _wnd Def Title 0 {<-No Title} @ENDNODE @NODE "_wnd Def Gad" @toc "WIND" _wnd Def Gad This function sets a list of gadget to the window. _wnd Def Gad GAD GAD -> Pointer of the first gadget of the list. The default is : _wnd Def Gad 0 {<-No Gadget} @ENDNODE @NODE "_wnd Def Flags" @toc "WIND" _wnd Def Flags This function sets the flags of the window. (ex: MOVABLE) _wnd Def Flags FLAGS FLAGS -> Flags of the window The default is : _wnd Def Flags 2 @ENDNODE @NODE "_wnd Def Type" @toc "WIND" _wnd Def Type This function sets the type of the screen on whom the window will be open. _wnd Def Type TYPE TYPE -> Type of screen. The default is : _wnd Def Font 1 (WBENCHSCREEN) @ENDNODE @NODE "_wnd Def Image" @toc "WIND" _wnd Def Image This function sets the picture (AMIGA KEY) of the window. _wnd Def Image IMG IMG -> Pointer of Image structure. The default is : _wnd Def Image 0 (Default Amiga Key) @ENDNODE @NODE "_wnd Def Scr" @toc "WIND" _wnd Def Scr This function sets the screen of the window. _wnd Def Scr SCR SCR -> Pointer of screen. The default is : _wnd Def Scr 0 (Pas Ouvert) @ENDNODE @NODE "_wnd Def Limits" @toc "WIND" _wnd Def Limits This function fixes the sizes limits of the window. _wnd Def Limits WMIN,HMIN,WMAX,HMAX WMIN -> Minimal Width HMIN -> Minimal Height WMAX -> Maximal Width HMAX -> Maximal Height @ENDNODE @NODE "_wnd Def Bmap" @toc "WIND" _wnd Def Bmap This function defined the BitMap uses by default if you specify it to use it. _wnd Def Bmap BMAP BMAP -> Pointer of BitMap @ENDNODE @NODE "_wnd Set Titles" @toc "WIND" _wnd Set Titles This function changes the titles of the window, i.e, the title of the window and the one of the screen when the window is active. _wnd Set Titles WND,PTXT0,PTXT1 WND -> Pointer of the window. PTXT0 -> Pointer of the window title. PTXT1 -> Pointer of the window screen title. @ENDNODE @NODE "_wnd Set Pointera" @toc "WIND" _wnd Set Pointera V39 This function sets the pointer of the window, i.e, the one whose appears when the window is active. _wnd Set Def Pointera WND,TAG WND -> Pointer of the window. TAG -> Pointer of the TAG List @ENDNODE @NODE "_wnd Set Limits" @toc "WIND" _wnd Set Limits This function fixes the sizes limits of the window. _wnd Set Limits WND,WMIN,HMIN,WMAX,HMAX WND -> Pointer of the window. WMIN -> Minimal Width HMIN -> Minimal Height WMAX -> Maximal Width HMAX -> Maximal Height @ENDNODE @NODE "_wnd Set Idcmp" @toc "WIND" _wnd Set Idcmp This function sets the @{"IDCMP flags" Link "os_refs.guide/idcmp"} of the window. _wnd Set Idcmp IDCMP IDCMP -> IDCMP Flags @ENDNODE @NODE "_wnd Open" @toc "WIND" _wnd Open This function opens an intuition window. It exists several syntaxes in order to permit has all an each to open one. This function, if it successful, sends back the pointer of the window that it is necessary to keep preciously for it will be necessary to mention it for all the next regarding operations. o WND=_wnd Open Open a window with all default settings. o WND=_wnd Open(X,Y,W,H) Open a window Top Left corner (X,Y) Width W Height H o WND=_wnd Open(SCR,X,Y,W,H,FLAGS,IDCMP) Open a window Pointer of receiver screen SCR Top Left corner (X,Y) Width W Height H FLAGS -> Window flags. IDCMP -> Window IDCMP flags. o WND=_wnd Open(NEWWINDOW) NEWWINDOW Pointer of NewWindow structure @ENDNODE @NODE "_wnd Tag Open" @toc "WIND" _wnd Tag open For the adepts of the 'TAG Lists,' here a function which opens a window. but this time here and there, it is necessary to transmit a TAG List. o WND=_wnd Tag Open(TAG) TAG -> Pointer of TAG List o WND=_wnd Tag Open(NEWWINDOW,TAG) NEWWINDOW Pointer of NEWWINDOW Structure TAG -> Pointer of TAG List @ENDNODE @NODE "_wnd Close" @toc "WIND" _wnd Close This function closes the window which one transmits the pointer. _wnd Close WND WND -> Pointer of the window. @ENDNODE @NODE "_wnd Activate" @toc "WIND" _wnd Activate This function activates a window _wnd Activate WND WND -> Pointer of the window. @ENDNODE @NODE "_wnd Move" @toc "WIND" _wnd Move This function moves the window from its actual coordinates. _wnd Move WND,DX,DY WND -> Pointer of the window. DX -> X Offset. DY -> Y Offset. A positive X offset means a displacement toward the right, otherwise, toward the left in the negative. A positive Y offset means a displacement toward the high, otherwise, toward the stocking in the negative. @ENDNODE @NODE "_wnd To Back" @toc "WIND" _wnd To Back Pass the window in rear plan, i.e, behind the others :-) _wnd to Back WND WND -> Pointer of the window. @ENDNODE @NODE "_wnd To Front" @toc "WIND" _wnd To Front Pass the window in before plan, i.e, before the others :-) _wnd to Front WND WND -> Pointer of the window. @ENDNODE @NODE "_wnd Size" @toc "WIND" _wnd Size Change the size of the window relatively has its present size. _wnd Size WND,DX,DY WND -> Pointer of the window. DX -> Width Offset. DY -> Height Offset. @ENDNODE @NODE "_wnd Refresh Frame" @toc "WIND" _wnd Refresh Frame Refresh the frame of the window. _wnd Refresh Frame WND WND -> Pointer of the window. @ENDNODE @NODE "_wnd Zip" @toc "WIND" _wnd Zip Enlarged (or the invert) the window. _wnd Zip WND WND -> Pointer of the window. @ENDNODE @NODE "_wnd Box" @toc "WIND" _wnd Box V39 Define the place of the window with absolute coordinates. _wnd Box WND,X0,Y0,X1,Y1 WND -> Pointer of the window. (X0,Y0) -> Top Left Edge. (X1,Y1) -> Bottom Roght Edge. @ENDNODE @NODE "_wnd In Front Of" @toc "WIND" _wnd In Front Of Display the window before an other. _wnd In Front Of WND0,WND1 WND0 -> Pointer of the window to pass before. WND1 -> Pointer of the windowto pass behind. @ENDNODE @NODE "_wnd Scroll Raster" @toc "WIND" _wnd Scroll Raster V39 Scroll the content of the window. _wnd Scroll Raster WND,DX,DY,X0,Y0 To X1,Y1 WND -> Pointer of the window. DX -> X Move. DY -> Y Move. (X0,Y0) -> Top Left Edge. (X1,Y1) -> Bottom Right Edge. @ENDNODE @NODE "_wnd What Active" @toc "WIND" _wnd What Active This function sends back the pointer of the active window. WND=_wnd What Active @ENDNODE @NODE "_wnd What Next" @toc "WIND" _wnd What Next This function sends back the pointer of the following screen, i.e, the one right after in the display order. WND0=_wnd What Next(WND1) WND1 -> Pointer of the window. @ENDNODE @NODE "_wnd What Front" @toc "WIND" _wnd What Front This function sends back the pointer of the window in before plan. WND=_wnd What Front(SCR) SCR -> Pointer of the screen. @ENDNODE @NODE "_wnd What Title" @toc "WIND" _wnd What Title This function sends back the pointer of title string, if it is void, there is no title. PTXT=_wnd What Title(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What Scr Title" @toc "WIND" _wnd What Scr Title This function sends back the pointer of the screen title string, if it is void, there is no title. PTXT=_wnd What Scr Title(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What Scr" @toc "WIND" _wnd What Scr This function sends back the pointer of the screen containing the window. SCR=_wnd What Scr(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What Rport" @toc "WIND" _wnd What Rport This function sends back the pointer of RastPort associated to the window. RPORT=_wnd What Rport(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What Left" @toc "WIND" _wnd What Left This function sends back the abscissa of the top left edger of the window. X=_wnd What Left(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What Top" @toc "WIND" _wnd What Top This function sends back the ordinate of top left edge of the window. Y=_wnd What Top(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What Font" @toc "WIND" _wnd What Font This function sends back the pointer of the font of the screen. More exactly, it gives the pointer of the IFont structure of the font. IF=_wnd What Font(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What Min Width" @toc "WIND" _wnd What Min Width This function sends back the minimal width of the window. W=_wnd What Min Width(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What Layer" @toc "WIND" _wnd What Layer This function sends back the pointer of Layer of the screen. A Layer is a graphic element. LAYER=_wnd What Layer(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What Width" @toc "WIND" _wnd What Width This function sends back the width of the window, in pixels. W=_wnd What Width(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What Height" @toc "WIND" _wnd What Height This function sends back the height of the window, in [pixel]. H=_wnd What Height(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What Min Height" @toc "WIND" _wnd What Min Heigth This function sends back the minimal height of the window. MH=_wnd What Min Height(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What D Pen" @toc "WIND" _wnd What D Pen This function sends back the the details pen of the window. DP=_wnd What D Pen(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What B Pen" @toc "WIND" _wnd What B Pen This function sends back the block pen of the window. BP=_wnd What B Pen(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What X Mouse" @toc "WIND" _wnd What X Mouse This function sends back the abscissa of the mouse in the window. X=_wnd What X Mouse(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What Y Mouse" @toc "WIND" _wnd What Y Mouse This function sends back the ordinate of the mouse in the window. Y=_wnd What Y Mouse(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What Max Width" @toc "WIND" _wnd What Max Width This function sends back the maximal width of the window. MW=_wnd What Max Width(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What Max Height" @toc "WIND" _wnd What Max Height This function sends back the maximal height of the window. MH=_wnd What Max Height(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What Flags" @toc "WIND" _wnd What Flags This function sends back the Flags of the window. FLAGS=_wnd What Flags(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What Menu" @toc "WIND" _wnd What Menu This function sends back the pointer of menu of the window. MENU=_wnd What Menu(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What First Req" @toc "WIND" _wnd What First Req This function sends back the pointer of the first requester. REQ=_wnd What First Req(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What Dm Req" @toc "WIND" _wnd What Dm Req This function sends back the pointer of the DM requester. DMR=_wnd What Dm Req(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What Count Req" @toc "WIND" _wnd What Count Req This function sends back the number of attached requesters has the window. NB=_wnd What Count Req(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What Bdr Left" @toc "WIND" _wnd What Bdr Left This function sends back the size of the left edge of the window. BL=_wnd What Bdr Left(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What Bdr Top" @toc "WIND" _wnd What Bdr Top This function sends back the size of the high hedging of the window. BT=_wnd What Bdr Top(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What Bdr Right" @toc "WIND" _wnd What Bdr Right This function sends back the size of the right hedging of the window. BR=_wnd What Bdr Right(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What Bdr Bottom" @toc "WIND" _wnd What Bdr Bottom This function sends back the size of the low hedging of the window. BB=_wnd What Bdr Bottom(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What First Gad" @toc "WIND" _wnd What First Gad This function sends back the pointer of the first gadget of the window. GAD=_wnd What First Gad(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What Parent" @toc "WIND" _wnd What Parent This function sends back the pointer of the 'parent' window. WND=_wnd What Parent(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What Descendant" @toc "WIND" _wnd What Descendant This function sends back the pointer of the 'descendant' window. WND=_wnd What Descendant(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What Pointer" @toc "WIND" _wnd What Pointer This function sends back the pointer of the window mouse pointer. PTR=_wnd What Pointer(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What Pointer Height" @toc "WIND" _wnd What Pointer Height This function sends back the height of the window mouse pointer. H=_wnd What Pointer Height(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What Pointer Width" @toc "WIND" _wnd What Pointer Width This function sends back the width of the window mouse pointer. W=_wnd What Pointer Width(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What Pointer Xoff" @toc "WIND" _wnd What Pointer Xoff This function sends back the X offset of the active point of the mouse pointer of the window. XOFF=_wnd What Pointer Xoff(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What Pointer Yoff" @toc "WIND" _wnd What Pointer Yoff This function sends back the Y offset of the active point of the mouse pointer of the window. YOFF=_wnd What Pointer Yoff(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What Idcmp" @toc "WIND" _wnd What Idcmp This function sends back the @{"IDCMP flags" Link "os_refs.guide/idcmp"} of the window. IDCMP=_wnd What Idcmp(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What User Port" @toc "WIND" _wnd What User Port This function sends back the pointer of the user message port. USERP=_wnd What User Port(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What Port" @toc "WIND" _wnd What Port This function sends back the pointer of messages port of the window. WNDP=_wnd What Port(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What Int Msg" @toc "WIND" _wnd What Int Msg This function sends back the pointer of the list of intuition messages. INTM=_wnd What Int Msg(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What Image" @toc "WIND" _wnd What Image This function sends back the pointer Image structure (AMIGA KEY) of the window. IMG=_wnd What Image(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What User Data" @toc "WIND" _wnd What User Data This function sends back the value of the user data. USERD=_wnd What User Data(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd What Ext Data" @toc "WIND" _Wnd What Ext Data This function sends back the value one 'Ext' data EXTD=_wnd What Ext Data(WND) WND -> Pointer of the window. @ENDNODE @NODE "_wnd Wdef Title" @toc "WIND" _wnd Wdef Title This function sends back the pointer of the title by default. PTXT=_wnd Wdef Title @ENDNODE @NODE "_wnd Wdef Gad" @toc "WIND" _wnd Wdef Gad This function sends back the pointer off the first Gadget by default. GAD=_wnd Wdef Gad @ENDNODE @NODE "_wnd Wdef Flags" @toc "WIND" _wnd Wdef Flags This function sends back the Flags by default. FLAGS=_wnd Wdef Flags @ENDNODE @NODE "_wnd Wdef Type" @toc "WIND" _wnd Wdef Type This function sends back the type of screen by default for the window. TYPE=_wnd Wdef Type @ENDNODE @NODE "_wnd Wdef Scr" @toc "WIND" _wnd Wdef Scr This function sends back the screen by default. SCR=_wnd Wdef Scr @ENDNODE @NODE "_wnd Wdef Left" @toc "WIND" _wnd Wdef Left This function sends back the abscissa of the top left edge by default. X=_wnd Wdef Left @ENDNODE @NODE "_wnd Wdef Top" @toc "WIND" _wnd Wdef Top This function sends back the ordinate of superior left corner by default. Y=_wnd Wdef Top @ENDNODE @NODE "_wnd Wdef Width" @toc "WIND" _wnd Wdef Width This function sends back the width by default. W=_wnd Wdef Width @ENDNODE @NODE "_wnd Wdef Height" @toc "WIND" _wnd Wdef Height This function sends back the height by default. H=_wnd Wdef Height @ENDNODE @NODE "_wnd Wdef Min Width" @toc "WIND" _wnd Wdef Min Width This function sends back the minimal width by default. MW=_wnd Wdef Min Width @ENDNODE @NODE "_wnd Wdef Min Height" @toc "WIND" _wnd Wdef Min Height This function sends back the minimal height by default. MH=_wnd Wdef Min Height @ENDNODE @NODE "_wnd Wdef Max Width" @toc "WIND" _wnd Wdef Max Width This function sends back the maximal width by default. MW=_wnd Wdef Max Width @ENDNODE @NODE "_wnd Wdef Max Height" @toc "WIND" _wnd Wdef Max Height This function sends back the maximal height by default. MH=_wnd Wdef Max Height @ENDNODE @NODE "_wnd Wdef D Pen" @toc "WIND" _wnd Wdef D Pen This function sends back the detail pen by default. DP=_wnd Wdef D Pen @ENDNODE @NODE "_wnd Wdef B Pen" @toc "WIND" _wnd Wdef B Pen This function sends back the block pen by default. BP=_wnd Wdef B Pen @ENDNODE @NODE "_wnd Wdef Idcmp" @toc "WIND" _wnd Wdef Idcmp This function sends back the @{"IDCMP flags" Link "os_refs.guide/idcmp"} by default. IDCMP=_wnd Wdef Idcmp @ENDNODE @NODE "_wnd Wdef Image" @toc "WIND" _wnd Wdef Image This function sends back the AmigaKey Image by default. IMG=_wnd Wdef Image @ENDNODE @NODE "_wnd Wdef Bmap" @toc "WIND" _wnd Wdef Bmap This function sends back the BitMap by default. BMAP=_wnd Wdef Bmap @ENDNODE @node GADG "OS_DevKit, intuition.library-gadgets support" @toc "MAIN" ___________ ___________ / /\ / /\ OS-DevKit Extension / ___ / // _______/ / Additional power for AMOS Pro V2.00+ / /\_/ / // /\_____ \/ / / // / // /\ Written by: / / // / //______ / / Fromentin BRICE / /_// / /_\_____/ / / / / // / / /__________/ //__________/ / \__________\/ \__________\/ @{b}@{u}The Advanced support of 'intuition.library'@{uu}@{ub} @{b}@{u}Gadgets@{uu}@{ub} The gadgets are important part of the graphic interfaces in th system. In fact, they are all interactive zones where we can click on them for any kind of actions. For example the close 'gadget' of a window. @{" Structure: Gadget " Link _gad_struct } @{" List of Flags " Link _gad_flags } @{" List of Activations " Link _gad_act } @{" List of Types " Link _gad_type } @{u}Commands:@{uu} @{" _gad Set Next " Link "_gad Set Next"} @{" _gad Set Body " Link "_gad Set Body"} @{" _gad Set Fat " Link "_gad Set Fat"} @{" _gad Set Render " Link "_gad Set Render"} @{" _gad Set Text " Link "_gad Set Text"} @{" _gad Set Spec Info " Link "_gad Set Spec Info"} @{" _gad Set User " Link "_gad Set User"} @{" _gad Activate " Link "_gad Activate"} @{" _gad Add " Link "_gad Add"} @{" _gad Modif Prop " Link "_gad Modif Prop"} @{" _gad Off " Link "_gad Off"} @{" _gad On " Link "_gad On"} @{" _gad Refresh " Link "_gad Refresh"} @{" _gad Remove " Link "_gad Remove"} @{" _gad What Next " Link "_gad What Next"} @{" _gad What Left " Link "_gad What Left"} @{" _gad What Top " Link "_gad What Top"} @{" _gad What Width " Link "_gad What Width"} @{" _gad What Height " Link "_gad What Height"} @{" _gad What Flags " Link "_gad What Flags"} @{" _gad What Activation " Link "_gad What Activation"} @{" _gad What Type " Link "_gad What Type"} @{" _gad What Render " Link "_gad What Render"} @{" _gad What H Render " Link "_gad What H Render"} @{" _gad What Text " Link "_gad What Text"} @{" _gad What Spec Info " Link "_gad What Spec Info"} @{" _gad What User Id " Link "_gad What User Id"} @{" _gad What User Data " Link "_gad What User Data"} @ENDNODE @NODE "_gad Set Next" @toc "GADG" _gad Set Next This function sets the next gadget. _gad Set Next GAD,GAD1 GAD -> Pointer of Gadget Structure. GAD1 -> Pointer of Gadget Structure. (Will be the Next of GAD) @ENDNODE @NODE "_gad Set Body" @toc "GADG" _gad Set Body This function sets the features of body of gadget. _gad Set Body GAD,X,Y,W,H GAD -> Pointer of Gadget Structure. X,Y -> Coordinates of the reference point of the gadget. W -> Width of gadget. H -> Height of gadget. @ENDNODE @NODE "_gad Set Fat" @toc "GADG" _gad Set Fat This function sets the features (Flags Activation Type) of gadget. _gad Set Fat GAD,FLAGS,ACTIV,TYPE GAD -> Pointer of Gadget Structure. FLAGS -> Flags ACTIV -> Activation TYPE -> Type of gadget @ENDNODE @NODE "_gad Set Render" @toc "GADG" _gad Set Render This function fixes the render to do for the display of gadget. _gad Set Render GAD,RENDER,HRENDER GAD -> Pointer of Gadget Structure. RENDER -> Pointer of Border or Image structure (IF UNSELECTED) HRENDER -> Pointer of Border or Image structure (IF SELECTED) @ENDNODE @NODE "_gad Set Text" @toc "GADG" _gad Set Text This function sets the text of gadget. _gad Set Text GAD,ITXT GAD -> Pointer of Gadget Structure. ITXT -> Pointer of IntuiText struture. @ENDNODE @NODE "_gad Set Spec Info" @toc "GADG" _gad Set Spec Info This function sets the specific datas of gadget. _gad Set Spec Info GAD,INFO GAD -> Pointer of Gadget Structure. INFO -> Pointer of BoolInfo,PropInfo or StringInfo structure. @ENDNODE @NODE "_gad Set User" @toc "GADG" _gad Set User This function sets the user data that the system doesn't use. _gad Set User GAD,ID,DATA GAD -> Pointer of Gadget Structure. ID -> Identifier 0 to 65535 DATA -> User Data @ENDNODE @NODE "_gad Activate" @toc "GADG" _gad Activate This function activates a gadget of type 'STRING GADGET.' Send back 0 if the operation didn't succeed. OK=_gad Activate(GAD,WND,REQ) GAD -> Pointer of Gadget Structure. WND -> Pointer of Window. REQ -> Pointer of Requester. @ENDNODE @NODE "_gad Add" @toc "GADG" _gad Add This function adds a list of gadgets to a window or a requester. POS=_gad Add(GAD,WND,REQ,POS,NB) GAD -> Pointer of Gadget Structure. WND -> Pointer of Window. REQ -> Pointer of Requester. POS -> Start Position. NB -> Number of gadgets to Add. @ENDNODE @NODE "_gad Modif Prop" @toc "GADG" _gad Modif Prop This function modifies the features of one 'PROP GADGET' then, it refreshes the gadgets starting from the one modifies. _gad Modif Prop GAD,WND,REQ,FLAGS,WP,HP,XP,YP,NB GAD -> Pointer of Gadget Structure. WND -> Pointer of Window. REQ -> Pointer of Requester. FLAGS,WP,HP,XP,YP See function _pi Set NB -> Number of gadgets to refresh @ENDNODE @NODE "_gad Off" @toc "GADG" _gad Off This function disables a gadget. _gad Off GAD,WND,REQ GAD -> Pointer of Gadget Structure. WND -> Pointer of Window. REQ -> Pointer of Requester. @ENDNODE @NODE "_gad On" @toc "GADG" _gad On This function activates a gadget. _gad On GAD,WND,REQ GAD -> Pointer of Gadget Structure. WND -> Pointer of Window. REQ -> Pointer of Requester. @ENDNODE @NODE "_gad Refresh" @toc "GADG" _gad Refresh This function redraws some gadgets starting the transmitted. _gad Refresh GAD,WND,REQ,NB GAD -> Pointer of Gadget Structure. WND -> Pointer of Window. REQ -> Pointer of Requester. NB -> Numbre of gadgets to redraw. @ENDNODE @NODE "_gad Remove" @toc "GADG" _gad Remove This function removes some gadgets one window starting from a precise. POS=_gad Remove(GAD,WND,NB) GAD -> Pointer of Gadget Structure. WND -> Pointer of Window. REQ -> Pointer of Requester. NB -> Number of gadgets to remove. @ENDNODE @NODE "_gad What Next" @toc "GADG" _gad What Next This function sends back the next gadget. GAD=_gad What Next(GAD) GAD -> Pointer of Gadget Structure. @ENDNODE @NODE "_gad What Left" @toc "GADG" _gad What Left This function sends back the abscissa of reference corner of gadget. X=_gad What Left(GAD) GAD -> Pointer of Gadget Structure. @ENDNODE @NODE "_gad What Top" @toc "GADG" _gad What Top This function sends back the ordinate of reference corner of gadget. Y=_gad What Top(GAD) GAD -> Pointer of Gadget Structure. @ENDNODE @NODE "_gad What Width" @toc "GADG" _gad What Width This function sends back the width of gadget. W=_gad What Width(GAD) GAD -> Pointer of Gadget Structure. @ENDNODE @NODE "_gad What Height" @toc "GADG" _gad What Height This function sends back the height of gadget. H=_gad What Height(GAD) GAD -> Pointer of Gadget Structure. @ENDNODE @NODE "_gad What Flags" @toc "GADG" _gad What Flags This function sends back the Flags gadget. FLAGS=_gad What Flags(GAD) GAD -> Pointer of Gadget Structure. @ENDNODE @NODE "_gad What Activation" @toc "GADG" _gad What Activation This function sends back the value of activation of gadget. ACT=_gad What Activation(GAD) GAD -> Pointer of Gadget Structure. @ENDNODE @NODE "_gad What Type" @toc "GADG" _gad What Type This function returns the type of gadget. TYPE=_gad What Type(GAD) GAD -> Pointer of Gadget Structure. @ENDNODE @NODE "_gad What Render" @toc "GADG" _gad What Render This function sends back the pointer of the structure of render when the gadget is not to select. REND=_gad What Render(GAD) GAD -> Pointer of Gadget Structure. @ENDNODE @NODE "_gad What H Render" @toc "GADG" _gad What H Render This function sends back the pointer of the structure of render when the gadget is selected. REND=_gad What H Render(GAD) GAD -> Pointer of Gadget Structure. @ENDNODE @NODE "_gad What Text" @toc "GADG" _gad What Text This function sends back the pointer of the IntuiText structure, text of gadget. ITXT=_gad What Text(GAD) GAD -> Pointer of Gadget Structure. @ENDNODE @NODE "_gad What Spec Info" @toc "GADG" _gad What Spec Info This function sends back the pointer of the specific structure of gadget. STRUCT=_gad What Spec Info(GAD) GAD -> Pointer of Gadget Structure. @ENDNODE @NODE "_gad What User Id" @toc "GADG" _gad What User Id This function sends back the user identifier of gadget. ID=_gad What User Id(GAD) GAD -> Pointer of Gadget Structure. @ENDNODE @NODE "_gad What User Data" @toc "GADG" _gad What User Data This function sends back the user data of gadget. USER=_gad What User Data(GAD) GAD -> Pointer of Gadget Structure. @ENDNODE @NODE _gad_struct "Structure Gadget" @toc "GADG" Detail of the gadget structure. $002c 44 Size of structure $0000 0 4 NextGadget $0004 4 2 LeftEdge $0006 6 2 TopEdge $0008 8 2 Width $000a 10 2 Height $000c 12 2 Flags $000e 14 2 Activation $0010 16 2 GadgetType $0012 18 4 GadgetRender $0016 22 4 SelectRender $001a 26 4 GadgetText $001e 30 4 MutualExclude $0022 34 4 SpecialInfo $0026 38 2 GadgetID $0028 40 4 UserData @ENDNODE @NODE _gad_flags "Flags" @toc "GADG" List of Flags. GFLG_GADGHIGHBITS = $3 GFLG_GADGHCOMP = $0 GFLG_GADGHBOX = $1 GFLG_GADGHIMAGE = $2 GFLG_GADGHNONE = $3 GFLG_GADGIMAGE = $4 GFLG_RELBOTTOM = $8 GFLG_RELRIGHT = $10 GFLG_RELWIDTH = $20 GFLG_RELHEIGHT = $40 GFLG_RELSPECIAL = $4000 GFLG_SELECTED = $80 GFLG_DISABLED = $100 GFLG_LABELMASK = $3000 GFLG_LABELITEXT = $0 GFLG_LABELSTRING = $1000 GFLG_LABELIMAGE = $2000 GFLG_TABCYCLE = $200 GFLG_STRINGEXTEND = $400 GFLG_IMAGEDISABLE = $800 @ENDNODE @NODE _gad_Act "Activation" @toc "GADG" List of Activations. GACT_RELVERIFY = $1 GACT_IMMEDIATE = $2 GACT_ENDGADGET = $4 GACT_FOLLOWMOUSE = $8 GACT_RIGHTBORDER = $10 GACT_LEFTBORDER = $20 GACT_TOPBORDER = $40 GACT_BOTTOMBORDER = $80 GACT_BORDERSNIFF = $8000 GACT_TOGGLESELECT = $100 GACT_BOOLEXTEND = $2000 GACT_STRINGLEFT = $0 GACT_STRINGCENTER = $200 GACT_STRINGRIGHT = $400 GACT_LONGINT = $800 GACT_ALTKEYMAP = $1000 GACT_STRINGEXTEND = $2000 GACT_ACTIVEGADGET = $4000 @ENDNODE @NODE _gad_type "Type" @toc "GADG" List of Types. GTYP_GADGETTYPE = $FC00 GTYP_SCRGADGET = $4000 GTYP_GZZGADGET = $2000 GTYP_REQGADGET = $1000 GTYP_SYSGADGET = $8000 GTYP_SYSTYPEMASK = $F0 GTYP_SIZING = $10 GTYP_WDRAGGING = $20 GTYP_SDRAGGING = $30 GTYP_WDEPTH = $40 GTYP_SDEPTH = $50 GTYP_WZOOM = $60 GTYP_SUNUSED = $70 GTYP_CLOSE = $80 GTYP_WUPFRONT = $40 GTYP_SUPFRONT = $50 GTYP_WDOWNBACK = $60 GTYP_SDOWNBACK = $70 GTYP_GTYPEMASK = $7 GTYP_BOOLGADGET = $1 GTYP_GADGET0002 = $2 GTYP_PROPGADGET = $3 GTYP_STRGADGET = $4 GTYP_CUSTOMGADGET = $5 @ENDNODE @node STRU "OS_DevKit, intuition.library-structures support" @toc "MAIN" ___________ ___________ / /\ / /\ OS-DevKit Extension / ___ / // _______/ / Additional power for AMOS Pro V2.00+ / /\_/ / // /\_____ \/ / / // / // /\ Written by: / / // / //______ / / Fromentin BRICE / /_// / /_\_____/ / / / / // / / /__________/ //__________/ / \__________\/ \__________\/ @{b}@{u}The Advanced support of 'intuition.library'@{uu}@{ub} @{b}@{u}Structure Drawings@{uu}@{ub} First of all, AMOSPro strings are not null-terminated, but the OS, most of the time, needs such string to operate, I think this is not very handly so I created this functions. But if you wish, you can use '+Chr$(0)' or the 'Struc$' function because thess strings must be fixed in memory until you don't need them, so make your choice. NOTE : You can use also locale's catalog this will be most handly and in ~~~~~~ fact, most powerfull too. Just a limitation, requires V38 in this case. @{" _str Len " Link "_str Len" } @{" _str Free " Link "_str Free"} @{" _str Get " Link "_str Get" } @{" _str Pos " Link "_str Pos" } @{" _str Alloc " Link "_str Alloc"} @{" _str Put " Link "_str Put" } After, here some functions to allocate some memory for structures. In fact, they just use a '_vec Alloc(SIZE,$10001)', so it can be usefull if you are fed up with typing $10001. @{" _struct Alloc " Link "_struct Alloc"} @{" _struct Free " Link "_struct Free" } Here starts some functions to control structures to a better use of INTUITION. So look at them : @{b}1) IntuiText@{ub} @{b}~~~~~~~~~~~~@{ub} This structure allows the printing of Text like the 'Text' command of the AMOSPro, but this one offers more choice. @{" Structure IntuiText " Link _it_struct} @{" _it Set Draw " Link "_it Set Draw"} @{" _it Set Corner " Link "_it Set Corner"} @{" _it Set Font " Link "_it Set Font"} @{" _it Set Str " Link "_it Set Str"} @{" _it Set Next " Link "_it Set Next"} @{" _it Set " Link "_it Set"} @{" _it What Front Pen " Link "_it What Front Pen"} @{" _it What Back Pen " Link "_it What Back Pen"} @{" _it What Draw Mode " Link "_it What Draw Mode"} @{" _it What Left " Link "_it What Left"} @{" _it What Top " Link "_it What Top"} @{" _it What Font " Link "_it What Font"} @{" _it What Str " Link "_it What Str"} @{" _it What Next " Link "_it What Next"} @{" _it What Len " Link "_it What Len"} @{" _it Print " Link "_it Print"} @{b}2) Border@{ub} @{b}~~~~~~~~~@{ub} This structure is a sort of polylines one, but with more features. @{" Structure Border " Link _bd_struct} @{" _bd Set Draw " Link "_bd Set Draw"} @{" _bd Set Corner " Link "_bd Set Corner"} @{" _bd Set Dots " Link "_bd Set Dots"} @{" _bd Set Next " Link "_bd Set Next"} @{" _bd Set " Link "_bd Set"} @{" _bd What Front Pen " Link "_bd What Front Pen"} @{" _bd What Back Pen " Link "_bd What Back Pen"} @{" _bd What Draw Mode " Link "_bd What Draw Mode"} @{" _bd What Left " Link "_bd What Left"} @{" _bd What Top " Link "_bd What Top"} @{" _bd What Dots Nb " Link "_bd What Dots Nb"} @{" _bd What Dots " Link "_bd What Dots"} @{" _bd What Next " Link "_bd What Next"} @{" _bd Draw " Link "_bd Draw"} @{b}3) Dots@{ub} @{b}~~~~~~~@{ub} This structure is a Table of points. @{" _dots Alloc " Link "_dots Alloc"} @{" _dots Free " Link "_dots Free"} @{" _dots Set " Link "_dots Set"} @{" _dots What X " Link "_dots What X"} @{" _dots What Y " Link "_dots What Y"} @{b}4) Image@{ub} @{b}~~~~~~~~@{ub} This structure contains all the necesary informations to the display of picture. Only one limitation : 8 Bitplanes maximum. @{" Structure Image " Link _img_struct} @{" _img Set Body " Link "_img Set Body"} @{" _img Set Planes " Link "_img Set Planes"} @{" _img Set Next " Link "_img set Next"} @{" _img What Left " Link "_img What Left"} @{" _img What Top " Link "_img What Top"} @{" _img What Width " Link "_img What Width"} @{" _img What Height " Link "_img What Height"} @{" _img What Depth " Link "_img What Depth"} @{" _img Erase " Link "_img Erase"} @{" _img What Body " Link "_img What Body"} @{" _img Point In " Link "_img Point In"} @{" _img What Pick " Link "_img What Pick"} @{" _img What Onoff " Link "_img What Onoff"} @{" _img What Next " Link "_img What Next"} @{" _img Draw State " Link "_img Draw State"} @{" _img Draw " Link "_img Draw"} @{b}5) Bool Info@{ub} @{b}~~~~~~~~~~~~@{ub} This structure is associated to the boolean gadgets. It specifies a mask to the gadget image. @{" Structure BoolInfo " Link _bi_struct} @{" _bi Set Flags " Link "_bi Set Flags"} @{" _bi Set Mask " Link "_bi Set Mask"} @{" _bi Set " Link "_bi Set"} @{" _bi What Flags " Link "_bi What Flags"} @{" _bi What Mask " Link "_bi What Mask"} @{b}6) Prop Info@{ub} @{b}~~~~~~~~~~~~@{ub} This structure is associated to the proportionnal gadgets of Intuition. These are, for example, 'Sliders'. Warning, the percents are not from 0 to 100, but from 0 to $FFFF (65535) @{" Structure PropInfo " Link _pi_struct} @{" _pi Set " Link "_pi Set"} @{" _pi What Flags " Link "_pi What Flags"} @{" _pi What % Horiz " Link "_pi What % Horiz"} @{" _pi What Hinc " Link "_pi What Hinc"} @{" _pi What % Vert " Link "_pi What % Vert"} @{" _pi What Vinc " Link "_pi What Vinc"} @{" _pi What % Width " Link "_pi What % Width"} @{" _pi What Left " Link "_pi What Left"} @{" _pi What % Height " Link "_pi What % Height"} @{" _pi What Top " Link "_pi What Top"} @{b}7) String Info@{ub} @{b}~~~~~~~~~~~~~~@{ub} This structure is associated to the string gadgets. @{" Structure StringInfo " Link _si_struct} @{" _si Set Buf " Link "_si Set Buf"} @{" _si Set Ext " Link "_si Set Ext"} @{" _si Set Integer " Link "_si Set Integer"} @{" _si Set Keymap " Link "_si Set Keymap"} @{" _si Set " Link "_si Set"} @{" _si What Buf " Link "_si What Buf"} @{" _si What Undo Buf " Link "_si What Undo Buf"} @{" _si What Pos Buf " Link "_si What Pos Buf"} @{" _si What Max Chars " Link "_si What Max Chars"} @{" _si What Disp Chars " Link "_si What Disp Chars"} @{" _si What Undo Pos " Link "_si What Undo Pos"} @{" _si What Nb Chars " Link "_si What Nb Chars"} @{" _si What Disp Count " Link "_si What Disp Count"} @{" _si What Cleft " Link "_si What Cleft"} @{" _si What Ctop " Link "_si What Ctop"} @{" _si What Ext " Link "_si What Ext"} @{" _si What Integer " Link "_si What Integer"} @{" _si What Keymap " Link "_si What Keymap"} @ENDNODE @NODE "_str Len" @toc "STRU" _str Len This function sends back the length of the sring finished by zero or the separator (0 to 255). o NB=_str Len(PTXT) PTXT -> Address of the string. o NB=_str Len(PTXT,SEP) PTXT -> Address of the string. SEP -> Separator value @ENDNODE @NODE "_str Get" @toc "STRU" _str Get This function sends back the string in an AMOSPro variable. o TXT$=_str get(PTXT) PTXT -> Addrees of string. o TXT$=_str get(PTXT,SEP) PTXT -> Address of string. SEP -> Separator Value. @ENDNODE @NODE "_str Alloc" @toc "STRU" _str Alloc This function allocates the memory for a string, and sends back its pointer or null if failed. STR=_str Alloc(LEN) LEN -> Length in bytes. @ENDNODE @NODE "_str Free" @toc "STRU" _str Free This function liberates the memory of a previously allocated string by the function @{"_str Alloc" Link "_str Alloc"}. _str Free STR STR -> Pointer of the string. @ENDNODE @NODE "_str Pos" @toc "STRU" _str Pos This function defined the position of the string, used only by the function _disp Alert. _str Pos STR,X,Y STR -> Pointer of string. X -> Abscissa of text (0 to 65535) Y -> Ordinate of text (0 to 255) @ENDNODE @NODE "_str Put" @toc "STRU" _str Put This function copies an AMOSPro string in a previously allocated one, then puts the separator in end. o _str Put TEXT$,STR TEXT$ -> AMOSPro String STR -> Pointer of String. o _str Put TEXT$,STR,SEP TEXT$ -> AMOSPro String. STR -> Pointer of String. SEP -> Separator (0 to 255) @ENDNODE @NODE "_struct Alloc" @toc "STRU" _struct Alloc This function allocates and initializes to zero the necessary memory to a structure, then it sends back its start address. STRUCT=_struct Alloc(LEN) LEN -> Length in bytes. @ENDNODE @NODE "_struct Free" @toc "STRU" _struct Free This function liberates the memory of a previuosly allocated structure by @{"_struct Alloc" Link "_struct Alloc"}. _struct Free STRUCT STRUCT -> Address of the structure. @ENDNODE @NODE _it_struct "Structure IntuiText" @toc "STRU" Detail of the IntuiText structure. $0014 20 Size of structure $0000 0 1 FrontPen $0001 1 1 BackPen $0002 2 1 DrawMode $0004 4 2 LeftEdge $0006 6 2 TopEdge $0008 8 4 ITextFont $000c 12 4 IText $0010 16 4 NextText @ENDNODE @NODE "_it Set Draw" @toc "STRU" _it Set Draw This function sets the features of trace of text. _it Set Draw ITXT,FP,BP,DM ITXT -> Pointer of IntuiText structure. FP -> Foreground pen. BP -> Background pen. DM -> Draw Mode. @ENDNODE @NODE "_it Set Corner" @toc "STRU" _it Set Corner This function sets the cordinates of top left corner of text. _it Set Corner ITXT,X,Y ITXT -> Pointer of IntuiText structure. X -> Abscissa Y -> Ordinate @ENDNODE @NODE "_it Set Font" @toc "STRU" _it Set Font This function sets the font used by the text. _it Set Font ITXT,TEXTATTR ITXT -> Pointer of IntuiText structure. TEXTATTR-> Pointer of TextAttr structure. @ENDNODE @NODE "_it Set Str" @toc "STRU" _it Set Str This function sets the text to print, must be null terminated. _it Set Str ITXT,PTXT ITXT -> Pointer of IntuiText structure. PTXT -> Pointer of string. @ENDNODE @NODE "_it Set Next" @toc "STRU" _it Set Next This function defined the next IntuiText structure to print. _it Set Next ITXT,ITXT1 ITXT -> Pointer of IntuiText structure. ITXT1 -> Pointer of IntuiText structure will be the next. @ENDNODE @NODE "_it Set" @toc "STRU" _it Set This function initializes completely the IntuitText structure _it set ITXT,FP,BP,X,Y,TEXTATTR,PTXT,ITXT1 ITXT -> Pointer of IntuiText structure. FP -> Foregroung pen. BP -> Background pen. DM -> Draw mode. X -> Abscissa. Y -> Ordinate. TEXTATTR-> Pointer TextAttr structure. PTXT -> Pointer of string. ITXT1 -> Pointer of IntuiText structure will be the next. @ENDNODE @NODE "_it Print" @toc "STRU" _it Print This function displays the text on the RastPort. _it Print ITXT,RPORT,X,Y ITXT -> Pointer of IntuiText structure. RPORT -> Target of RastPort. X -> Start Abscissa. Y -> Start Ordinate. @ENDNODE @NODE "_it What Front Pen" @toc "STRU" _it What Front Pen This function sends back the Foreground Pen. C=_it What Front Pen(ITXT) ITXT -> Pointer of IntuiText structure. @ENDNODE @NODE "_it What Back Pen" @toc "STRU" _it What Back Pen This function sends back the pencil of rear plan. C=_it What Back Pen(ITXT) ITXT -> Pointer of IntuiText structure. @ENDNODE @NODE "_it What Draw Mode" @toc "STRU" _it What Draw Mode This function sends back the draw mode of text. DM=_it What Draw Mode(ITXT) ITXT -> Pointer of IntuiText structure. @ENDNODE @NODE "_it What Left" @toc "STRU" _it What Left This function sends back the abscissa of top left corner of text. X=_it What Left(ITXT) ITXT -> Pointer of IntuiText structure. @ENDNODE @NODE "_it What Top" @toc "STRU" _it What Top This function sends back the ordinate of top left corner of text. Y=_it What Top(ITXT) ITXT -> Pointer of IntuiText structure. @ENDNODE @NODE "_it What Font" @toc "STRU" _it What Font This function sends back the font (TextAttr) used by the text. TATTR=_it What Font(ITXT) ITXT -> Pointer of IntuiText structure. @ENDNODE @NODE "_it What Str" @toc "STRU" _it What Str This function sends back the pointer of the text string. PTXT=_it What Str(ITXT) ITXT -> Pointer of IntuiText structure. @ENDNODE @NODE "_it What Next" @toc "STRU" _it What Next This function sends back the pointer of the next IntuiText. ITXT=_it What Next(ITXT) ITXT -> Pointer of IntuiText structure. @ENDNODE @NODE "_it What Len" @toc "STRU" _it What Len This function sends back the width in pixel of text according to its font. W=_it What Len(ITXT) ITXT -> Pointer of IntuiText structure. @ENDNODE @NODE _bd_struct "Structure Border" @toc "STRU" Detail of Border structure. $0010 16 Size of structure $0000 0 2 LeftEdge $0002 2 2 TopEdge $0004 4 1 FrontPen $0005 5 1 BackPen $0006 6 1 DrawMode $0007 7 1 Count $0008 8 4 XY $000c 12 4 NextBorder @ENDNODE @NODE "_bd Set Draw" @toc "STRU" _bd Set Draw This function sets the characteristic of trace of the border. _bd Set Draw BDR,FP,BP,MD BDR -> Pointer of Border structure. FP -> Foreground pen. BP -> Background pen. DM -> Draw Mode. @ENDNODE @NODE "_bd Set Corner" @toc "STRU" _bd Set Corner This function sets the coordinates of the start point of the border. _bd Set Corner BDR,X,Y BDR -> Pointer of Border structure. X -> Abscissa of the start point. Y -> Ordinate of the start point. @ENDNODE @NODE "_bd Set Dots" @toc "STRU" _bd Set Dots This function sets the number of point thus that the table of point of the border. _bd Set Dots BDR,NBDOTS,DOTS BDR -> Pointer of Border structure. NBDOTS -> Number of dots. DOTS -> Pointer of Dots structure. @ENDNODE @NODE "_bd Set Next" @toc "STRU" _bd Set Next This function sets the next border to display. _bd Set Next BDR,BDR1 BDR -> Pointer of Border structure. BDR1 -> Pointer of Border structure will be the next. @ENDNODE @NODE "_bd Set" @toc "STRU" _bd Set This function initializes completely the Border structure. _bd Set BDR,FP,BP,MD,X,Y,NBDOTS,DOTS,BDR1 BDR -> Pointer of Border structure. FP -> Foreground pen. BP -> Background pen. MD -> Draw mode. X -> Abscissa of start point. Y -> Ordinate of start point. NBDOTS -> Number of dots. DOTS -> Pointer of Dots structure. BDR1 -> Pointer of Border structure will be the next. @ENDNODE @NODE "_bd Draw" @toc "STRU" _bd Draw This function draws the hedging on the RastPort. _bd Draw BDR,RPORT,X,Y BDR -> Pointer of Border structure. RPORT -> Target RastPort. X -> Abscissa to add to the start point. Y -> Ordinate to add to the start point. @ENDNODE @NODE "_bd What Front Pen" @toc "STRU" _bd What Front Pen This function sends back the Foreground pen. C=_bd What Front Pen(BDR) BDR -> Pointer of Border structure. @ENDNODE @NODE "_bd What Back Pen" @toc "STRU" _bd What Back Pen This function sends back the background pen. C=_bd What Back Pen(BDR) BDR -> Pointer of Border structure. @ENDNODE @NODE "_bd What Draw Mode" @toc "STRU" _bd What Draw Mode This function sends back the draw mode of the border. DM=_bd What Draw Mode(BDR) BDR -> Pointer of Border structure. @ENDNODE @NODE "_bd What Left" @toc "STRU" _bd What Left This function sends back the abscissa of the start point of border. X=_bd What Left(BDR) BDR -> Pointer of Border structure. @ENDNODE @NODE "_bd What Top" @toc "STRU" _bd What Top This function sends back the ordinate of the start point of the border. Y=_bd What Top(BDR) BDR -> Pointer of Border structure. @ENDNODE @NODE "_bd What Dots Nb" @toc "STRU" _bd What Dots Nb This function sends back the number of point of the border. NB=_bd What Dots Nb(BDR) BDR -> Pointer of Border structure. @ENDNODE @NODE "_bd What Dots" @toc "STRU" _bd What Dots This function sends back the pointer of the Dots structure of the border. DOTS=_bd What Dots(BDR) BDR -> Pointer of Border structure. @ENDNODE @NODE "_bd What Next" @toc "STRU" _bd What Next This function sends back the next border. BDR=_bd What Next(BDR) BDR -> Pointer of Border structure. @ENDNODE @NODE "_dots Set" @toc "STRU" _dots Set This function sets the coordinates of the dot precise. _dots Set DOTS,NB,X,Y DOTS -> Pointer of Dots structure. X -> Abscissa of dot. Y -> Ordinate of dot. @ENDNODE @NODE "_dots Alloc" @toc "STRU" _dots Alloc This function allocates a Dots structure of number of point asked. DOTS=_dots Alloc(NB) NB -> Number of points of the structure. @ENDNODE @NODE "_dots Free" @toc "STRU" _dots Free This function liberates the Dots structure of the memory. _dots Free DOTS DOTS -> Pointer of Dots structure. @ENDNODE @NODE "_dots What X" @toc "STRU" _dots What X This function sends back the abscissa of asked dot. X=_dots What X(DOTS,NB) DOTS -> Pointer of Dots structure. NB -> Number of Dot. @ENDNODE @NODE "_dots What Y" @toc "STRU" _dots What Y This function sends back the ordinate of asked dots. Y=_dots What Y(DOTS,NB) DOTS -> Pointer of Dots structure. NB -> Number of Dot. @ENDNODE @NODE _img_struct "Structure Image" @toc "STRU" Detail of the Image structure. $0014 20 Size of structure $0000 0 2 LeftEdge $0002 2 2 TopEdge $0004 4 2 Width $0006 6 2 Height $0008 8 2 Depth $000a 10 4 ImageData $000e 14 1 PlanePick $000f 15 1 PlaneOnOff $0010 16 4 NextImage @ENDNODE @NODE "_img Set Body" @toc "STRU" _img Set Body This function sets the characteristic datas of body of the image. _img Set Body IMG,X,Y,W,H,DEPTH,DATAS IMG -> Pointer of Image structure. X -> Abscissa of the Top Left Edge. Y -> Ordinate of the Top Left Edge. W -> Width of the image. H -> Height of the image. DEPTH -> Depth of the image. DATAS -> Address of the datas. @ENDNODE @NODE "_img Set Planes" @toc "STRU" _img Set Planes This function sets the organization of the display of the different binary plans of the image. _img Set Planes IMG,PICK,ONOFF IMG -> Pointer of Image structure. PICK -> It's the mask of the bitplanes to use %1 -> plan 0 of the picture on plan 0 of RastPort %10 -> plan 1 of the picture on plan 1 of RastPort -> plan 0 of RastPort filled with OnOff ONOFF -> It's a mask whose define if the plan of replenishment are has 0 or has 1. %10 -> plan 0 of replete RastPort of Zero if not picture. -> plan 1 of replete RastPort of An if not picture. @ENDNODE @NODE "_img set Next" @toc "STRU" _img Set Next This function sets the next image to display. _img Set Next IMG,IMG1 IMG -> Pointer of Image structure. IMG1 -> Pointer of next Image structure. @ENDNODE @NODE "_img Erase" @toc "STRU" _img Erase This function erases a rectangle of color 0 to the measurementses of the image. _img Erase IMG,RPORT,X,Y IMG -> Pointer of Image structure. RPORT -> Target RastPort. X -> Abscissa Offset. Y -> Ordinate Offset. @ENDNODE @NODE "_img Point In" @toc "STRU" _img Point In This function tests if the point is in the image. OK=_img Point In IMG,X,Y IMG -> Pointer of Image structure. X,Y -> Coordinates of the point. @ENDNODE @NODE "_img Draw State" @toc "STRU" _img Draw State This function draws the picture according to the type wanted. _img Draw State IMG,RPORT,X,Y,STATE,DRAWINFO IMG -> Pointer of Image structure. RPORT -> Target RastPort. X,Y -> Coordinates of the top left point. STATE -> Type of the drawing. DRAWINFO-> Pointer of DrawInfo Structure. @ENDNODE @NODE "_img Draw" @toc "STRU" _img Draw This function draws the image in the RastPort. _img Draw IMG,RPORT,X,Y IMG -> Pointer of Image structure. RPORT -> Target RastPort. X,Y -> Coordinates of the image. @ENDNODE @NODE "_img What Left" @toc "STRU" _img What Left This function sends back the abscissa of the picture X=_img What Left(IMG) IMG -> Pointer of Image structure. @ENDNODE @NODE "_img What Top" @toc "STRU" _img What Top This function sends back the ordinate of the picture. Y=_img What Top(IMG) IMG -> Pointer of Image structure. @ENDNODE @NODE "_img What Width" @toc "STRU" _img What Width This function sends back the width in pixels of the image. W=_img What Width(IMG) IMG -> Pointer of Image structure. @ENDNODE @NODE "_img What Height" @toc "STRU" _img What Height This function sends back the height in line of the image. H=_img What Height(IMG) IMG -> Pointer of Image structure. @ENDNODE @NODE "_img What Depth" @toc "STRU" _img What Depth This function sends back the number of binary plans of the image. D=_img What Depth(IMG) IMG -> Pointer of Image structure. @ENDNODE @NODE "_img What Body" @toc "STRU" _img What Body This function sends back the start pointer the binary plans of the image. BP=_img What Body(IMG) IMG -> Pointer of Image structure. @ENDNODE @NODE "_img What Pick" @toc "STRU" _img What Pick This function sends back the Pick value of the image. PICK=_img What Pick(IMG) IMG -> Pointer of Image structure. @ENDNODE @NODE "_img What Onoff" @toc "STRU" _img What Onoff This function sends back the value of masks OnOff of the image. ONOFF=_img What Onoff(IMG) IMG -> Pointer of Image structure. @ENDNODE @NODE "_img What Next" @toc "STRU" _img What Next This function sends back the next image. IMG=_img What Next(IMG) IMG -> Pointer of Image structure. @ENDNODE @NODE _bi_struct "Structure BoolInfo" @toc "STRU" Detail of the BoolInfo structure. $000a 10 Taille de la structure $0000 0 2 Flags $0002 2 4 Mask $0006 6 4 Reserved @ENDNODE @NODE "_bi Set Flags" @toc "STRU" _bi Set Flags This function sets the of the structure. _bi Set Flags BINF,FLAGS BINF -> Pointer of BoolInfo structure. FLAGS -> Flags @ENDNODE @NODE "_bi Set Mask" @toc "STRU" _bi Set Mask This function fixes the address of mask whose must have the characteristic of the picture, i.e, same width and height. _bi Set Mask BINF,MASK BINF -> Pointer of BoolInfo structure. MASK -> Pointer of the mask. @ENDNODE @NODE "_bi Set" @toc "STRU" _bi Set This function initializes the BoolInfo structure. _bi Set BINF,FLAGS,MASK BINF -> Pointer of BoolInfo structure. FLAGS -> Flags MASK -> Pointer of mask. @ENDNODE @NODE "_bi What Flags" @toc "STRU" _bi What Flags This function sends back the flags of the BoolInfo structure FLAGS=_bi What Flags(BINF) BINF -> Pointer of BoolInfo structure. @ENDNODE @NODE "_bi What Mask" @toc "STRU" _bi What Mask This function sends back the address of mask of the BoolInfo structure. MASK=_bi What Mask(BINF) BINF -> Pointer of BoolInfo structure. @ENDNODE @NODE _pi_struct "Structure PropInfo" @toc "STRU" Detail of PropInfo Structure. $0016 22 Size of structure $0000 0 2 Flags $0002 2 2 HorizPot $0004 4 2 VertPot $0006 6 2 HorizBody $0008 8 2 VertBody $000a 10 2 CWidth $000c 12 2 CHeight $000e 14 2 HPotRes $0010 16 2 VPotRes $0012 18 2 LeftBorder $0014 20 2 TopBorder @ENDNODE @NODE "_pi Set" @toc "STRU" _pi Set This function initializes the PropInfo structure. _pi Set PINF,FLAGS,HP,WP,XP,YP PINF -> Pointer of PropInfo structure. FLAGS -> Flags of structure HP -> Height Percentage. WP -> Width Percentage. XP -> Horizontal Percentage. YP -> Vertical Percentage. @ENDNODE @NODE "_pi What Flags" @toc "STRU" _pi What Flags This function sends back the flags of the PropInfo structure. FLAGS=_pi What Flags(PINF) PINF -> Pointer of PropInfo structure. @ENDNODE @NODE "_pi What % Horiz" @toc "STRU" _pi What % Horiz This function sends back the horizontal percentage. H=_pi What % Horiz(PINF) PINF -> Pointer of PropInfo structure. @ENDNODE @NODE "_pi What % Vert" @toc "STRU" _pi What % Vert This function sends back the vertical percentage. V=_pi What % Vert(PINF) PINF -> Pointer of PropInfo structure. @ENDNODE @NODE "_pi What % Width" @toc "STRU" _pi What % Width This function sends back the percentage of width. W=_pi What % Width(PINF) PINF -> Pointer of PropInfo structure. @ENDNODE @NODE "_pi What % Height" @toc "STRU" _pi What % Height This function sends back the percentage of height. H=_pi What % Height(PINF) PINF -> Pointer of PropInfo structure. @ENDNODE @NODE "_pi What Hinc" @toc "STRU" _pi What Hinc This function sends back the horizontal increment in its containing. NB=_pi What Hinc(PINF) PINF -> Pointer of PropInfo structure. @ENDNODE @NODE "_pi What Vinc" @toc "STRU" _pi What Vinc This function sends back the vertical increment in it containing. NB=_pi What Vinc(PINF) PINF -> Pointer of PropInfo structure. @ENDNODE @NODE "_pi What Left" @toc "STRU" _pi What Left This function sends back the abscissa of containing. X=_pi What Left(PINF) PINF -> Pointer of PropInfo structure. @ENDNODE @NODE "_pi What Top" @toc "STRU" _pi What Top This function sends back the ordinate of containing. Y=_pi What Top(PINF) PINF -> Pointer of PropInfo structure. @ENDNODE @NODE _si_struct "Structure StringInfo" @toc "STRU" Detail of the StringInfo structure. $0024 36 Taille de la structure $0000 0 4 Buffer $0004 4 4 UndoBuffer $0008 8 2 BufferPos $000a 10 2 MaxChars $000c 12 2 DispPos $000e 14 2 UndoPos $0010 16 2 NumChars $0012 18 2 DispCount $0014 20 2 CLeft $0016 22 2 CTop $0018 24 4 Extension $001c 28 4 LongInt $0020 32 4 AltKeyMap @ENDNODE @NODE "_si Set Buf" @toc "STRU" _si Set Buf This function sets the buffers and their features. _si Set Buf SINF,BUF,UNDOBUF,POS,MAXC,DISPC SINF -> Pointer of StringInfo structure. BUF -> Address of string buffer. UNDOBUF -> Address of UNDO buffer. POS -> Start position in the string buffer. MAXC -> Max number of characters in the buffer (0 included). DISPC -> Number of displayable characters. @ENDNODE @NODE "_si Set Ext" @toc "STRU" _si Set Ext This function sets the extension of the StringInfo structure. _si Set Ext SINF,EXT SINF -> Pointer of StringInfo structure. EXT -> Pointer of extension. @ENDNODE @NODE "_si Set Integer" @toc "STRU" _si Set Integer This function sets the integer by default. _si Set Integer SINF,INT SINF -> Pointer of StringInfo structure. INT -> Integer. @ENDNODE @NODE "_si Set Keymap" @toc "STRU" _si Set Keymap This function sets the Keymap used by the gadget. _si Set Keymap SINF,KEYMAP SINF -> Pointer of StringInfo structure. KEYMAP -> Pointer of KeyMap. @ENDNODE @NODE "_si Set" @toc "STRU" _si Set This function initializes the StringInfo structure. _si Set SINF,BUF,UNDOBUF,POS,MAXC,DISPC,EXT,INT,KEYMAP SINF -> Pointer of StringInfo structure. BUF -> Address of string buffer. UNDOBUF -> Address of UNDO buffer. POS -> Start position in the buffer. MAXC -> Max number of characters in the buffer (0 included). DISPC -> Number of displayable character. EXT -> Pointer of Extension. INT -> Integer. KEYMAP -> Pointer of KeyMap. @ENDNODE @NODE "_si What Buf" @toc "STRU" _si What Buf This function sends back the address of buffer containing the string. BUF=_si What Buf(SINF) SINF -> Pointer of StringInfo structure. @ENDNODE @NODE "_si What Undo Buf" @toc "STRU" _si What Undo Buf This function sends back the address of UNDO buffer. BUF=_si What Undo Buf(SINF) SINF -> Pointer of StringInfo structure. @ENDNODE @NODE "_si What Pos Buf" @toc "STRU" _si What Pos Buf This function sends back the position of the 1st character in the buffer. NB=_si What Pos Buf(SINF) SINF -> Pointer of StringInfo structure. @ENDNODE @NODE "_si What Max Chars" @toc "STRU" _si What Max Chars This function sends back the maximal number of possible character. NB=_si What Max Chars(SINF) SINF -> Pointer of StringInfo structure. @ENDNODE @NODE "_si What Disp Chars" @toc "STRU" _si What Disp Chars This function sends back the number of maximal visible characters. NB=_si What Disp Chars(SINF) SINF -> Pointer of StringInfo structure. @ENDNODE @NODE "_si What Undo Pos" @toc "STRU" _si What Undo Pos This function sends back the position in the UNDO buffer. NB=_si What Undo Pos(SINF) SINF -> Pointer of StringInfo structure. @ENDNODE @NODE "_si What Nb Chars" @toc "STRU" _si What Nb Chars This function sends back the number of characters in the buffer. NB=_si What Nb Chars(SINF) SINF -> Pointer of StringInfo structure. @ENDNODE @NODE "_si What Disp Count" @toc "STRU" _si What Disp Count This function sends back the number of visible characters. NB=_si What Disp Count(SINF) SINF -> Pointer of StringInfo structure. @ENDNODE @NODE "_si What Cleft" @toc "STRU" _si What Cleft This function sends back the X offset of top left corner of containing. X=_si What Cleft(SINF) SINF -> Pointer of StringInfo structure. @ENDNODE @NODE "_si What Ctop" @toc "STRU" _si What Ctop This function sends back the Y offset in top left corner of containing. Y=_si What Ctop(SINF) SINF -> Pointer of StringInfo structure. @ENDNODE @NODE "_si What Ext" @toc "STRU" _si What Ext This function sends back the Extension of the StringInfo structure. NB=_si What Ext(SINF) SINF -> Pointer of StringInfo structure. @ENDNODE @NODE "_si What Integer" @toc "STRU" _si What Integer This function sends back the integer. NB=_si What Integer(SINF) SINF -> Pointer of StringInfo structure. @ENDNODE @NODE "_si What Keymap" @toc "STRU" _si What Keymap This function sends back the KeyMap used. KEYMAP=_si What Keymap(SINF) SINF -> Pointer of StringInfo structure. @ENDNODE