home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
-
-
-
-
-
- Graphical User Interface Handler
- Version 1.00
-
- by
- Dan Watling
-
- What's in this DOC:
- -------------------
- INTRODUCTION
- PACKAGING LIST
- COMMANDS
- CONTACTING THE AUTHOR
- NEXT VERSION
-
-
- INTRODUCTION
-
- The GUI Handler is the result of my efforts to make C/C++ GUI
- routines easier for the graphics programmer. I have used it in
- my own programs with excellent results.
-
- Graphical User Interface Handler allows the programmer to
- easily make a simple GUI to complex GUI in a shorter time.
- The complications of having to draw each individual button,
- window, etc. are essentially removed! The GUI Handler is a very
- powerful, yet, very flexible program.
-
- PACKAGING LIST
-
- The current version of GUI Handler consists of the following
- files:
-
- GUI.DOC GUI Handler documentation
- GUI.H GUI Header file
- GUI.CPP Main Program Module
- DRAW.EXE A Demonstration of what
- GUI Handler can do
- REG.FRM Registration form
-
- If you did not recieve all of these files, please contact the
- sysop of the board you downloaded it from.
-
- COMMANDS
-
- Function cls
-
- Syntax: void cls(int color);
-
- Parameters: Color to clear screen with.
-
-
- Example: cls(15);
- Would paint the screen white.
-
-
-
- Function: multispray
-
- Syntax: void multispray(int x, int y);
-
- Parameters: Puts a random color in a random circular area
- around pos X, Y
-
- Example: multispray(50,50);
- Targets 50X, 50Y as the center of the spray
-
-
- Function: spray
-
- Syntax: void spray(int x, int y, int color);
-
- Parameters: Puts color [color], in a random circular area
- around pos X, Y
-
-
-
- Function: shadowtext
-
- Syntax: void shadowtext(int x, int y, const char far *text,
- int color);
-
- Parameters: Puts Shadowed text to the screen at X, Y
-
- Example: shadowtext(50,50,"Hello World!",7);
- Would put the shadowed text 'Hello World!' at 50X, 50Y
- and would color the foretext Light Grey
-
-
-
- Function: drawbutton
-
- Syntax: void drawbutton(int x, int y, int mx, int my, int
- labelcolor, const char far *label, int shadowed);
-
- Parameters: X pos of upper-left corner, y pos of upper-left
- corner, x pos of lower-right corner, y pos of
- lower-right corner.
- Labelcolor specifies the color of the buttontext.
- Label refers to what the button will be label as
- Shadowed asks if you want the button to be shadowed
- TRUE for shadowed button, FALSE for regular button.
-
- Purpose: To draw a button on the screen.
-
- Example: drawbutton(50,50,150,100,15,"Cancel",TRUE);
- Would draw a button at 50X, 50Y, and end it at
- 150X, 100Y, Labeled 'Cancel', colored white, with
- a shadow.
-
-
-
- Function: drawfilledbutton
-
- Syntax: void drawfilledbutton(int x, int y, int mx, int my,
- int color, int labelcolor, const char far *label,
- int shadowed);
-
- Parameters: X pos of upper-left corner, y pos of upper-left
- corner, x pos of lower-right corner, y pos of
- lower-right corner. Color of button.
- Color of label. Label Name. Whether or not to make
- the label shadowed.
-
- Purpose: To draw a filled-button on the screen.
-
- Example: drawfilledbutton(50,50,150,100,1,15,"Cancel",TRUE);
- Would draw a button at 50X, 50Y, and end it at
- 150X, 100Y, button colored DARK_BLUE,
- Labeled 'Cancel', colored white, with
- a shadow.
-
-
-
- Function: drawclickedbutton
-
- Syntax: void drawclickedbutton(int x, int y, int mx, int my,
- int labelcolor, const char far *label, int shadowed);
-
- Parameters: Same as drawbutton, but it will draw a clicked button
- instead of an unclicked button.
-
- Purpose: To draw a clicked-button on the screen.
-
- Example: drawclickedbutton(50,50,150,100,15,"Cancel",TRUE);
- Would draw a clicked button at 50X, 50Y, and end it at
- 150X, 100Y, Labeled 'Cancel', colored white, with
- a shadow.
-
-
- Function: drawclickedfilledbutton
-
- Syntax: void drawclickedfilledbutton(int x, int y, int mx,
- int my, int color, int labelcolor, const char far
- *label, int shadowed);
-
- Parameters: X pos of upper-left corner, y pos of upper-left
- corner, x pos of lower-right corner, y pos of
- lower-right corner. Color of button.
-
- Purpose: Same as drawfilledbutton, but it draws a clicked-filled
- button.
-
- Example: drawclickedfilledbutton(50,50,150,100,1,15,
- "Cancel",TRUE);
- Would draw a clicked button at 50X, 50Y, and end it at
- 150X, 100Y, button colored DARK_BLUE,
- Labeled 'Cancel', colored white, with
- a shadow.
-
-
-
- Function: drawvertscrollbar
-
- Syntax: void drawvertscrollbar(int x, int y, int length);
-
- Parameters: X pos of scroll bar, Y pos of scroll bar, length
- of scroll bar
-
- Purpose: To draw a Vertical(Up and Down) scroll bar on the
- screen
-
-
-
- Example: drawvertscrollbar(50,50,200);
- Would draw a scroll bar at 50X, 50Y, and end at
- 200Y
-
-
-
- Function: drawhorzscrollbar
-
- Syntax: void drawvertscrollbar(int x, int y, int length);
-
- Parameters: X pos of scroll bar, Y pos of scroll bar, length
- of scroll bar
-
- Purpose: To draw a Horizontal(Left and Right) scroll bar
- on the screen
-
- Example: drawhorzscrollbar(50,50,200);
- would draw a scroll bar at 50X, 50Y, and end at
- 200X
-
-
-
- Function: drawscrollbox
-
- Syntax: void drawscrollbox(int x, int y);
-
- Parameters: X pos of scroll box, Y pos of scroll box.
-
- Purpose: To draw a scroll box on the screen
-
- Example: drawscrollbox(50,50);
- Would draw a scroll box at 50X, 50Y.
- (NOTE: I am trying to setup a routine to monitor
- the scroll bars, so it will be easier on you, the
- programmer)
-
-
-
- Function: drawwindow
-
- Syntax: void drawwindow(int x, int y, int mx, int my,
- const char far *title, int scrollbar);
-
- Parameters: X pos of upper-left corner, Y pos of upper-left,
- corner, X pos of lower-right corner, Y pos of
- lower-right corner. If you want the scroll bars
- to be put on the window, just put TRUE in the
- scrollbar part.
-
- Example: drawwindow(20,20,500,300,"HELLO WORLD!,FALSE);
- Would draw a window at 20X, 20Y, and extend it
- to 500X, 300Y, with the name of the window as
- "HELLO WORLD!", and draw it without the Scrollbars
-
-
- Function: textfield
-
- Syntax: void textfield(int x, int y, int mx, int my);
-
- Parameters: Specifies an area for text input, at X, Y MX, MY
-
- Example: textfield(50,50,100,100);
- Draws a black rectangle at 50X, 50Y, 100X, 100Y.
-
-
-
- Function: putmenu
-
- Syntax: void putmenu(void *menuname, int x, int y, int type);
-
- Parameters: Name of the menu, X pos to place at, Y pos to
- place at, how to display it(ie. XOR, OR, AND, etc.)
-
- Example: putmenu(MAIN_MENU, 0, 0, COPY);
- Would put the menu of 'MAIN_MENU' at 0X, and 0Y
- and painting it as COPY
-
-
- Function: getmenu
-
- Syntax: void getmenu(void *menuname, int x, int y, int mx, int my);
-
- Parameters: Name of menu, X upper-left pos to save, Y upper-left
- pos to save, X lower-right pos to save, Y lower-right
- pos to save
-
- Example: getmenu(MAIN_MENU,0,0,639,19);
- Would get the menu 'MAIN_MENU' from 0X, 0Y, 639X, and
- 19Y
-
-
-
-
-
- CONTACTING THE AUTHOR
-
- You can either get ahold of me by calling my board, Far Side of the
- Sun at (815)477-8263, you can call me voice (815)477-7236, or last
- but not least, you can write to me at:
- Dan Watling
- 3408 Walkup Road
- Crystal Lake, Illinois
- 60012-1109
-
- NEXT SHAREWARE VERSION
-
- In the next shareware release of Graphical User Interface Handler, I
- intend on having the following things done:
-
- o Any bugs that I find, or that anyone else finds
- o Making more commands that either I think of, or someone else
- suggests
- o Put the arrows on the scrollbar routines
- o Hopefully, add a routine that monitors the scrollbars and such
- o Make a different demo for GUIHandler
-
- NEXT REGISTERED RELEASE
-
- In the next registered release of Graphical User Interface Handler, I
- intend on having the following things done:
-
- o Any bugs that I find, or that anyone else finds
- o Making more commands that either I think of, or someone else
- suggests
- o Put the arrows on the scrollbar routines
- o Hopefully, add a routine that monitors the scrollbars and such
- o Make a totally different demo for GUIHandler
- o Add some mouse routines
-
- This should be done by November of 1993.
- Remember, if you would like to register this, send $15.00 to me!
-
-
-