1. LAGui update
- Posted by Lewis Townsend <keroltarr at HOTMAIL.COM> Jul 20, 1999
- 319 views
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
2. Re: LAGui update
- Posted by Ralf Nieuwenhuijsen <nieuwen at XS4ALL.NL> Jul 20, 1999
- 311 views
- Last edited Jul 21, 1999
> 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.
3. Re: LAGui update
- Posted by Lewis Townsend <keroltarr at HOTMAIL.COM> Jul 20, 1999
- 318 views
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
4. Re: LAGui update
- Posted by Robert Craig <rds at ATTCANADA.NET> Jul 20, 1999
- 304 views
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! Regards, Rob Craig Rapid Deployment Software http://members.aol.com/FilesEu/
5. Re: LAGui update
- Posted by Ferlin Scarborough <ferlin at SANDW.NET> Jul 20, 1999
- 313 views
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
6. Re: LAGui update
- Posted by "Cuny, David" <David.Cuny at DSS.CA.GOV> Jul 20, 1999
- 303 views
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. 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
7. Re: LAGui update
- Posted by Lewis Townsend <keroltarr at HOTMAIL.COM> Jul 21, 1999
- 313 views
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! 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
8. Re: LAGui update
- Posted by Lewis Townsend <keroltarr at HOTMAIL.COM> Jul 21, 1999
- 316 views
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