Jump to content
Sign in to follow this  
Guest Zoren

Displaying .bmp images within a panel???

Recommended Posts

Guest Zoren

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
Guest Matthias Lieberecht

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
Guest Zoren

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  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...