The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Minimise Origin doc with -m command
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

peter.cook

UK
356 Posts

Posted - 09/07/2004 :  06:04:18 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5 SR4
Operating System: Win 2000

Hi,

After using doc -m 0 to minimise Origin I found (just gave it a go!) I need doc -m 3 to restore Origin application to maximised view.
What should be happening here (no details in documentation).

I find :

doc -m 0 minimises Origin keeping script window in view
doc -m 1 (as shown in examples) results in a reduced origin application.
doc -m 2 minimises origin and script window
doc -m 3 maximises origin
doc -m 4 - as doc -m 1?

Any comment?

Cheers,

pete

cpyang

USA
1407 Posts

Posted - 09/07/2004 :  1:50:16 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
This was implemented 2/21/2003 tracker 3684.
Basically, the value after -m is passed into windows API function ShowWindow, with the following copied from winuser.h

#define SW_HIDE 0
#define SW_SHOWNORMAL 1
#define SW_NORMAL 1
#define SW_SHOWMINIMIZED 2
#define SW_SHOWMAXIMIZED 3
#define SW_MAXIMIZE 3
#define SW_SHOWNOACTIVATE 4
#define SW_SHOW 5
#define SW_MINIMIZE 6
#define SW_SHOWMINNOACTIVE 7
#define SW_SHOWNA 8
#define SW_RESTORE 9
#define SW_SHOWDEFAULT 10
#define SW_FORCEMINIMIZE 11
#define SW_MAX 11


You can search any of these macros on google and should get to microsoft MSDN documentation for detailed explanations.

CP


Go to Top of Page

peter.cook

UK
356 Posts

Posted - 09/08/2004 :  03:53:54 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks for the info CP,

Cheers,

Pete

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000