B4J Question Confirm button in for next loop...

aidymp

Well-Known Member
Licensed User
Longtime User
Hi i have a for next loop,

I know i could do this with a message box but i would prefer to use the existing GUI buttons i have in place.

my loop searches for some values, and I would like the user to either confirm or decline the suggested change to the string.

Im not sure how I would do this?

Maybe a Do While Loop and change a value when either button is pressed?

Or is there another way?

Thanks

Aidy
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

aidymp

Well-Known Member
Licensed User
Longtime User
you cannot hold the mainthread.

Hmmm, why are the simple things so hard! lol

So im going to have to use a message box? it will be quite distracting though, as Im displaying two lines of text one the original, and one the suggested change. I expect there to be about 50-/+ changes just displaying the fields and a change or ignore button. its an automated config file updater, and although my code works automatically, the amount of different configurations flying about I don't want to wreck someone's config files. So this simple yes no option would be ideal.

How else could this be achieved?

Thanks

Aidy
 
Upvote 0

rwblinn

Well-Known Member
Licensed User
Longtime User
Just a Thought:
Another consideration based on using modal dialogs, is to use a customized listview with checkboxes which is populated by a settingsmap stored in a file.

See attached example project.
 

Attachments

  • ListViewWithCheckboxes.zip
    4.2 KB · Views: 190
Upvote 0
Top