home *** CD-ROM | disk | FTP | other *** search
- TABLE OF CONTENTS
-
- pgs.library/CloseProgress
- pgs.library/Error
- pgs.library/GetDimensions
- pgs.library/GetEnvVal
- pgs.library/GetLine
- pgs.library/GetListAndVal
- pgs.library/GetListOption
- pgs.library/GetOkCancel
- pgs.library/GetOneOption
- pgs.library/GetOneValue
- pgs.library/GetScaleDimensions
- pgs.library/GetString
- pgs.library/GetThreeValues
- pgs.library/GetTwoOptions
- pgs.library/GetTwoValues
- pgs.library/InitRandom
- pgs.library/KWriteF
- pgs.library/LoadIFFPalette
- pgs.library/OpenProgress
- pgs.library/Random
- pgs.library/ReleaseLine
- pgs.library/SetEnvVal
- pgs.library/SetProgress
- pgs.library/ThreeButtonReq
- pgs.library/Error
-
- NAME
- Error -- Generate an Error requester.
-
- SYNOPSIS
- Error(STRPTR text);
- A0
-
- FUNCTION
- Displays the requester and waits until OK has been selected, then returns.
-
- INPUTS
- text - String pointer to Null-terminated text to display in requester.
-
- RESULT
-
- SEE ALSO
-
- BUGS
- Currently uses intuition EasyRequest(). Needs to be changed to use
- our own gadget system.
- pgs.library/GetOkCancel
-
- NAME
- GetOkCancel -- Display a requester with OK and CANCEL buttons.
-
- SYNOPSIS
- GetOkCancel(STRPTR windowtext,STRPTR maintext);
- A0 A1
-
- FUNCTION
- Displays the requester and waits until OK or CANCEL have been selected.
-
- INPUTS
- windowtext - String for window title text.
- maintext - String pointer to Null-terminated text to display in requester.
-
- RESULT
-
- The return value indicates success or failure with one of the following
- values:
-
- 0 CANCEL selected
- 1 OK selected
- 2 Requester failed to open.
-
-
- SEE ALSO
-
- BUGS
- pgs.library/GetOneValue
-
- NAME
- GetOneValue -- Display a requester allowing user to select a value.
-
- SYNOPSIS
- GetOneValue(STRPTR wintitle, STRPTR gadgettext, LONG min, LONG max,
- a0 a1 d0 d1
-
- LONG *variable);
- a2
-
- FUNCTION
-
- Displays the requester and waits until OK or CANCEL have been selected.
-
- INPUTS
- wintitle - The title of the requester window.
- gadgettext - The text to display above the slider.
- min - The minimum value for the slider (signed integer value)
- max - The maximum value for the slider (signed integer value)
- *variable - A pointer to a signed integer for the result. This value
- is read to initialise the slider to the start value.
-
- RESULT
- the 32-bit signed integer pointed to by variable (a2) is updated
- if OK was selected.
-
- The return value indicates success or failure with one of the following
- values:
-
- 0 CANCEL selected
- 1 OK selected
- 2 Requester failed to open.
-
- SEE ALSO
-
- BUGS
- If minimum and maximum are the same value it does not bring up the
- requester at all and returns immediately with *variable set to the
- value and the result
- pgs.library/GetTwoValues
-
- NAME
- GetTwoValues -- Display a requester allowing user to select two values.
-
- SYNOPSIS
- GetTwoValues(STRPTR wintitle, STRPTR gadgettext, LONG min, LONG max,
- a0 a1 d0 d1
-
- LONG *variable, STRPTR gadgettext2, LONG min2, LONG max2,
- a2 a3 d2 d3
-
- LONG *variable2);
- a5
-
- FUNCTION
-
- Displays the requester and waits until OK or CANCEL have been selected.
-
- INPUTS
- wintitle - The title of the requester window.
- gadgettext - The text to display above the first slider.
- min - The minimum value for the first slider (signed integer value)
- max - The maximum value for the first slider (signed integer value)
- *variable - A pointer to a signed integer for the result. This value
- is read to initialise the first slider to the start value.
- gadgettext2- The text to display above the second slider.
- min2 - The minimum value for the second slider (signed integer value)
- max2 - The maximum value for the second slider (signed integer value)
- *variable2 - A pointer to a signed integer for the result. This value
- is read to initialise the second slider to the start value.
-
- RESULT
- The 32-bit signed integers pointed to by variable (a2) and variable2 (a5)
- are updated if OK was selected.
-
- The return value indicates success or failure with one of the following
- values:
-
- 0 CANCEL selected
- 1 OK selected
- 2 Requester failed to open.
-
- SEE ALSO
-
- BUGS
- If either sliders minimum and maximum are the same value it may well
- crash currently.
- pgs.library/GetDimensions
-
- NAME
- GetDimensions -- Display a requester to select a new image size
-
- SYNOPSIS
- GetTwoValues(STRPTR wintitle, ULONG *xsize, ULONG *ysize);
- a0 a1 a2
-
- FUNCTION
-
- Displays the requester and waits until OK or CANCEL have been selected.
-
- INPUTS
- wintitle - The title of the requester window.
- *xsize - A pointer to the unsigned 32-bit variable containing
- the x size.
- *ysize - A pointer to the unsigned 32-bit variable containing
- the y size.
-
- RESULT
- The 32-bit signed integers pointed to by xsize (a1) and ysize (a2)
- are updated if OK was selected.
-
- The return value indicates success or failure with one of the following
- values:
-
- 0 CANCEL selected
- 1 OK selected
- 2 Requester failed to open.
-
- SEE ALSO
- GetScaleDimensions()
-
- BUGS
- pgs.library/GetString
-
- NAME
- GetString -- Display a requester to enter a string.
-
- SYNOPSIS
- GetString(STRPTR wintitle, STRPTR gadgettext, STRPTR string);
- a0 a1 a2
-
- FUNCTION
-
- Displays the requester and waits until OK or CANCEL have been selected.
-
- INPUTS
-
- wintitle - The title of the requester window.
- gadgettext - A pointer to the title text for the gadget.
-
- string - A pointer to the destination string. You must allocate
- enough space to store the resultant string (256 bytes).
- The initial contents of this string determine the default
- text displayed in the requester.
-
- RESULT
-
- The string is written to the address pointed to by 'string'
- if OK was selected.
-
- The return value indicates success or failure with one of the following
- values:
-
- 0 CANCEL selected
- 1 OK selected
- 2 Requester failed to open.
-
- SEE ALSO
-
- BUGS
- pgs.library/OpenProgress
-
- NAME
- OpenProgress -- Get ready to open a Progress Requester.
-
- SYNOPSIS
- OpenProgress(STRPTR wintitle, STRPTR gadgettext);
- a0 a1
-
- FUNCTION
-
- Nothing immediately. Progress requester is prepared but not
- displayed until first SetProgress() call.
-
- You do NOT have to call OpenProgress() during normal operation
- of .GIO files, as OpenProgress() is automatically called before
- your code is accessed (if required).
-
- INPUTS
-
- wintitle - The title of the requester window.
- gadgettext - A pointer to the title text for the gadget.
-
- RESULT
-
- None.
-
- SEE ALSO
- SetProgress(),CloseProgress()
-
- BUGS
- pgs.library/SetProgress
-
- NAME
- SetProgress -- Set the contents of the progress requester
-
- SYNOPSIS
- OpenProgress(STRPTR gadgettext, ULONG value);
- a0 d0
-
- FUNCTION
-
- If a progress requester is open, it updates the text (if
- gadgettext is non-zero) and the value of the slider (from zero to 100)
-
- If a progress requester is not open, and OpenProgress has not been
- called since the program started or the last call to CloseProgress,
- then the function exits silently without error.
-
- If OpenProgress has been called since the last call to CloseProgress
- (or program start) and the progress requester is not already open,
- then it is opened.
-
- You should check the return code regularly to see if the user
- has requested to abort your operation.
-
- You need not check SetProgress() each line of image data you
- handle (it causes too much of a speed penalty). For most
- work the code from BMP.C is adequate: (y is the line number)
-
- if(!(y%16)) // don't slow down by calling SetProgress too often
- {
- if(SetProgress(0,100-(y*100/giodata->Height))!=1)
- {
- giodata->Error = LOAD_ABORTED;
- goto err;
- }
- }
-
- Do NOT call SetProgress multiple times with the string set, otherwise
- the text can flicker as it is updated every time. It is best to set
- the text before your main loop with
-
- SetProgress("Now converting image...",0);
-
- and then use
-
- if(SetProgress(0,y*100/maxy)!=1) goto err;
-
- inside your loop.
-
-
- INPUTS
-
- gadgettext - A pointer to the title text for the gadget, or zero if
- you want the text unchanged.
-
- value - The new position (between 0 and 100) for the slider.
- Note - you can make sliders go backwards if you want!
-
- RESULT
-
- 0 CANCEL selected
- 1 OK selected
- 2 Requester failed to open.
-
- (SetProgress(0,value)!=1)
-
- SEE ALSO
- OpenProgress(),CloseProgress()
-
- BUGS
- pgs.library/CloseProgress
-
- NAME
- CloseProgress -- Close the progress requester.
-
- SYNOPSIS
- CloseProgress(void);
-
- FUNCTION
-
- If a progress requester is open, it is closed.
-
- If OpenProgress() has been called then the 'ready to open' state
- of the requester is cancelled.
-
- You do not need to call CloseProgress() for normal .GIO use
- as it is done for you on exiting your code.
-
- INPUTS
-
- None
-
- RESULT
-
- Requester is closed, if displayed.
-
- SEE ALSO
- OpenProgress(),SetProgress()
-
- BUGS
-
- pgs.library/ThreeButtonReq
-
- NAME
- ThreeButtonReq -- A simple three-button requester.
-
- SYNOPSIS
- ThreeButtonReq(STRPTR wintitle, STRPTR windowtext, STRPTR gadget1text,
- a0 a1 a2
-
- STRPTR gadget2text, STRPTR gadget3text);
- a3 a5
- FUNCTION
-
- Opens a simple requester with three buttons.
-
- INPUTS
-
- wintitle - The title of the requester window.
- windowtext - The text to display inside the window.
- gadget1text - The text for the first button.
- gadget2text - The text for the second button.
- gadget3text - The text for the third button.
-
- RESULT
-
- 0 - Close gadget selected or other error.
- 1 - Button 1 selected
- 2 - Button 2 selected
- 3 - Button 3 selected
-
- SEE ALSO
-
- BUGS
- Doesn't use same return results as the other requesters - be careful!
-
- pgs.library/KWriteF
-
- NAME
- KWriteF -- Output serial debugging information.
-
- SYNOPSIS
- KWriteF(STRPTR formatstring, LONG val1, LONG val2);
- a0 d0 d1
-
- FUNCTION
-
- The string and val1 and val2 are passed to the kprintf() as
-
- kprintf(formatstring,val1,val2);
-
- Only two values can be passed, these can be zero if not needed.
-
- This function was required for internal use, we have left it in
- the library in case it is of benefit for other developers.
-
- INPUTS
-
- formatstring - A standard C Type formatting string.
- val1 - Value 1
- val2 - Value 2
-
- RESULT
-
- Output to serial port at hardware default (9600) speed.
-
- SEE ALSO
-
- BUGS
-
- pgs.library/LoadIFFPalette
-
- NAME
- LoadIFFPalette -- Loads an IFF Palette file.
-
- SYNOPSIS
- LoadIFFPalette(STRPTR name, APTR address);
- a0 a1
- FUNCTION
-
- If name is supplied, the palette is loaded into the address
- pointed to by a1. This is assumed to have at least 768 bytes of free
- memory to store the palette.
-
- If a name is not supplied, an ASL file requester is displayed allowing
- the user to load any IFF palette (or a palette from an IFF-ILBM file).
- The default path is photogenics:data/colourmaps which contains
- several pre-designed palettes.
-
- INPUTS
-
- name - Name of the palette to load (or NULL)
- address - Address to load the palette to.
-
- RESULT
-
- Up to 768 bytes of RGB palette data are loaded. Format for
- palette is standard IFF byte per component, NOT OS3.x longword
- per component. It is NOT a standard system ColorMap structure!
-
- SEE ALSO
-
- BUGS
-
- May not be too happy at loading <256 colour palettes. Will probably
- fill up rest of registers with garbage.
-
- pgs.library/GetTwoOptions
-
- NAME
- GetTwoOptions -- Display a requester with two switchable options
-
- SYNOPSIS
- GetTwoOptions(STRPTR wintitle,STRPTR gadgettext, STRPTR gadgetseltext,
- a0 a1 a2
-
- UBYTE *variable, STRPTR gadgettext2, STRPTR gadgetseltext2,
- a3 a5 d0
-
- UBYTE *variable2);
- d1
- FUNCTION
-
- Displys a requester with two switchable options. The gadgets toggle
- between text displaying the first and second (gadgettext & gadgetseltext)
- strings.
-
-
- INPUTS
-
- wintitle - Window title text
- gadgettext - Text for first gadget ('OFF' position)
- gadgetseltext - Text for first gadget ('ON' position)
- variable - Variable to store toggle status of first gadget.
- gadgettext2 - Text for second gadget ('OFF' position)
- gadgetseltext2 - Text for second gadget ('ON' position)
- variable2 - Variable to store toggle status of second gadget.
-
-
- RESULT
-
- 0 CANCEL selected
- 1 OK selected
- 2 Requester failed to open.
-
- If OK is selected, variable and variable2 are updated to the boolean
- result of each gadget (0 = gadgettext, 1 = gadgetseltext).
-
- SEE ALSO
- GetOneOption
-
- BUGS
- pgs.library/GetLine
-
- NAME
- GetLine -- Get a pointer to a line of 24-bit RGB data
-
- SYNOPSIS
- GetLine(struct GIOData *data, ULONG line);
- a0 d0
-
- FUNCTION
-
- Returns the start address of line y of image data. Any access
- to this data (either for read or write) MUST be inside a
- GetLine/ReleaseLine pair. Do *NOT* cache results of this
- function and under NO circumstances try and calculate the
- position of one line based on any other information.
-
- With future virtual memory support, this function could cause
- the line of data to be loaded from disk.
-
- INPUTS
-
- giodata - Pointer to the GIOData structure.
- line - Line number of image data.
-
-
- RESULT
-
- Locks the line for your exclusive use and returns the address.
-
- SEE ALSO
- ReleaseLine
-
- BUGS
- Must *NOT* be used except inside GioRead() and GioWrite() functions.
- Elsewhere, where the GioData does not have an associated 24-bit
- buffer it WILL crash!
- pgs.library/ReleaseLine
-
- NAME
- ReleaseLine -- Release a pointer to a line of 24-bit RGB data
-
- SYNOPSIS
- ReleaseLine(struct GIOData *data, ULONG line);
- a0 d0
-
- FUNCTION
-
- Returns the start address of line y of image data. Any access
- to this data (either for read or write) MUST be inside a
- GetLine/ReleaseLine pair. Do *NOT* cache results of this
- function and under NO circumstances try and calculate the
- position of one line based on any other information.
-
- With future virtual memory support, this function could cause
- the line of data to be loaded from disk.
-
- INPUTS
-
- giodata - Pointer to the GIOData structure.
- line - Line number of image data.
-
-
- RESULT
-
- Locks the line for your exclusive use and returns the address.
-
- SEE ALSO
- GetLine
-
- BUGS
- Must *NOT* be used except inside GioRead() and GioWrite() functions.
- Elsewhere, where the GioData does not have an associated 24-bit
- buffer it WILL crash!
- pgs.library/GetThreeValues
-
- NAME
- GetThreeValues -- Display a requester allowing user to select three values.
-
- SYNOPSIS
- GetTwoValues(STRPTR wintitle, STRPTR gadgettext, LONG min, LONG max,
- a0 a1 d0 d1
-
- LONG *variable, STRPTR gadgettext2, LONG min2, LONG max2,
- a2 a3 d2 d3
-
- LONG *variable2, STRPTR gadgettext3, LONG min3, LONG max3,
- a5 d4 d5 d6
-
- LONG *variable3);
- d7
- FUNCTION
-
- Displays the requester and waits until OK or CANCEL have been selected.
-
- INPUTS
- wintitle - The title of the requester window.
- gadgettext - The text to display above the first slider.
- min - The minimum value for the first slider (signed integer value)
- max - The maximum value for the first slider (signed integer value)
- *variable - A pointer to a signed integer for the result. This value
- is read to initialise the first slider to the start value.
- gadgettext2- The text to display above the second slider.
- min2 - The minimum value for the second slider (signed integer value)
- max2 - The maximum value for the second slider (signed integer value)
- *variable2 - A pointer to a signed integer for the result. This value
- is read to initialise the second slider to the start value.
- gadgettext3- The text to display above the third slider.
- min3 - The minimum value for the third slider (signed integer value)
- max3 - The maximum value for the third slider (signed integer value)
- *variable3 - A pointer to a signed integer for the result. This value
- is read to initialise the third slider to the start value.
-
- RESULT
- The 32-bit signed integers pointed to by variable (a2), variable2 (a5)
- and variable3 (d7) are updated if OK was selected.
-
- The return value indicates success or failure with one of the following
- values:
-
- 0 CANCEL selected
- 1 OK selected
- 2 Requester failed to open.
-
- SEE ALSO
-
- BUGS
- If any slider minimum and maximum are the same value it may well
- crash currently.
- pgs.library/GetScaleDimensions
-
- NAME
- GetScaleDimensions -- Display a requester to select a new image size
-
- SYNOPSIS
- GetScaleDimensions(STRPTR wintitle, ULONG *xsize, ULONG *ysize);
- a0 a1 a2
-
- FUNCTION
-
- Displays the requester and waits until OK or CANCEL have been selected.
-
- This differs slightly from the standard GetDimensions requester.
- It allows you to select an image based on the original size (eg. 50%,
- 200%, 400%) and to lock the aspect when using the sliders. This was
- designed for the Scale option in Photogenics, although there is no reason
- it should not be used elsewhere.
-
- INPUTS
- wintitle - The title of the requester window.
- *xsize - A pointer to the unsigned 32-bit variable containing
- the x size.
- *ysize - A pointer to the unsigned 32-bit variable containing
- the y size.
-
- RESULT
- The 32-bit signed integers pointed to by xsize (a1) and ysize (a2)
- are updated if OK was selected.
-
- The return value indicates success or failure with one of the following
- values:
-
- 0 CANCEL selected
- 1 OK selected
- 2 Requester failed to open.
-
- SEE ALSO
- GetDimensions()
-
- BUGS
- pgs.library/GetListOption
-
- NAME
- GetListOption -- Display a requester with a cycle gadget
-
- SYNOPSIS
- GetListOption(STRPTR wintitle, STRPTR gadgettext
- a0 a1
-
- struct TagList *taglist, ULONG *variable);
- a2 a3
-
- FUNCTION
-
- Displays the requester and waits until OK or CANCEL have been selected.
-
- If OK was selected the numeric value for the chosen option on the cycle
- gadget is put into variable (a3).
-
- NOTE: Future versions of this function may well automatically use
- a listview type selector where the number of options on the cyclic
- gadget is greater than a specific number, or if a new tag (yet to
- be defined) is used.
-
- INPUTS
- wintitle - The title of the requester window.
- gadgettext - The title text for the gadget.
- taglist - A taglist defining the options for the cyclic gadget.
- variable - The variable to update if OK is selected.
-
- Possible tags are:
-
- PGTAG_LISTMIN (0x81910050)
- Usually you'd set this to zero, the first numbered tag.
-
- PGTAG_LISTMAX (0x81910060)
- Set this to the maximum tag number (usually number of tags - 1)
-
- PGTAG_ENTRY (0x81900a0)
- Each entry is started with this tag.
-
- PGTAG_ENTRYID (0x81900b0)
- Each entry has an ID specified with this tag.
-
- PGTAG_ENTRYTEXT 0x81900c0
- The text is selected with this tag.
-
- PGTAG_ENTRYEND 0x81900e0
- Each entry has to end with this tag.
-
- PGTAG_END 0x8191ffff
- The whole tag list must be finished off with this (followed by
- the normal 0,0 tag end.)
-
- An example taglist (a fragment from the backdrop loader):
-
- {
- PGTAG_LISTMIN, 0,
- PGTAG_LISTMAX, 3,
-
- PGTAG_ENTRY, 0,
- PGTAG_ENTRYID, 0,
- PGTAG_ENTRYTEXT, (ULONG) "Left to Right",
- PGTAG_ENTRYEND, 0,
-
- PGTAG_ENTRY, 0,
- PGTAG_ENTRYID, 1,
- PGTAG_ENTRYTEXT, (ULONG) "Right to Left",
- PGTAG_ENTRYEND, 0,
-
- PGTAG_ENTRY, 0,
- PGTAG_ENTRYID, 2,
- PGTAG_ENTRYTEXT, (ULONG) "Top to Bottom",
- PGTAG_ENTRYEND, 0,
-
- PGTAG_ENTRY, 0,
- PGTAG_ENTRYID, 3,
- PGTAG_ENTRYTEXT, (ULONG) "Bottom to Top",
- PGTAG_ENTRYEND, 0,
-
- PGTAG_END, 0,
- TAG_END
- };
-
- RESULT
- *variable is updated if OK was selected.
-
- The return value indicates success or failure with one of the following
- values:
-
- 0 CANCEL selected
- 1 OK selected
- 2 Requester failed to open.
-
- SEE ALSO
-
- BUGS
- The gadget imagery is not ideal at the moment. This will be improved
- shortly. The hitbox for backwards movement is limited to a small area
- immediately over the <- symbol.
- pgs.library/GetOneOption
- NAME
- GetOneOption -- Display a requester with a switchable option
-
- SYNOPSIS
- GetOneOption(STRPTR wintitle,STRPTR gadgettext, STRPTR gadgetseltext,
- a0 a1 a2
-
- UBYTE *variable);
- a3
- FUNCTION
-
- Displys a requester with a switchable option. The gadget toggles
- between text displaying the first and second (gadgettext & gadgetseltext)
- strings.
-
-
- INPUTS
-
- wintitle - Window title text
- gadgettext - Text for first gadget ('OFF' position)
- gadgetseltext - Text for first gadget ('ON' position)
- variable - Variable to store toggle status of first gadget.
-
- RESULT
-
- 0 CANCEL selected
- 1 OK selected
- 2 Requester failed to open.
-
- If OK is selected, variable is updated to the boolean result of the
- gadget (0 = gadgettext, 1 = gadgetseltext).
-
- SEE ALSO
- GetTwoOptions
-
- BUGS
- pgs.library/InitRandom [V1.2]
-
- NAME
- InitRandom - Initialises the Random number generator.
-
- SYNOPSIS
- InitRandom(ULONG seed);
-
-
- FUNCTION
- Initialises the random number generators used in Photogenics. The
- current time is used if the supplied seed is zero.
-
- INPUTS
- seed - Default seed (or zero)
-
- RESULT
- None
-
- SEE ALSO
- Random()
-
- BUGS
- pgs.library/Random [V1.2]
-
- NAME
- Random - Returns a random number between 0 and very very large.
-
- SYNOPSIS
- number = Random(type);
- d0 d0
-
- FUNCTION
- Returns a random number.
- There are two types of random number routine. If type == 0
- a slow but good random number routine is used. If type == 1 a
- faster but less random routine is used.
-
- INPUTS
- type - Type of random number routine.
-
- RESULT
- number = Random number (between 0 and 0x7fffffff)
-
- SEE ALSO
- InitRandom()
-
- BUGS
- pgs.library/GetEnvVal [V1.2]
-
- NAME
- GetEnvVal -- Simple Environment variable loading.
-
- SYNOPSIS
- GetEnvVal(STRPTR varname, APTR val, ULONG size);
- a0 a1 d0
-
- FUNCTION
- Reads the environment variable from env:photogenics/<varname>.
- Reads size bytes to address val.
-
- INPUTS
- varname - ASCII name of environment variable.
- val - Address to store value.
- size - Size of data to load.
-
- RESULT
- Data is loaded into address val.
-
- SEE ALSO
- SetEnvVal
-
- BUGS
- pgs.library/SetEnvVal [V1.2]
-
- NAME
- SetEnvVal -- Simple Environment variable saving.
-
- SYNOPSIS
- SetEnvVal(STRPTR varname, APTR val, ULONG size);
- a0 a1 d0
-
- FUNCTION
- Writes the environment variable to envarc:photogenics/<varname>.
- Writes size bytes from address val.
-
- INPUTS
- varname - ASCII name of environment variable.
- val - Address to read from.
- size - Size of data to save.
-
- RESULT
- Data is written to envarc: and env:.
-
- SEE ALSO
- GetEnvVal
-
- BUGS
- pgs.library/GetListAndVal [V1.2]
-
- NAME
- GetListAndVal -- Display a requester with one cycle and one slider gadget
-
- SYNOPSIS
- GetListAndVal(STRPTR wintitle, STRPTR gadgettext,
- a0 a1
-
- struct TagList *taglist, LONG *variable,
- a2 a3
-
- LONG min, LONG max, STRPTR gadgettext2 LONG *variable2);
- d0 d1 d2 a5
-
- FUNCTION
-
- Displays the requester and waits until OK or CANCEL have been selected.
-
- INPUTS
- wintitle - The title of the requester window.
- gadgettext - The title text for the cycle gadget.
- taglist - Taglist describing cycle (See GetListOption for details)
- *variable - Pointer to the variable for the result of the cycle gadget.
- min - The minimum value for the slider (signed integer value)
- max - The maximum value for the slider (signed integer value)
- gadgettext2 - The title text for the slider gadget.
- *variable2 - A pointer to a signed integer for the slider result. This
- value is read to initialise the slider to the start value.
-
- RESULT
- Both variable and variable2 are updated if OK was selected.
-
- The return value indicates success or failure with one of the following
- values:
-
- 0 CANCEL selected
- 1 OK selected
- 2 Requester failed to open.
-
- SEE ALSO
-
- BUGS
- If minimum and maximum are the same value it does not bring up the
- requester at all and returns immediately.
-
-