maybe above idea can be implemented using hollywood class, a bit complicated but doable
probalby the "cleanest" way is just to use an icon to a button, icon is not actually "background color" but a big red square ,for example, can have similar eye impact to user
just an idea, for "workaround" ! i have see a few similar "editors", where they use a combined use of Arrows AND mouse, mostly for accuracy, But in your case maybe its a working workaround for movement "over the edge" i.e. user while hold rightmouse button moves your sq...
It's not really random. All buttons are chained in a linked list to the current BGPic and then this list is checked against mouse events in the order of creation of the buttons so buttons created first should trigger first. i would say its the opposite order the last created is the first triggered ...
acoring to manual of MakeButton() (check in Z-order ) the last created overlaps previous but this is guarandeed in layers
definitely works in way created thought even without layers, but will be guaranteed in future (?)
Shall i guess that its a kind of strategy top view game !?
I dont think any problem exist in recreating buttons
But if its agame style I would use a brush/sprite for "button" and check it onmouseup with Collision()