Sign in to follow this  
Guest Zoren

Displaying .bmp images within a panel???

Recommended Posts

Hi,I want to display various .bmp images within my 2D panel. What I would like is to be able to click on the image and have the next one in sequence load. I have about 10 .bmp images that I would like to be able to click thru.I am just learning XML and can do some basic stuff, but haven't figured out the coding to make the above happen.Anyone have a suggestion?Zoren

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Hi Zoren,This is absolutely no problem. Here's a small example with 5 Bitmaps:(L:Display Bitmap, enum)(L:Display Bitmap, enum) ++ d 4 > if{ 0 } (>L:Display Bitmap, enum)The click code "++ d 4 > if{ 0 }" sets the variable (L:Display Bitmap, enum) back to enum 0 (=Bitmap1.bmp) when the last one in row (L:Display Bitmap, enum) 4 (=Bitmap5.bmp) is arrived and starts again with the first Bitmap.Best RegardsMatthias

Share this post


Link to post
Share on other sites

Thanks a lot. I knew someone here would find an easy answer.Zoren

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this