Minimize workfile window

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt

tvonbrasch
Posts: 416
Joined: Fri Apr 15, 2011 5:35 am

Minimize workfile window

Postby tvonbrasch » Fri Sep 13, 2019 7:52 am

Hi

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

tvonbrasch
Posts: 416
Joined: Fri Apr 15, 2011 5:35 am

Re: Minimize workfile window

Postby tvonbrasch » Sat Sep 14, 2019 11:10 am

It would be great if one could programmatically minimize and maximize all eviews objects
Thomas

EViews Steve
EViews Developer
Posts: 569
Joined: Tue Sep 16, 2008 3:00 pm
Location: Irvine, CA

Re: Minimize workfile window

Postby EViews Steve » Sat Sep 14, 2019 4:25 pm

I'm looking into it.

tvonbrasch
Posts: 416
Joined: Fri Apr 15, 2011 5:35 am

Re: Minimize workfile window

Postby tvonbrasch » Mon Sep 16, 2019 10:28 am

That's great news!

tvonbrasch
Posts: 416
Joined: Fri Apr 15, 2011 5:35 am

Re: Minimize workfile window

Postby tvonbrasch » Thu Nov 07, 2019 1:08 am

Hi Steve

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

EViews Steve
EViews Developer
Posts: 569
Joined: Tue Sep 16, 2008 3:00 pm
Location: Irvine, CA

Re: Minimize workfile window

Postby EViews Steve » Thu Nov 07, 2019 10:46 am

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

tvonbrasch
Posts: 416
Joined: Fri Apr 15, 2011 5:35 am

Re: Minimize workfile window

Postby tvonbrasch » Thu Nov 07, 2019 3:07 pm

great Steve, thanks, it is highly appreciated!
Thomas

tvonbrasch
Posts: 416
Joined: Fri Apr 15, 2011 5:35 am

Re: Minimize workfile window

Postby tvonbrasch » Sat Nov 16, 2019 2:06 am

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 113 times

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 12317
Joined: Tue Sep 16, 2008 5:38 pm

Re: Minimize workfile window

Postby EViews Gareth » Sat Nov 16, 2019 10:06 am

Use the @builddate function
Follow us on Twitter @IHSEViews

tvonbrasch
Posts: 416
Joined: Fri Apr 15, 2011 5:35 am

Re: Minimize workfile window

Postby tvonbrasch » Sun Nov 17, 2019 1:13 am

great, thanks!
T


Return to “Programming”

Who is online

Users browsing this forum: Google [Bot] and 6 guests