TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Rob Basler
from: Dean Roddey
date: 1994-09-23 05:07:42
subject: I need info

Thanks Rob for your msg about I need info, on 19 09-19-1994

You could basically just write a small set of function that
access a 4K buffer in memory (an 80x25 buffer with char/attr
pairs) as thow it were a text mode buffer. Then you would just
need to provide a refresh function that would be called from the
WM_PAINT message. It would calculate the cells covered by the
invalidated area, then translate the information in the pseudo
buffer and convert them to very simple GPI calls.

Of course, the functions that you write to manipulate the video
buffer would also need to write to the presentation space as you
made modifications, otherwise output would not occur until the
window was invalidated. A semaphore could be used to control those
times when a write to the buffer and an invalidation event occur
simultaneously.

All of this is pretty academic anyway since you can get the same
thing much easier by the VIO API, but it is kind of fun sometimes
to think about how you do something like that.

A better option would be to just go PM althogether and get it
over with. The VIO interface is dragged along with each version by
greater and greater effort. It will be dropped before too much
longer, although I think now that they have been badgered into
providing it in Workplace OS/2.

___
 X KWQ/2 1.2b X If at first you don't succeed, put it out for beta test (KWQ Beta

--- Maximus/2 2.01wb

* Origin: Fernwood - your source for OS/2 files! (1:141/209)
SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413
SEEN-BY: 711/430 807 808 809 934 942 712/353 623 713/888 800/1
@PATH: 141/209 270/101 396/1 3615/50 229/2 12/2442 711/409 54/54 711/808 809
@PATH: 711/934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.