Display manager macro Colours property

For general Flowcode discussion that does not belong in the other sections.
Post Reply
Amagg
Posts: 1
http://meble-kuchenne.info.pl
Joined: Sun Jun 02, 2024 7:54 pm

Flowcode v11 Display manager macro Colours property

Post 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]

BenR
Matrix Staff
Posts: 2132
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 568 times
Been thanked: 752 times

Re: Display manager macro Colours property

Post 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.

Post Reply