Constants - Publication Constants

Top  Previous  Next

These constants are related to application window of your project. You can retrieve various window sizes, position and check if project window is minimized.

PubX()

returns X (horizontal) position of project's window in pixels as an integer value

ConstantPubX

Script example:

Message("Project window X position: ","PubX()")

 

PubY()

returns Y (vertical) position of project's window in pixels as an integer value

ConstantPubY

Script example:

Message("Project window Y position: ","PubY()")

 

PubWidth()

returns width of project's window in pixels (with border) as an integer value

ConstantScreenPubWidth

Script example:

Message("Project window width + border is: ","PubWidth()")

 

PubHeight()

returns height of project's window in pixels (with border & title) as an integer value

ConstantScreenPubHeight

Script example:

Message("Project window height + border and title is: ","PubHeight()")

 

ClientWidth()

returns width of project's window (workarea) in pixels (without border) as an integer value

ConstantScreenWinWidth

Script example:

Message("Workarea width is: ","ClientWidth()")

 

ClientHeight()

returns height of project's window (workarea) in pixels (with border & title) as an integer value

ConstantScreenWinHeight

Script example:

Message("Workarea height: ","ClientHeight()")

 

IsMinimized()

this constant will check if application window of your project is minimized.

Integer value is returned, having one of two available states:

1 = project window is minimized

0 = project window is not minimized

Script example:

Message("Project window status: ","IsMinimized()")

 

IsMaximized()

this constant will check if application window of your project is maximized.

Integer value is returned, having one of two available states:

1 = project window is maximized

0 = project window is not maximized

Script example:

Message("Project window status: ","IsMaximized()")