🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #3123

Text-windows support --- care to write one? <grin>

#3123
From: David Priest
Date: Thu, 11 Jan 1996 18:22
45 lines
3140 bytes
I'm quite taken with Modula-2; it really works about the way my brain 
thinks when programming.  Much better than Turbo Pascal, which has a 
clumsy definition/implementation model.  I play around using FST Modula-2 
(I don't program much at all, and it's usually pretty frivolous stuff) 
and love the way that objects have been implemented in it.

Anyway, my need now is for a decent text-based windowing system.  I've 
written OO code that auto-detects video hardware and then handles "virtual 
windows" quite nicely, with extremely quick screen updates and allowing 
"buried" windows to update without botching the overlying windows.  It 
was pretty slick, I* think.

But as soon as I tried to go beyond that, I bogged down.  I want to 
support frames, titles, buttons, scrollbars, sizing, moving, etc.  And 
then I got really ambitious, and figured the ideal system would be a 
background multitasking one that supported the mouse!  Why, you could 
define a window object, point it at a block of allocated memory 
containing the text, and let this almost-standalone unit take care of the 
scrolling while the main program got on with more important things!  And, 
hey, if the user clicks on something that the unit can't deal with 
(perhaps an "OK" button?) it could send a signal to the main program, and 
let it take care of it.   This sort of gets into a hypercard type of 
environment, really.  And, hey, why not allow a resource file to contain 
the hard data -- most dialogues, menus, etc are static; one could have a 
support proggie to lay out these resources, then save them to the file.  
That way the main proggie doesn't need to sweat those details!
 
Well, as you can see, I'm way beyond mere casual hacking with these 
ideas.  I'm pretty sure I can implement them, though it'd take me 
forever.  The biggest stumbling block for me is actually defining the 
object outline... I don't know how to best describe the implementation!

Anyway, the short and long of it is that if someone would like to work 
with me on this, I'm more than open to the idea!  I'd actually like to 
see this progress to the point that FST-Modula2 can become an integrated 
development environment a la' Turbo Pascal... but with a smarter editor, 
that "knows" how to title variables intelligently (read Code Complete by 
Steve McConnell), knows when you've made the .def and .mod incompatible, 
etc.  I think it would _not_ be difficult to develop a freeware Modula-2 
cross-platform programming system that includes enough IDE and library 
support to _really_ attract attention.

EMail me at priest@sfu.ca if you have any comments, or post them here.  
Perhaps some real programmers could get involved, and we'll come up with 
something of quality.  :-)
Technical Details
Message-ID: <4d3kh6$5l8@morgoth.sfu.ca>
Path: arc1-ca.pugleaf.net!news.sfu.ca!priest

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.sfu.ca!priest
From: priest@news.sfu.ca (David Priest)
Newsgroups: comp.lang.modula2
Subject: Text-windows support --- care to write one? <grin>
Date: 11 Jan 1996 18:22:30 GMT
Organization: Simon Fraser University
Message-ID: <4d3kh6$5l8@morgoth.sfu.ca>
NNTP-Posting-Host: fraser.sfu.ca
X-Newsreader: NN version 6.5.0 #5 (NOV)