Subscribe Bookmark RSS Feed

Suppress Window Updates @ RunTime

abdulj

Community Trekker

Joined:

Jul 12, 2011

Hello

Does anyone know if it is possible to suppress window/table updates while a script is running? I have a program that creates and closes many tables very rapidly for about 5 seconds, and all these updates can be very jarring and distracting. Is there a way to prevent this?

thanks

1 REPLY
pmroz

Super User

Joined:

Jun 23, 2011

I call it the flashy thingy effect, from Men in Black (see neuralyzer). 

Anyway if you can, make as many tables invisible before operating on them.  If you have tabulations, create them with the invisible keyword so they're not visible either.

Failing that, you can always hide tables with show window(0), do your operations, and then make them reappear with show window(1).  Here's an example:

dt = New Table( "Flashy Thingy", Add Rows( 3 ),

      New Column( "Column 1", Character, Nominal, Set Values( {"a", "b", "c"} ) ));

wait(0);

// Make "invisible"

dt << show window(0);

wait(2);

// Redisplay table

dt << show window(1);