Hi everyone. I'm using PB/Win 8. I have an application that first creates about 100 small bitmap images, then adds them to a DIALOG as CONTROLs (clickable buttons). The user can add new CONTROLS (clickable buttons), but when this happens, I want to refresh the dialog screen because the button images need to be in a re-sorted order.
The question: what's the best technique to refresh the DIALOG? Use DIALOG END and re-create it? Or use GRAPHICS to overwrite the screen and re-draw the image buttons? If I re-draw the buttons, will there be an issue of using CONTROL ADD with the same id# more than once?
I'm reluctant to use DIALOG END because it would be triggered from deep inside a CALLBACK function, but the main DIALOG SHOW statement is the last line way up in PBMAIN(). It would take some work to loop back to it.
Thanks.
Christopher
The question: what's the best technique to refresh the DIALOG? Use DIALOG END and re-create it? Or use GRAPHICS to overwrite the screen and re-draw the image buttons? If I re-draw the buttons, will there be an issue of using CONTROL ADD with the same id# more than once?
I'm reluctant to use DIALOG END because it would be triggered from deep inside a CALLBACK function, but the main DIALOG SHOW statement is the last line way up in PBMAIN(). It would take some work to loop back to it.
Thanks.
Christopher
Comment