Custom Message Box, question 2...

DevBaby

Active Member
Licensed User
Longtime User
I have a series of messages that I want to display to the user with an [Continue] button, once the user reads the message and hits [Continue] button, then the next message appears.

I am using Panels to display the custom messages with pictures etc. However, I need the code to pause and wait for the [Continue] button event to fire off the next message.

Could I create a loop such as below…

Dim tmpContinue as Boolean

While tmpContinue = False
DoEvents​
Loop

Would this work and then once the user clicks the [Continue] Button on the panel, that event changes the “tmpContinue = TRUE, and the code moves forward? Then I just keep resetting the variable for each message and run the loop.
 

Yafuhenk

Active Member
Licensed User
Longtime User
Hi,

Maybe I misunderstand you question but why don't you use something like this:
B4X:
Msgbox2("This is the message", "This is the title", "OK", "", "", LoadBitmap(File.DirAssets, "picture.png"))

Henk
 
Upvote 0
Top