jordi
Full Member
A simple solution is the smarter one.
Posts: 106
|
Post by jordi on Nov 30, 2020 10:59:56 GMT -5
Hi,
I see we can use print #handle, "backcolor 0 127 200" to specify a custom color for graphic boxes.
I have a program that uses a window popup type, with graphic boxes to draw all the controls. In those graphic boxes, I can set a custom color.
But the window itself seems to only accept the 16 predefined colors.
Can I use RGB on a window?
If not, if I fill it all with a graphic box of the same size, how to do so other graphic boxes appear on top of it (buttons etc need to be on top of it).
Thanks.
|
|
|
Post by Rod on Nov 30, 2020 14:51:33 GMT -5
There is a Z order, so what you create first is at the bottom and last at the top. But multiple graphicboxes are complex. The better way is to have one graphicbox and simply draw in that. No need for multiple graphicboxes. Use the xy position to decide what has been pressed.
|
|
jordi
Full Member
A simple solution is the smarter one.
Posts: 106
|
Post by jordi on Nov 30, 2020 15:02:18 GMT -5
There is a Z order, so what you create first is at the bottom and last at the top. But multiple graphicboxes are complex. The better way is to have one graphicbox and simply draw in that. No need for multiple graphicboxes. Use the xy position to decide what has been pressed. Very good idea! Thanks Rod!
|
|