cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
hogi
Level XI

caption: blank

After running 

caption("my text");

sometimes the window is blank:

hogi_0-1691323336515.png

When I run the same code again, the cation text is visible.

 

Up to now I could not find an explanation when a caption text is displayed and when it's not.
Did anybody experience the same thing ?

2 ACCEPTED SOLUTIONS

Accepted Solutions
ErraticAttack
Level VI

Re: caption: blank

No idea if it's a similar RC, but I have an issue just like that when running dense code -- since JMP is single-threaded it doesn't allow for the GUI to update properly.

 

For my code, doing this works:

caption("my text"); Current Window() << Inval << Update Window;
Jordan

View solution in original post

Re: caption: blank

Another possible solution would be to add a "Wait(0)" statement after the caption code.

 

caption("my text");
Wait(0);
Duane Hayes

View solution in original post

5 REPLIES 5
ErraticAttack
Level VI

Re: caption: blank

No idea if it's a similar RC, but I have an issue just like that when running dense code -- since JMP is single-threaded it doesn't allow for the GUI to update properly.

 

For my code, doing this works:

caption("my text"); Current Window() << Inval << Update Window;
Jordan
hogi
Level XI

Re: caption: blank

Thanks, nice trick - seems to work.

Interesting that refreshing a window also refreshes the content of the caption.

 

The only drawback: one needs an open window for it to work.


Is there a similar command which also works if no windows are open?

ErraticAttack
Level VI

Re: caption: blank

Good question -- I've never ran JMP without at least one window open, so I'm not sure

Jordan
hogi
Level XI

Re: caption: blank

Same for me

But 5min after rolling out the bugfix I noticed, that you cannot take for grnted that a window is open on every system ...

 

 And I noticed that even with a few windows open - there is an issue
... if the current Jmp window is no "window" - which seems to be the case for the Home Window and the Window List.

Just install the attached AddIn and try to run  AddIn/Current Window() - first from a script, report or table window and then from the Home window.

 

Re: caption: blank

Another possible solution would be to add a "Wait(0)" statement after the caption code.

 

caption("my text");
Wait(0);
Duane Hayes