This sounds like a simple objective but hard to achieve in practise unless I'm missing something.
I can easily place a graphics object on a page, and set its colour to any RGB value, at design time. I can even pre-configure several colour options and use an expression to pick one of them at runtime,
But how can I set an arbitrary colour at runtime?
The use case is simple: I need to show the colour of some lighting. The colour can change at runtime to any RGB combination (with R,G,B each being 8-bit UINTs). How can I show that colour on a graphics page? (Consider a slider each for R, G & B, and a box that shows the colour as the sliders are moved.)
The best I have come up with so far is to create my own ActiveX object to do it, although I'd really prefer not to do it outside Citect and especially not with something like ActiveX (it's 2022!).
I'm having a discussion with support about it and figured it might be useful to see if anyone else has any clever ideas I haven't thought of!
In case it's relevant I need to show anything up to about 50 different colours on the same page simultaneously, and I need the resulting object to behave like other graphics objects (I need to be able to hide it, or to click on it to trigger a Cicode function, etc).