1. LAGui update

I updated my GUI library today.
I added a demo program and stomped a few bugs
that the demo showed up. Rob, would you make a
note of this update on the website?
Here is the readme.txt file to give y'all a
better idea of what my GUI does:

Gui.e
by: Lewis Townsend
Keroltarr at hotmail.com
|\   +--\       | | /""\
| \  |_  \  |\  | | \__
|  \ |    \ | \ | |    \
|   \+---  \|  \| | \__/
| |\ \
| | \ \    |""\ +--++--+
| |  \ \   |   |   ||
| |___\ \  |__/    ||
|        \ |  \    ||
|_________\|   \   ||
www.geocities.com/TimesSquare/Labyrinth/9472
 ==========================================================================

This is a simple gui library for use with Euphoria. Special thanks to David
Cuny for putsxy.e and to Rapid Deployment Software for Euphoria.  This
library makes use of graphics.e so you will not be able to use Neil with
this, however, I am rewriting this library for use with Neil.

Here is a basic overview of the routines:

 ==========================================================================
global procedure BackColor (integer c)
---------------------------------------------------------------------------
Sets the back ground color of future windows

 ==========================================================================
global procedure HighlightColor (integer c)
---------------------------------------------------------------------------
Sets the highlight color of future windows

 ==========================================================================
global procedure ShadowColor (integer c)
---------------------------------------------------------------------------
Sets the shadow color of future windows

 ==========================================================================
global procedure TextColor (integer c)
---------------------------------------------------------------------------
Sets the color of future text

 ==========================================================================
global procedure SetAllColors (sequence c)
---------------------------------------------------------------------------
Sets the all colors of future graphics

 ==========================================================================
global procedure initmouse ()
---------------------------------------------------------------------------
Initializes some stuff for the mouse. YOU NEED TO CALL THIS BEFORE USING THE
MOUSE

 ==========================================================================
global procedure drawpointer ()
---------------------------------------------------------------------------
This procedure will display the mouse pointer at it's current location just
in case it has disapeared.

 ==========================================================================
global procedure erasepointer ()
---------------------------------------------------------------------------
This erases the mouspointer to avoid any unwanted graphics corruption

 ==========================================================================
global type mouse(object m)
---------------------------------------------------------------------------
Always declare your mouse variable as this type or the mouse won't work
right.

 ==========================================================================
global function mouseover (object m, sequence things)
---------------------------------------------------------------------------
This give the element of "things" that "m" is over.  "things" is a list
(usually of buttons) that you want to check for the mouse being over.  Here
is the structure of a button:
        name = 1,
        posul = 2,
        poslr = 3,
        unpushed = 4,

 ==========================================================================
global procedure rectangle (coord ul, coord lr, integer c, bool f)
---------------------------------------------------------------------------
This draws a rectangle of color c.  "ul" is the upper left corner and "lr"
is the lower right corner.  f is true if the rectangle is to be filled and
false otherwise.

 ==========================================================================
global procedure drawpanel (coord ul, coord lr, bool inout)
---------------------------------------------------------------------------
This draws a 3d looking panel (or box).  ul is upper left, lr is lower
right.
inout is true if panel is to appear to stick out and false if it's to appear
to sink in.

 ==========================================================================
global procedure showtext (coord ul, coord lr, string txt)
---------------------------------------------------------------------------
This routine will wrap "txt" (a string) inside a rectangle defined by "ul"
and "lr".  Be careful not to put too long of text in too short a rectangle.
Also make sure that the rectangle is wide enough to fit the longest word.

 ==========================================================================
global procedure showtextpanel (coord ul, coord lr, string txt, bool inout)
---------------------------------------------------------------------------
This procedure displays wraped "txt" on a panel defined by "ul" and "lr" and
"inout"

 ==========================================================================
global procedure drawbutton (string txt, coord ul, coord lr, bool inout)
---------------------------------------------------------------------------
This just draws a panel defined by "ul" and "lr" and "inout" with "txt"
centered on it.

 ==========================================================================
global function buttonclicked (sequence m, sequence buttons)
---------------------------------------------------------------------------
This tells you which button out of "buttons" that "m" is has clicked by
returning the element or 0 if no button is clicked.
Note: this does the button animation for you.

 ==========================================================================
global procedure okmsg (coord ul, string msg)
---------------------------------------------------------------------------
This displays a window with a message "msg" at position "ul" and waits for
the OK button to be clicked or Enter to be pressed.
Note: make sure that "msg" is'nt too long or it will look funny or even
cause graphics corruption

 ==========================================================================
global function typeinbox (string prompt, coord ul, bool numberinput)
---------------------------------------------------------------------------
This displays a window to type in with Ok and Cancel buttons.  "prompt" is a
short message asking for input, "ul" is the position of the windows, and
"numberinput" is true if the input is to be returned as a number and and
false otherwise



