01-07-2023, 01:55 PM
(01-07-2023, 06:29 AM)mnrvovrfc Wrote: Be careful when using "_DISPLAY". Don't forget that after showing a lot of stuff on screen, such as doing animations and while it's highly important to get the attention of the user using your program, you place "_AUTODISPLAY". Otherwise some things aren't going to be displayed which is bothersome. The first "_DISPLAY" statement encountered in the code automatically switches to "update only when I'm asked to, not when the system asks me to". So it's easy to forget to change it back to "_AUTODISPLAY".
In portable GUI library routines I like using:
IF NOT _AUTODISPLAY THEN _DISPLAY
Taking advantage of the function aspect of _AUTODISPLAY to cover both contingencies that could occur in the main code.
DO: LOOP: DO: LOOP
sha_na_na_na_na_na_na_na_na_na:
sha_na_na_na_na_na_na_na_na_na: