Salesforce

CWidth (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

CWidth (Magic xpa 4.x)

Returns the position on the x-axis that represents the width of a specified control or the last parked control.

Syntax:

CWidth(control name,generation)

Parameters:

control name: The name of the control. If you specify an empty string (''), the last parked control will be used.

generation: A number that represents the task's hierarchic position in the runtime task tree. 0 represents the current task, 1 its immediate ancestor, and so on.

Returns:

Position in units of measurement

NOTE: CWidth will always return the original position (at 100%) of the control irrespective of its scaled size. Since version: 4.6

Platform specific:

This function is not supported for mobile devices.

See also:

The Online and Rich Client Samples projects (program IF01 and RIF01)

Reference
Attachment 
Attachment