02-10-2026, 05:23 PM
(02-10-2026, 05:05 PM)qbfans Wrote: @smcneil Also, may I ask the expert about the wiki explanation of _DISPLAYORDER? Does it mean at most one software image layer and two hardware image layers? Because when I tried to set hardware2, I got a syntax error.
All we have is two hardware layers -- _HARDWARE and _HARDWARE1. To be honest, I'm not certain what those extra parenthesis and [...] are all about in the wiki. Perhaps someone at one point at plans to expand to more hardware layers? If so, they haven't been implemented yet, as far as I know.
What we currently have available is:
_SOFTWARE -- the main screen which most people draw and print and write to and such.
_HARDWARE -- the first hardware screen which you can use as one layer. (I guess think of it like a 0-based array, if that helps?)
_HARDWARE1 -- the *second* hardware screen which is an independent layer from all others.
_GL -- the opengl screen which can only be used if you use SUB _GL and call it from there with the _gl commands.
So basically, without using GL, you have 3 layers to play around with, and displayorder lets you set them in whatever order you like for your programs, starting from the background layer to the foremost layer.
_SOFTWARE, _HARDWARE, _HARDWARE1 would place the _software layer on the bottom, then the _hardware layer on top, with the _hardware1 laying being the topmost layer. In the case of your example, the peach background would be on the software layer, the black circles on the hardware layer, and the red box on the hardware1 layer.
If you want to arrange your parts differently, just swap the display order so they stack as you would expect them to.

