Jump to content


Photo
- - - - -

Changing Green Screen Attributes For Editbox


2 replies to this topic

#1 Richard Ton

Richard Ton

    Newbie

  • Members
  • Pip
  • 2 posts
  • Gender:Male

Posted 19 May 2015 - 01:04 PM

I would like to change the green screen foreground colour for an editbox based on some condition in logic.

Unfortunately, when I set the colour using editbox.ForeColor followed by an editbox.Refresh() it does not update the green screen attribute.

Is there a way to do this?

 

Thanks.



#2 GBabula

GBabula

    Member

  • Members
  • PipPip
  • 38 posts
  • Gender:Male
  • Location:Lyndhurst, NJ USA

Posted 19 May 2015 - 07:34 PM

You should be able to use the ATTRIBUTE(n)  command to do this, where n refers to a specific attribute (foreground and background color definition) in the display palette. Palette attributes 1-4 are system-defined, and 5 thru 10 are user defined. Check the PROIV documentation for more on this topic.



#3 Richard Ton

Richard Ton

    Newbie

  • Members
  • Pip
  • 2 posts
  • Gender:Male

Posted 21 May 2015 - 01:08 PM

Thanks for your help, GBabula





Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users