Sorry about the wrapping problem, it looks better
in notepad. later,
Lewis Townsend


_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com

new topic     » topic index » view message » categorize

2. Re: LAGui update

> I updated my GUI library today.
> I added a demo program and stomped a few bugs
> that the demo showed up. Rob, would you make a
> note of this update on the website?
> Here is the readme.txt file to give y'all a
> better idea of what my GUI does:

It seems the file you uploaded it capatilzed differenly, leaving the old
file remaining on your ISP, which then lets me choose whenever I want to
download, which of the two files I would want. Both are differnly
capatalized then the referred link in your download page.

So, which file should I use ?

Ralf N.

new topic     » goto parent     » topic index » view message » categorize

3. Re: LAGui update

Hello,

>It seems the file you uploaded it capatilzed differenly, leaving the old
>file remaining on your ISP, which then lets me choose whenever I want to
>download, which of the two files I would want. Both are differnly
>capatalized then the referred link in your download page.
>
>So, which file should I use ?
>
>Ralf N.

Try it now, I deleted the old one.
The new one is all lowercase.
If you still have trouble I'll send it via email

sorry for the inconvenience,
Lewis Townsend


_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com

new topic     » goto parent     » topic index » view message » categorize

4. Re: LAGui update

Lewis Townsend writes:
> This is a simple gui library for use with Euphoria.
> Special thanks to David Cuny for putsxy.e ...

You should use the version of putsxy.e that's in
euphoria\demo\langwar and also in the Archive.
It's about 4x faster than the one you are currently
including in your .ZIP.

Credit should go to David Gay for the
original implementation of putsxy.e.
(I later made it smaller and sped it up.)
Don't assume that everything was written by Cuny!  smile

Regards,
     Rob Craig
     Rapid Deployment Software
     http://members.aol.com/FilesEu/

new topic     » goto parent     » topic index » view message » categorize

5. Re: LAGui update

Lewis Townsend wrote:
>
> I updated my GUI library today.
> I added a demo program and stomped a few bugs
> that the demo showed up.
>

Lewis,

        I got on your Web Site and downloaded LAGUI, only there was no demo
program, unless I'm missing something.  The files I received were:

GUI.E
MATH.E
PUTSXY.E
READ ME.TXT

Later,

--
+ + +  Rev. Ferlin Scarborough  -  Centreville, Alabama  -  USA

          http://sites.netscape.net/fscarborough/homepage

MailTo:ferlin at sandw.net
MailTo:ferlin at email.com
MailTo:fscarborough at netscape.net

new topic     » goto parent     » topic index » view message » categorize

6. Re: LAGui update

Robert Craig wrote:

> Don't assume that everything was written by Cuny!

I was *wondering* why my name was in the credits. I just figured it was
because I'm a nice guy. blink

By the way, there's a bug in the demo - pressing Cancel in the dialog box
gives an error:

    subscript value 1 is out of bounds, reading from a sequence of length 0

-- David Cuny

new topic     » goto parent     » topic index » view message » categorize

7. Re: LAGui update

Robert Craig wrote:

>Lewis Townsend writes:
> > This is a simple gui library for use with Euphoria.
> > Special thanks to David Cuny for putsxy.e ...
>
>You should use the version of putsxy.e that's in
>euphoria\demo\langwar and also in the Archive.
>It's about 4x faster than the one you are currently
>including in your .ZIP.

Oops, I'll fix that.

>Credit should go to David Gay for the
>original implementation of putsxy.e.
>(I later made it smaller and sped it up.)
>Don't assume that everything was written by Cuny!  smile

Oops again, I didn't realize that David Gay wrote it first.
I'll fix today that too.

sorry for any slight,
Lewis Townsend


_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com

new topic     » goto parent     » topic index » view message » categorize

8. Re: LAGui update

Ferlin Scarborough wrote:

>Lewis Townsend wrote:
> >
> > I updated my GUI library today.
> > I added a demo program and stomped a few bugs
> > that the demo showed up.
> >
>
>Lewis,
>
>         I got on your Web Site and downloaded LAGUI, only there was no
>demo
>program, unless I'm missing something.  The files I received were:
>
>GUI.E
>MATH.E
>PUTSXY.E
>READ ME.TXT
>
>Later,
>
>--
>+ + +  Rev. Ferlin Scarborough  -  Centreville, Alabama  -  USA
>
>           http://sites.netscape.net/fscarborough/homepage
>
>MailTo:ferlin at sandw.net
>MailTo:ferlin at email.com
>MailTo:fscarborough at netscape.net

Shoot, I must have deleted the wrong one.
Just one more thing for me to fix today.

sorry,
Lewis Townsend


_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu