Re: DOS GUI
- Posted by bonn ortloff <kc7yrh at HOTMAIL.COM> Aug 20, 1998
- 542 views
>Date: Thu, 20 Aug 1998 12:59:12 -0400 >Reply-To: Euphoria Programming for MS-DOS <EUPHORIA at LISTSERV.MUOHIO.EDU> >From: Irv <irv at ELLIJAY.COM> >Subject: Re: DOS GUI >To: EUPHORIA at LISTSERV.MUOHIO.EDU > >bonn ortloff wrote: >> >> I noticed my notes are still quite BETA. >> >That's pretty good, considering the software's still Alpha! > >>I have to find out the Set() >> for the stuff (I know so far only Text() Everythings got a set to it, >> right? I just have to find out) > >Everything (every property) can be Set, Look at the file GLOBALS.WIN. >Each slot in the generic_window_obj can be set. Not all of them are >safe to set (you wouldn't want to change an object's handle, for >example) >like this: >object win -- create a new object >win = Window("myWindow","Visible title for this window's >titlebar",x1,y1,width,height) >win = Add(win, Button("btnName","OK",x1,y1,width,height,group#) >win = Set(win,"btnName",COLORS,{FGND,BKGND,TEXT}) > ^win ^control ^property ^value(s) > >Each call to Set looks up the control by name (btnName) and sets the >property (COLORS) >to the value {...}. The value you send depends on what the property is >supposed to >hold: COORDS and SIZE are always {x,y} for all controls, of course. >COLORS always gets a 3 value sequence. Most are explained in the >comments >in GLOBALS.WIN. The contents of DATA varies depending upon the type of >control. >It can be text or a number (boolean true/false in the case of a checkbox >or radiobutton), or something else altogether for future controls. >GROUP controls the tabbing from field to field. When it works :) the >tab key/ shift tab moves to the next/prev control in that window >which has that GROUP #. When it tabs out of the group, it returns >control to the mouse. This is awkward but necessary because, so far, >Jiri's otherwise excellent font.e does not support mouses. > >Regards, > >Irv > Yup. Basically, you only want to change the property(ies) and value(s), and not the rest. Combining mighty.e and font.e was a hell of an idea. I love it! (hehe... I even changed the cursor :) All you really have to do to font.e is add the mouse code, no? TRU Regards :) -- "LEVIATHAN" ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com