Solaris Common Desktop Environment: Programmer's Guide

Resources

The DtEditor widget provides the following set of resources.

The status line also includes a Motif XmTextField(3X) widget for displaying messages supplied by an application. This field is a convenient place for an application to display status and feedback about the document being edited. The ID of the text field is retrieved using DtEditorGetMessageTextFieldID(3). A message is displayed by setting the XmNvalue or XmNvalueWcs resource of this widget. If the text field is not needed, you can unmanage it by calling XtUnmanageWidget(3X) with its ID.

Table 7-9 lists the class, type, default, and access for each resource. You can also set the resource values for the inherited classes to set attributes for this widget. To reference a resource by name or class in an .Xdefaults file, remove the DtN or DtC prefix and use the remaining letters. To specify one of the defined values for a resource in an .Xdefaults file, remove the Dt prefix and use the remaining letters (in either lowercase or uppercase, but include any underscores between words).

The codes in the access column show if you can:

See the DtEditor(3) man page for more information.

Table 7-9 DtEditor Resources

Name 

Class 

Type 

Default 

Access 

DtNautoShowCursorPosition

DtCAutoShowCursorPosition

Boolean

True

CSG

DtNblinkRate

DtCBlinkRate

int

500

CSG

DtNbuttonFontList

DtCFontList

XmFontList

Dynamic

CSG

DtNcolumns

DtCColumns

XmNcolumns

Dynamic

CSG

DtNcursorPosition

DtCCursorPosition

XmTextPosition

0

CSG

DtNcursorPositionVisible

DtCCursorPositionVisible

Boolean

True

CSG

DtNdialogTitle

DtCDialogTitle

XmString

NULL

CSG

DtNeditable

DtCEditable

Boolean

True

CSG

DtNlabelFontList

DtCFontList

XmFontList

Dynamic

CSG

DtNmaxLength

DtCMaxLength

int

Largest integer

CSG

DtNoverstrike

DtCOverstrike

Boolean

False

CSG

DtNrows

DtCRows

XmNrows

Dynamic

CSG

DtNscrollHorizontal

DtCScroll

Boolean

True

CG

DtNscrollLeftSide

DtCScrollSide

Boolean

Dynamic

CG

DtNscrollTopSide

DtCScrollSide

Boolean

False

CG

DtNscrollVertical

DtCScroll

Boolean

True

CG

DtNshowStatusLine

DtCShowStatusLine

Boolean

False

CSG

DtNspellFilter

DtCspellFilter

char *

Spell

CSG

DtNtextBackground

DtCBackground

Pixel

Dynamic

CSG

DtNtextDeselectCallback

DtCCallback

XtCallbackList

NULL

C

DtNtextFontList

DtCFontList

XmFontList

Dynamic

CSG

DtNtextForeground

DtCForeground

Pixel

Dynamic

CSG

DtNtextTranslations

DtCTranslations

XtTranslations

NULL

CS

DtNtextSelectCallback

DtCCallback

XtCallbackList

NULL

C

DtNtopCharacter

DtCTextPosition

XmTextPosition

0

CSG

DtNwordWrap

DtCWordWrap

Boolean

True

CSG