1. Portable Window Library
Jiri's tools reminded me of a project that I was working on a couple months
back - a portable window library. It's a very low level library, along the
lines of what's provided by Euphoria's DOS toolkit.
The Win32 version of the library is fairly complete, and a working X Window
prototype exists (it can create windows and draw lines). A DOS version was
planned, but I hadn't gotten around to coding it.
The library consists of about 30 difference routines to create and destroy
windows and render graphics and text. It also traps mouse, keyboard and
window events. There's a canvas-like structure, so double buffered graphics
is also supported.
Since the goal was to create a small library, I've tried to keep the feature
set at a usable minimum. I've also modeled the routines after low-level
calls available in the Win32 and X Window library, so there's not a lot of
fancy code.
Is there any interest in seeing this library completed? If so, I'll post the
code on my web page, along with an overview and some demos, so I can get
some feedback on it. If anyone wants to help complete it (or take the
project over), that would be appreciated as well.
Thanks!
-- David Cuny
2. Re: Portable Window Library
- Posted by Caballero Rojo <pampeano at ROCKETMAIL.COM>
Mar 06, 2000
-
Last edited Mar 07, 2000
I want it! =)
--
Best regards,
Caballero Rojo mailto:pampeano at rocketmail.com
Monday, March 06, 2000, 10:28:23 PM, you wrote:
CDD> Jiri's tools reminded me of a project that I was working on a couple months
CDD> back - a portable window library. It's a very low level library, along the
CDD> lines of what's provided by Euphoria's DOS toolkit.
CDD> The Win32 version of the library is fairly complete, and a working X Window
CDD> prototype exists (it can create windows and draw lines). A DOS version was
CDD> planned, but I hadn't gotten around to coding it.
CDD> The library consists of about 30 difference routines to create and destroy
CDD> windows and render graphics and text. It also traps mouse, keyboard and
CDD> window events. There's a canvas-like structure, so double buffered graphics
CDD> is also supported.
CDD> Since the goal was to create a small library, I've tried to keep the
feature
CDD> set at a usable minimum. I've also modeled the routines after low-level
CDD> calls available in the Win32 and X Window library, so there's not a lot of
CDD> fancy code.
CDD> Is there any interest in seeing this library completed? If so, I'll post
the
CDD> code on my web page, along with an overview and some demos, so I can get
CDD> some feedback on it. If anyone wants to help complete it (or take the
CDD> project over), that would be appreciated as well.
CDD> Thanks!
CDD> -- David Cuny
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
3. Re: Portable Window Library
- Posted by Brian Jackson <bjackson at 2FARGON.COM>
Mar 06, 2000
-
Last edited Mar 07, 2000
I'd love to see it! If it has enough support and people want to use it on
a large scale basis, I'd even try to write a cross-platform version of
EuDesigner for it.
Brian
On Mon, 6 Mar 2000 17:28:23 -0800, Cuny, David at DSS <David.Cuny at DSS.CA.GOV>
wrote:
>Jiri's tools reminded me of a project that I was working on a couple months
>back - a portable window library. It's a very low level library, along the
>lines of what's provided by Euphoria's DOS toolkit.
>
>The Win32 version of the library is fairly complete, and a working X Window
>prototype exists (it can create windows and draw lines). A DOS version was
>planned, but I hadn't gotten around to coding it.
>
>The library consists of about 30 difference routines to create and destroy
>windows and render graphics and text. It also traps mouse, keyboard and
>window events. There's a canvas-like structure, so double buffered graphics
>is also supported.
>
>Since the goal was to create a small library, I've tried to keep the
feature
>set at a usable minimum. I've also modeled the routines after low-level
>calls available in the Win32 and X Window library, so there's not a lot of
>fancy code.
>
>Is there any interest in seeing this library completed? If so, I'll post
the
>code on my web page, along with an overview and some demos, so I can get
>some feedback on it. If anyone wants to help complete it (or take the
>project over), that would be appreciated as well.
>
>Thanks!
>
>-- David Cuny
4. Re: Portable Window Library
Brian Jackson wrote:
> I'd love to see it! If it has enough support and
> people want to use it on a large scale basis, I'd
> even try to write a cross-platform version of
> EuDesigner for it.
I've uploaded the code to: http://www.lanset.com/dcuny/mwin.htm
There are two ZIP files. The Win32 code comes with a couple of demos. The
first demo creates an empty window; the second draws a bunch of fake, static
controls, and the third emulates a pushbutton. The X11 code runs on X
Windows, and doesn't support much more than creating a window and drawing
lines in it. There aren't even any demos included with it, although the code
exposes a lot of X11 routines.
There's also a table on my web page showing the correlation between the
mwLib routines and Win32/X11/Macintosh calls.
Let me know what you think.
Thanks!
-- David Cuny
5. Re: Portable Window Library
Thus spake "Cuny, David@DSS" on Mon, 6 Mar 2000:
>Is there any interest in seeing this library completed?
yes. yeS. yES. YES!
Zaph.
6. Re: Portable Window Library
"Zaphod Beeblebrox" wrote:
>>Is there any interest in seeing this library completed?
> yes. yeS. yES. YES!
Two heads are better than one.
Give me some feedback - are there routines missing from the library? Is the
suggested implementation acceptable? Does anyone want to take on the X11 or
DOS version?
Thanks!
-- David Cuny
7. Portable Window Library
Hello David,
I'll be glad if there's a DOS version around. =)
--
Best regards, ICQ Number: 3198249
Caballero Rojo mailto:pampeano at rocketmail.com
Wednesday, March 08, 2000, 5:31:10 AM, you wrote:
DC> Two heads are better than one.
DC> Give me some feedback - are there routines missing from the library? Is the
DC> suggested implementation acceptable? Does anyone want to take on the X11 or
DC> DOS version?
DC> Thanks!
DC> -- David Cuny
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
8. Re: Portable Window Library
On Wed, 8 Mar 2000 00:31:10 -0800, David Cuny <dcuny at LANSET.COM> wrote:
>Give me some feedback - are there routines missing from the library?
Yes DOS support. :)
9. Re: Portable Window Library
I want X Windows support - part of my scheme to reduce windoze to an
optional extra (please no philosophy on whether this is possible)
Daniel
--
Today's Proverb :
A capable wife is a crown for her husband, <BR>but a shameful one is like rot in
his bones (12v4)
Daniel Johnson Engineer, smartypants and clown
Jesus College, Cambridge all at a very reasonable price
dpj22 at cam.ac.uk
zeus.jesus.cam.ac.uk/~dpj22 talk dpj22 at jewish.jesus.cam.ac.uk
10. Portable Window Library
I've updated the DOS version of my portable window library. Features
include:
- pixmaps
- bitblt
- new demos
- bug fixes
It's complete enough to start coding the emulated controls. In fact, one of
the demos shows off an emulated pushbutton. You can download it at:
http://www.lanset.com/dcuny/download/mw_dos.zip
The page explaining the goals and features of the library (including a
screenshot of the DOS window manager in action) is at:
http://www.lanset.com/dcuny/mwin.htm
With the addition of Brecht Pynoo's KDE-themed library, that brings the
count of DOS-based windowing systems *currently* under development to three.
So many choices...
-- David Cuny
11. Portable Window Library
I've made some incremental progress getting the Win32 and DOS versions of my
portable window library reconciled. They now run the same demos. If anyone
is interested, the latest versions are at:
http://www.lanset.com/dcuny/mwin.htm
I haven't really made that much progress on the widgets library, though. I
got sidetracked into working on a clone of the Tk library before deciding
that wasn't really a useful route to go down.
I've been following the Microwindows Project, and it certainly making good
progress. It's an open source GUI that runs on Linux, DOS, and other
environments, including handhelds. They are in the process of porting Opera,
Kaffe, GDK/GTK+ and FLTK. GTK+ running under DOS would be *very* slick.
-- David Cuny
12. Re: Portable Window Library
- Posted by Prasanta Chakraborty <prasanta at WRITEME.COM>
Apr 11, 2000
-
Last edited Apr 12, 2000
David,
Thanks for providing the link to Microgui. I have seen the demos, it looks
interesting. Can we use Microgui with EU?
Reagrds,
Prasanta.
13. Re: Portable Window Library
- Posted by David Cuny <dcuny at LANSET.COM>
Apr 11, 2000
-
Last edited Apr 12, 2000
Prasanta wrote:
> Can we use Microgui with EU?
No, not yet. There's currently no way to dynamically link to DOS libraries
in Euphoria. Perhaps at some point Robert might add such a feature. If
enough people bug Robert, he might be convinced to add an additional library
to Euphoria. At this point, MicroGUI is still too incomplete to be really
useful. If the GTK+ or FLTK wrappers are completed, it could be *really*
useful.
Another option is to link the library with Pete's PEU interpreter. For
example, he's already got a version of PEU that's linked to the excellent
Allegro library.
Another very cool library is SciTech's MGL library, at:
http://www.scitechsoft.com/dp_mgl.html
The main downside of MGL was the immensely confusing license; it's since
been revised so that the library could probably be included in Euphoria.
Another disincentive against Robert linking to one of these libraries is
that it would make the graphics interface much more complex. At this point,
there's a fairly elegant mapping between pixel/get_pixel and sequences.
Adding a complex library would mean greatly increasing the graphics API,
which is currently just a handful of routines.
-- David Cuny