- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
caption: blank
After running
caption("my text");
sometimes the window is blank:
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 ?
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: caption: blank
Another possible solution would be to add a "Wait(0)" statement after the caption code.
caption("my text"); Wait(0);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: caption: blank
Good question -- I've never ran JMP without at least one window open, so I'm not sure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: caption: blank
Another possible solution would be to add a "Wait(0)" statement after the caption code.
caption("my text"); Wait(0);