AccessibleRole

Applies to

Windows and controls that inherit from DragObject

Description

A description of the kind of user interface element that the control is, for use by accessibility tools such as readers for visually impaired users. The description is a member of the AccessibleRole enumerated variable. The default role is defaultrole! and is used when the role cannot be determined. The following table lists the appropriate settings for PowerBuilder controls.

Table 3-1: AccessibleRole values for PowerBuilder controls

Control

AccessibleRole

Animation

animationrole!

CheckBox

checkbuttonrole!

CommandButton

pushbuttonrole!

DataWindow

clientrole!

DropDownListBox

comboboxrole!

DropDownPictureListBox

comboboxrole!

EditMask

textrole!

Graph

diagramrole!

GroupBox

groupingrole!

HProgressBar, VProgressBar

progressbarrole!

HScrollBar, VScrollBar

scrollbarrole!

HTrackBar, VTrackBar

sliderrole!

ListBox

listrole!

ListView

listrole!

MonthCalendar

clientrole!

MultiLineEdit

textrole!

Picture

graphicrole!

PictureButton

pushbuttonrole!

PictureHyperLink

linkrole!

PictureListBox

listrole!

RadioButton

radiobuttonrole!

RichTextEdit

clientrole!

SingleLineEdit

textrole!

StaticHyperLink

linkrole!

StaticText

statictextrole!

Tab

clientrole!

TabPage

clientrole!

TreeView

outlinerole!

Usage


In a painter

On the Other page in the Properties view, select a role from the AccessibleRole drop-down list.


In a script

The AccessibleRole property takes a value of the AccessibleRole enumerated variable. The following statement sets the AccessibleRole property for a command button in a Window:

cb_1.accessiblerole = pushbuttonrole!