Visible  Width

Chapter 3: DataWindow Object Properties

VTextAlign

Description

The way text in a button is vertically aligned.

Applies to

Button controls

Syntax

PocketBuilder dot notation:

dw_control.Object.buttonname.VTextAlign

Describe and Modify argument:

"buttonname.VTextAlign { = ' value ' }"

Parameter

Description

buttonname

The name of the button for which you want to align text.

value

An integer indicating how the button text is horizontally aligned. Values are:

  • 0 — Center

  • 1 — Top

  • 2 — Bottom

  • 3 — Multiline

Usage


In the painter

Select the control and set the value in the Properties view, General tab, Vertical Alignment option.

Examples

Example 1

string setting

dw_1.Object.b_name.VTextAlign = "0"

Example 2

setting = dw_1.Describe("b_name.VTextAlign")

Example 3

dw_1.Modify("b_name.VTextAlign ='0'")





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

View this book as PDF