Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ PtMultiTextModifyAttributes

Media Vault

Software Library

Restoration Projects

Artifacts Sought

PtMultiTextModifyAttributes

[Previous] [Contents] [Index] [Next]

PtMultiTextModifyAttributes()

Modify the attributes of a PtMultiText widget

Synopsis:

void PtMultiTextModifyAttributes( 
        PtWidget_t *widget,
        int start,
        int end,
        PtMultiTextAttributes_t const *attrs,
        int attributes_mask );

Description:

This function applies attributes to a range of characters within the specified PtMultiText widget. All characters from start up to, but not including, end are affected.

The attributes that this function applies are taken from the provided PtMultiTextAttributes_t structure. Only the attributes specified in attributes_mask are applied. The valid bits for this mask are:

  • Pt_MT_FONT
  • Pt_MT_FOREGROUND
  • Pt_MT_TEXT_COLOR
  • Pt_MT_BACKGROUND
  • Pt_MT_BACKGROUND_COLOR
  • Pt_MT_TAG
  • Pt_MT_FLAGS

Note: This function causes a nondestructive deselect before attempting the changes.

Examples:

See PtMultiTextGetAttributes().

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtTextGetSelection(), PtTextModifyText(), PtTextSetSelection(), PtMultiTextAttributes_t


[Previous] [Contents] [Index] [Next]

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