Page 1 of 1

Minimize workfile window

Posted: Fri Sep 13, 2019 7:52 am
by tvonbrasch
Hi

Is there a way to programmatically minimize the workfile window? If not, would it be possible to add this function?
Thomas

Re: Minimize workfile window

Posted: Sat Sep 14, 2019 11:10 am
by tvonbrasch
It would be great if one could programmatically minimize and maximize all eviews objects
Thomas

Re: Minimize workfile window

Posted: Sat Sep 14, 2019 4:25 pm
by EViews Steve
I'm looking into it.

Re: Minimize workfile window

Posted: Mon Sep 16, 2019 10:28 am
by tvonbrasch
That's great news!

Re: Minimize workfile window

Posted: Thu Nov 07, 2019 1:08 am
by tvonbrasch
Hi Steve

Any progress on how to programatically minimize and maximize all eviews objects?
Thomas

Re: Minimize workfile window

Posted: Thu Nov 07, 2019 10:46 am
by EViews Steve
Yes, the following changes will be in the next patch for EViews 10 & 11...

New Commands:
    WINMAXIMIZE
    WINMINIMIZE
    WINNORMAL
    WINRESTORE
    WINCLOSE
These new commands basically behave like the current CLOSE command, taking all the same arguments such as @all, @objects, @prg, @db, and @wf. It can also take a named window.

Note: If multiple windows have the same name, all of them will be affected.

Also, the WINCLOSE command was created just for completeness. It just calls CLOSE.

Updated SHOW command:
Since it would be a bit wordy to call SHOW, and then WINMAXIMIZE to display a series in maximized view, I added some new options to the SHOW command to do it all in one step:

    SHOW(max|min|normal|restore) ..argument(s)...
When no option is specified, if the specified object is already open & minimized, SHOW will now restore the window to it's previous state
max option makes the window become maximized
min option makes the window become minimized
normal option makes the window become normally sized (neither maximized nor minimized) from any current state
restore option makes a minimized window revert back to previous state, or a maximized window back to normal, or does nothing if window is already normal

Note: the SHOW command still doesn't work on workfile windows.

Steve

Re: Minimize workfile window

Posted: Thu Nov 07, 2019 3:07 pm
by tvonbrasch
great Steve, thanks, it is highly appreciated!
Thomas

Re: Minimize workfile window

Posted: Sat Nov 16, 2019 2:06 am
by tvonbrasch
How can I include these new commands in an addin so that they do not cause an error if a user has not updated EViews yet? I tried setmaxerrs, but that did not help (see picture below)
Thomas


winnormal.PNG
winnormal.PNG (129.51 KiB) Viewed 4231 times

Re: Minimize workfile window

Posted: Sat Nov 16, 2019 10:06 am
by EViews Gareth
Use the @builddate function

Re: Minimize workfile window

Posted: Sun Nov 17, 2019 1:13 am
by tvonbrasch
great, thanks!
T