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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Minimise Origin doc with -m command

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
peter.cook Posted - 09/07/2004 : 06:04:18 AM
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

2   L A T E S T    R E P L I E S    (Newest First)
peter.cook Posted - 09/08/2004 : 03:53:54 AM
Thanks for the info CP,

Cheers,

Pete

cpyang Posted - 09/07/2004 : 1:50:16 PM
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



The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000