- Print
- PDF
How Do I Change the Color of Objects within a Lasernet Form?
Lasernet has a number of different methods for changing the color of objects in the Forms Editor.
Default Colors in Lasernet
Lasernet uses five default colors: red, green, blue, white, and black. However, HEX color codes can be used to allow for a greater range of colors. For example, a light orange using the hex code #fadda2.
Amending the Font Color
The text color in rearranges and text boxes can be easily changed in the text box properties.
To change the text color, follow these steps:
Double-click the text to open the object properties window and select the Font tab.
Click the Color button.

Another window will appear, which allows you to customize the text color.

Add a Border and/or Background to Text
Within the Border tab, there is a Background and border section. To add a border and/or background, follow these steps:
Open the Border tab.
There are two checkboxes:
Border: To set the border color, the thickness of the line, the margin, and on what sides of the rearrange the line will appear.
Background: To select and enable the background color for the text.

Edit the border thickness, the location, its margin, and the background color.
Once you are happy with the settings, click Ok.
Amending the Color of a Rearrange via Scripting
To change the color of a rearrange, follow these steps:
Double-click the rearrange, open the Objects tab, and enter an Input object name in the text box.
Select the Script checkbox which activates the text box in the bottom right-hand corner where the script text can be written.

//To set the text colour (To use hex replace red with the hex code i.e. 0xFF0000 is red).
CurrentRearrange.color = red;
//To set the background colour.
CurrentOutputRearrange.backgroundColor = blue;
//To set the text box border colour.
CurrentOutputRearrange.borderColor = red;