ShowMainFrameWindow

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Commands Reference > CADSystem >

ShowMainFrameWindow

available from build: 20021108

Description

It controls the display state of the main application frame window, the one that is currently hosting DBWorks.

Syntax

call DBWShell("ShowMainFrameWindow mode")

Parameters

mode

0:minimize
1:restore
2:maximize
3:hide
4:show

Remarks

Useful for applications using the DBWorks Standalone COM Server, to hide the small frame window normally positioned on the top-left of the screen.

Example

Sub Main()

 DBWShell("ShowMainFrameWindow 0")
 DBWMsgBox("Minimized")
 DBWShell("ShowMainFrameWindow 1")
 DBWMsgBox("Restored")
 DBWShell("ShowMainFrameWindow 2")
 DBWMsgBox("Maximized")
 DBWShell("ShowMainFrameWindow 1")
 DBWMsgBox("Restored")
 DBWShell("ShowMainFrameWindow 3")
 DBWMsgBox("Hidden")
 DBWShell("ShowMainFrameWindow 4")
 DBWMsgBox("Shown")
End Sub