简体   繁体   中英

Lazarus: stacking images, paint order

I want to design a simple game (lazarus 1.8.4) with an image as playing field and some figures (transparent images) over it, created on runtime. So typically more than one images are at the same position. How can I make sure, that the figures are above the playing field?

TControl has a function called BringToFront which will move the Control to the first position in the Z-Axis (the opposing function would be SendToBack ). As TImage is derived from TControl the function applies to TImage as well.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM