1. I need gui stuff to work in 256 color modes

I need to build an application that looks and acts like a windows app, and
it needs to work in 640x480x256 color mode.  Cuny's stuff looks pretty
good, but only works in 16 color mode 18.  Any ideas?

Michael Packard
Lord Generic Productions
lgp at exo.com http://exo.com/~lgp
A Crash Course in Game Design and Production
http://exo.com/~lgp/euphoria

new topic     » topic index » view message » categorize

2. Re: I need gui stuff to work in 256 color modes

At 21:36 19/07/97 -0700, you wrote:
>---------------------- Information from the mail header -----------------------
>Sender:       Euphoria Programming for MS-DOS <EUPHORIA at
>MIAMIU.ACS.MUOHIO.EDU>
>Poster:       Michael Packard <lgp at EXO.COM>
>Subject:      I need gui stuff to work in 256 color modes
>-------------------------------------------------------------------------------
>
>I need to build an application that looks and acts like a windows app, and
>it needs to work in 640x480x256 color mode.  Cuny's stuff looks pretty
>good, but only works in 16 color mode 18.  Any ideas?
>
>Michael Packard
>Lord Generic Productions
>lgp at exo.com http://exo.com/~lgp
>A Crash Course in Game Design and Production
>http://exo.com/~lgp/euphoria
>
>

Check out my new offering under the heading of 'make clickable buttons' on
the RDS page. It's by no means a complete solution, but should prove useful.
The included 'HRMouse' routines work in all modes.

But if you really want all that windoze crap, use VB - it's just too easy.

While I'm on the subject; Rob, any chance of getting the Win32 version to
link in with VB .VBX and .OCX files? That would take care of all that GUI
stuff and leave us free to use EU for all the 'real' stuff it's so good at.

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

3. Re: I need gui stuff to work in 256 color modes

> >I need to build an application that looks and acts like a windows app, and
> >it needs to work in 640x480x256 color mode.  Cuny's stuff looks pretty
> >good, but only works in 16 color mode 18.  Any ideas?
> Check out my new offering under the heading of 'make clickable buttons' on
> the RDS page. It's by no means a complete solution, but should prove useful.
> The included 'HRMouse' routines work in all modes.

Some time ago I worked on a GUI engine, but also have to make it for
16 colors because you can't display the mouse cursor in SVGA modes
(in Euphoria docs Rob says that DOS 7 allows this, I use wim95 with
no efective result...). I haven't testes HRMouse routines, but it's
said that they allow to "draw" the mouse in SVGA modes... the
withdraw is a decrease of speed. If anyone can code an ASM
function/driver for handling the mouse in SVGA modes, that will be
the solution.

> While I'm on the subject; Rob, any chance of getting the Win32 version to
> link in with VB .VBX and .OCX files? That would take care of all that GUI
> stuff and leave us free to use EU for all the 'real' stuff it's so good at.

I recently bought Visual C++ 4.0 and was wondering how to build DLL's
for Euphoria Win32 version. I'm really new to C++ and mostly to
Windows programming, but If you give me some information about the
calling conventions for the DLL and other required information I'll
have enougth time to have some DLL's (such as compression and
database engine)  ready when the Win32 version is released.

Regards,
  Daniel Berstein
  danielberstein at usa.net
  http://www.geocities.com/SiliconValley/Heights/9316

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

4. Re: I need gui stuff to work in 256 color modes

Michael Packard wrote:
> I need to build an application that looks and acts like a windows app, and
> it needs to work in 640x480x256 color mode.  Cuny's stuff looks pretty
> good, but only works in 16 color mode 18.  Any ideas?

Cuny's stuff might work in 256 color mode 257 except that the mouse
doesn't display and text on the screen is screwy.  Changing the video
mode to 257 is easy enough.  The graphic_text procedure, which is in
screen.e, calls a video interrupt (TTY string write) that doesn't seem
to behave as expected in a SVGA mode (on my machine at least).  I've
tried modifying graphics_text to work with other euphoria font programs
but haven't come up with a working solution yet.  Same goes for mouse
routines.  Has anyone else tried or had any luck?

One minor speedup I've done on David Cuny's editor code is to change the
line number display when opening, saving, or searching to update only
every 64 lines or so.  When writing to the display for every single
line, processing a file (especially large ones) seemed too slow on my
486.  I used something like "if and_bits(line_number, 63) = 0 then
--display line number" for checking every 64th line.

> Michael Packard
> Lord Generic Productions
> lgp at exo.com http://exo.com/~lgp
> A Crash Course in Game Design and Production
> http://exo.com/~lgp/euphoria

--
                   _____         _____         _____
    ________      /\    \       /\    \       /\    \
   /   \    \    /  \____\     /  \____\     /  \____\
  /  _  \____\  /   / ___/_   /   /____/    /   / ___/_
 /  / \  |____|/   / /\____\ /    \    \   /   / /\____\
 \  \_/ /    / \   \/ / ___/_\     \    \  \   \/ / ___/_
  \    /____/   \    / /\    \\/\   \    \  \    / /\    \
   \   \    \    \   \/  \____\  \   \    \  \   \/  \____\
    \   \    \    \      /    /   \   \____\  \      /    /
     \   \____\    \    /    /     \  /    /   \    /    /
      \  /    /     \  /    /       \/____/     \  /    /
       \/____/       \/____/                     \/____/

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

5. Re: I need gui stuff to work in 256 color modes

Pete Eberlein wrote:
> Michael Packard wrote:
> > I need to build an application that looks and acts like a windows app, and
> > it needs to work in 640x480x256 color mode.  Cuny's stuff looks pretty
> > good, but only works in 16 color mode 18.  Any ideas?
>
> Cuny's stuff might work in 256 color mode 257 except that the mouse
> doesn't display and text on the screen is screwy.  Changing the video
> mode to 257 is easy enough.  The graphic_text procedure, which is in
> screen.e, calls a video interrupt (TTY string write) that doesn't seem
> to behave as expected in a SVGA mode (on my machine at least).  I've
> tried modifying graphics_text to work with other euphoria font programs
> but haven't come up with a working solution yet.  Same goes for mouse
> routines.  Has anyone else tried or had any luck?

I've been bustin' my brain on this today and now have a somewhat
workable solution.  I made a graphics_text include file that is
compatible with fonts from the fonter.zip package.  It retains the
ability to load custom fonts in text mode too!  I also put together a
SVGA mouse cursor procedure into a modified mouse.e.  It works in SVGA
modes with no modifications to your source code!  Damn cool if you ask
me.  So now, EE works in graphics mode 257 but I can't see any real
difference than mode 18 (other than a few bugs here and there).  If you
want any of this, just email me at xseal at harborside.com and I'd be happy
to show off what I've done.

--
                   _____         _____         _____
    ________      /\    \       /\    \       /\    \
   /   \    \    /  \____\     /  \____\     /  \____\
  /  _  \____\  /   / ___/_   /   /____/    /   / ___/_
 /  / \  |____|/   / /\____\ /    \    \   /   / /\____\
 \  \_/ /    / \   \/ / ___/_\     \    \  \   \/ / ___/_
  \    /____/   \    / /\    \\/\   \    \  \    / /\    \
   \   \    \    \   \/  \____\  \   \    \  \   \/  \____\
    \   \    \    \      /    /   \   \____\  \      /    /
     \   \____\    \    /    /     \  /    /   \    /    /
      \  /    /     \  /    /       \/____/     \  /    /
       \/____/       \/____/                     \/____/

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

Search



Quick Links

User menu

Not signed in.

Misc Menu