Re: text_gui yet again

new topic     » goto parent     » topic index » view thread      » older message » newer message

The Rev. Ferlin Scarborough wrote:

>  Seems I got a little ambitious and made multiple changes
>to the EE editor at one time.  Now when I use it in Graphical Mode
>it works fine, but when I use it in Text Mode the letters are
>invisible, even when i Type it in.  Any Ideas?

I still suspect the color codes. Another possibility is that the =
character is somehow being stomped on and replaced by a non-printable, =
but that's *very* doubtful.

Why not hard code the color values in the display routine? To check the =
SLE (the easier of the two), go into XLE.E and place your own value into =
'color' on line 552 of the routine draw_sle(), and add something like =
this:

   -- color
   if sle[SIM] then
      color =3D {OF_DISABLED[1],OF_DIALOG[2]}
   else
      color =3D OF_DIALOG
   end if

  -- add this
  color =3D {BLACK, WHITE}

You can do something similar in the draw_mle_item() code. You could also =
had done something like:

   -- color
   if sle[SIM] then
      color =3D {OF_DISABLED[1],OF_DIALOG[2]}
   else
      color =3D OF_DIALOG
   end if

  -- add this instead
  position( 1, 1 )
  ? color

To actually see in real time what the values are.

Another test is to add a line such as this on line 689 of draw_sle():

      put_colors( OF_DIALOG, right_seq )
  =20
   end if

   -- add this
   position( 1, 1 )
   puts( 1, outText )

   -- position cursor
   position( sle[ROW] ...

So you can see the value of the SLE as you type data into it.

These should be enough to get you on the right track.

Hope this helps!

-- David Cuny

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu