HyperNext Studio

HyperNext Studio => General => Topic started by: Jeff on July 03, 2011, 11:20:57 PM

Title: Coloring text and fields using a button?
Post by: Jeff on July 03, 2011, 11: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.
Title: Re: Coloring text and fields using a button?
Post by: Malkom on July 05, 2011, 05: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.