🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.epoch.misc
Article #1555

Lots of buttons

#1555
From: Glen Whitney
Date: Tue, 31 Mar 1992 18:04
38 lines
2480 bytes
I'm interested in using Epoch to display a colored map as a background 
to some text. I've been doing this by dividing each area on the map into lots
of horizontal segments, and then making a button of the proper color for each
of these segments, to get a rough, character-sized pixel map, something like:

   *******XXXXXXX
  **********XXXXXXX
  **Myland****XXXXXXXXXXX
  ***********XXXyourlandXXXX
  *********XXXXXXXXXXXXXX

where the *s and Xs represent different attributes (I'm using 3.2 as 
as the release of 4.0 was just a few days ago.) and the Myland and 
yourland represent example text.

   The map uses some few hundred of these segments, and takes fifteen
to twenty seconds to initially have the buttons created and drawn. The
map actually looks surprisingly good. 
     However, two difficulties have arisen:
   1. (the one you're expecting) After creating the map, whenever the
map screen
is current, Epoch is incredibly slow. I was warned this was a side effect of
lots of buttons.
   2. Typing into the buffer stretches and alters the segments, horribly
distorting the map. I ideally imagine the map as "the coloration of the
paper" the text is on, so that changing the buffer contents textwise won't
change the begin and end points in terms of character numbers (i.e., positions)
of the segments.

   Is there any way to acheive this effect with Epoch? Or at least any way to
speed up lots of buttons? The manual says that lots of buttons are slow because
all of the begin-points and end-points have to be checked for alteration after
every possible change to the buffer, but this is precisely the check I don't
need (and in fact don't want).  Does 4.0 offer any help on this issue?
Would anyone else be interested in an arbitrary color-patterned background
to a text screen?
      Thanks for any help,
             Glen Whitney
Technical Details
Message-ID: <1992Mar31.180413.24052@math.ucla.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!elroy.jpl.nasa.gov!ucla-cs!ucla-ma!deimos.math.ucla.edu!gwhitney

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fc7ee,a8606b00be9a36c7,start
X-Google-Attributes: gidfc7ee,public
X-Google-ArrivalTime: 1992-03-31 10:04:13 PST
Newsgroups: gnu.epoch.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!elroy.jpl.nasa.gov!ucla-cs!ucla-ma!deimos.math.ucla.edu!gwhitney
From: gwhitney@deimos.math.ucla.edu (Glen Whitney)
Subject: Lots of buttons
Message-ID: <1992Mar31.180413.24052@math.ucla.edu>
Sender: news@math.ucla.edu
Reply-To: gwhitney@deimos.math.ucla.edu (Glen Whitney)
Organization: UCLA, Mathematics Department
Date: Tue, 31 Mar 92 18:04:13 GMT
Lines: 39