Page 1 of 1

Display manager macro Colours property

Posted: Thu Feb 12, 2026 8:42 pm
by Amagg
Hi,
Could you please give me an example of how to fill out this Colours property present in several Display Manager macros ( like CreateObject ).
I have not been successful and I get Syntax error all the time.

BYTE Colours
Byte array containing FgColour RGB [0-2], Bg Colour RGB [3-5], Text Colour RGB [6-8]

Re: Display manager macro Colours property

Posted: Mon Feb 16, 2026 3:10 pm
by BenR
Hello,

If your using the display creator components on the scene then you don't have to manually call CreateObject / CreateWidget.

Some info here on this. https://www.flowcode.co.uk/wiki/index.p ... ay_Creator

If you still want to call those functions yourself then you can do so by providing a byte array.

Create a Byte variable with this name Colours[9].

Then in a calculation you can assign the colours.

Code: Select all

//Foreground = Red
Colours[0] = 255
Colours[1] = 0
Colours[2] = 0

//Background = Green
Colours[3] = 0
Colours[4] = 255
Colours[5] = 0

//Text = Blue
Colours[6] = 0
Colours[7] = 0
Colours[8] = 255
Finally simply pass Colours as the parameter to the CreateObject function.