Resizing Windows
Functions Introduced:
The function ProWindowSizeGet() returns the size of the Creo Parametric window including the User Interface border.
The function ProGraphicWindowSizeGet() returns the size of the Creo Parametric graphics window without the border. If the window occupies the whole screen. the window size is returned as 1. If the screen is 1024 pixels wide and the window is 512 pixels, the width will be returned as 0.5.
The function ProWindowPixelOutlineGet() returns the outline of the Creo Parametric window in pixels. The outline is the height and width of the graphic area.
The function ProWindowCoordinatePixelGet() converts the Windows coordinates received through the input argument point into Pixel coordinates. The input arguments are as follows:
window_id—Valid window identifier.
point—Window space 3D coordinates given by ProArray of the Pro3dPnt object.
The output argument pixelSpaceCoord is the 2D pixel coordinates in integers and is returned by a ProArray of the Pro2dPnt object.
¿Fue esto útil?