WrapMode  Y

Chapter 3: Property Descriptions and Usage

X

Applies to

Controls, windows

Description

The X property specifies the X coordinate of an object or control in PowerBuilder units.

The X coordinate is the distance from the left edge of the window or custom user object. If the object is a main window or custom user object, the distance is relative to the screen. If it is not a main window, the distance is relative to the parent window.

Usage


In a painter

StepsTo set the X coordinate:

  1. Enter the desired X coordinate, in PowerBuilder units, in the X field of the Other tab page of the object’s Properties view, or drag and drop the control to the desired location.


In scripts

The X property takes an integer value. The following line sets the distance from the left edge of a window for a DataWindow control dw_1.

dw_1.X = 215

You can also set the X and Y properties of a control using the Move function.

It is illegal to move a maximized sheet or frame. Changing the X or Y property for a maximized window is ignored.





Copyright © 2004. Sybase Inc. All rights reserved. Y

View this book as PDF