Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

DXmCSTextPosToXY(3X)  —  Subroutines

Digital

NAME

DXmCSTextPosToXY − Retrieves (returns) the x and y position of a specified character in the text. 

SYNOPSIS

Boolean DXmCSTextPosToXY(widget, position, x, y)
     Widget       widget;
     DXmCSTextPosition position;
     Position      ∗x;
     Position      ∗y;

DESCRIPTION

The DXmCSTextPosToXY routine converts the logical position of a specified character in the text to the corresponding x and y coordinates. 

Arguments

widgetThe identifier (widget ID) of the compound string text widget. 

positionSpecifies the position in the text of the character for which the x and y coordinates will be returned. 

xA pointer to the x coordinate relative to the upper left corner of the widget. (Valid only when the routine returns True.) 

yA pointer to the y coordinate relative to the upper left corner of the widget. (Valid only when the routine returns True.) 

RETURN VALUES

A Boolean function that, when True, returns the x and y position of the character in text. When False, no x and y position is returned. 

RELATED INFORMATION

DXmCSTextXYToPos. 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026