Author Topic: Coloring text and fields using a button?  (Read 1761 times)

Jeff

  • Newbie
  • *
  • Posts: 33
Coloring text and fields using a button?
« on: July 03, 2011, 10:20:57 PM »
When I preview or run a project from the HyperNext creator the field color is usually like Light Yellow and the text is black.

How do you color the text and color the fields using a button?

For example, changing the field color to black and changing the text color to white by clicking a button.

Thank you.
« Last Edit: January 01, 1970, 12:00:00 AM by Guest »

Malkom

  • Administrator
  • Newbie
  • *****
  • Posts: 395
  • Here to help you
Re: Coloring text and fields using a button?
« Reply #1 on: July 05, 2011, 04:30:56 AM »
Quote from: "Jeff"
When I preview or run a project from the HyperNext creator the field color is usually like Light Yellow and the text is black.

How do you color the text and color the fields using a button?

For example, changing the field color to black and changing the text color to white by clicking a button.

Thank you.

Just use the FieldPaperColor and FieldTextColor commands respectively:

Code: [Select]
@ field 5 set paper to color black
FieldPaperColor(5,0,0,0)

@ field 5 set text to white
FieldTextColor(5,255,255,255)


The in-built help lists these field commands under the section Field Control.
This help can be accessed  via the Guide menu.
« Last Edit: January 01, 1970, 12:00:00 AM by Guest »
I am sorry but I do not have time to answer questions by PM or email.
If you post your questions in this forum then it might help others.

 

anything