ParallelGraphics
Home  »  Developer Zone  »  Products  »  VrmlPad  »  References  »  Window
Up to References

Document 

Documents 

Entity 

Field 

Fields 

MFValue 

Node 

Nodes 

Proto 

Protos 

Range 

Route 

Routes 

SFColor 

SFRotation 

SFVec2f 

SFVec3f 

VrmlMatrix 

Window 


Subscribe to Newsletter
 


Google Searchsite search:

 

%(domain)s %(domain)s
Install Cortona VRML Client!

Outline 3D


Window

Window Object

 
Bar
 
hWnd
 
Top
 
Width
 
Documents
 
Left
 
Visible
 
Height
 
State
 
StatusText
 
Bar property, read/write, VpBarType.

Returns or sets the SceneTree/Resources/FileList bar state from the enum of type VpBarType.

Following are the possible values, which have the Long type:

vpBarNone = 0The bar is closed.
vpBarSceneTree = 1The bar is visible and Scene Tree pane is active.
vpBarResourceView = 2The bar is visible and Resource pane is active.
vpBarFileList = 3The bar is visible and File List pane is active.




 
Documents property, read-only, Objectv1.3

Returns a Documents object that represents the collection of all open documents. Each document in the collection is represented by a Document object.




 
Height property, read/write, Long.

Returns or sets the height of the application window.

The Height property gets or sets the distance in pixels between the top and bottom edge of the main application window.




 
hWnd property, read-only, Long.

Returns the handle (HWND) of the main application window.




 
Left property, read/write, Long.

Returns or sets the horizontal position of the application window.

The Left property gets or sets the distance in pixels between the left edge of the screen and the main application window.




 
State property, read/write, VpWindowState.

Gets or sets the state of the application window.

Can be one the following VpWindowState constants:

vpWindowStateNormal = 0,
vpWindowStateMaximized = 1, or
vpWindowStateMinimized = 2.




 
StatusText method ( Text As String, [Color] ).

Prints a text in the Status bar.

Text
A text string to be printed.

Color (Optional)
A Long that specifies the background color of the text.

The following VBScript example prints in red a number of shapes in the scene.

n = StdProtos("Shape").Instances.Count
Window.StatusText "There are " & n & " shapes in the scene", &h0040FF




 
Top property, read/write, Long.

Returns or sets the vertical position of the application window.

The Top property gets or sets the distance in pixels between the top edge of the screen and the main application window.




 
Visible property, read/write, Boolean.

True if the application window is visible.

The following Visual Basic example starts VrmlPad, opens an existing document and makes the VrmlPad main window visible.

Set doc = New VrmlPad.Document
doc.OpenFile "C:\My Scenes\Home.wrl"
doc.Window.Visible = True




 
Width property, read/write, Long.

Returns or sets the width of the application window.

The Width property gets or sets the distance in pixels between the left and right edge of the main application window.





Last updated: Fri, 21 Nov 2008
© 2000-2008 ParallelGraphics. All rights reserved. Terms of use.