Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

DXmCSTextXYToPos(3X)  —  Subroutines

Digital

NAME

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

SYNOPSIS

DXmCSTextPosition DXmCSTextXYToPos(widget, x, y)
          Widget  widget;
          Position x;
          Position y;

DESCRIPTION

The DXmCSTextXYToPos routine returns an integer that identifies the position in the text of the character that is nearest to a specified x and y position. 

Arguments

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

xThe x coordinate relative to the upper left corner of the widget. 

yThe y coordinate relative to the upper left corner of the widget. 

RETURN VALUES

An integer that identifies the position of the character in the text. This integer represents the number of characters from the beginning of the text buffer, with 0 indicating the position of the first character. 

RELATED INFORMATION

DXmCSTextPosToXY. 

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