Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Common Desktop Environment: Programmer's Overview > Chapter 7 Optional Integration

Common Desktop Environment Motif Control Widgets

» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

The Common Desktop Environment Motif control widgets are designed to ease porting OPEN LOOK and Microsoft Windows applications to the Common Desktop Environment by providing equivalent functionality in Common Desktop Environment Motif. The Common Desktop Environment Motif widgets library libDtWidget contains widgets and functions that are used to provide common functionality across all Common Desktop Environment applications. The widgets provided include:

  • Text field and arrow button widget (DtSpinBox)

Figure 7-1 Example of text field and arrow button widget (DtSpinBox)

Example of text field and arrow button widget (DtSpinBox)
  • Text field and list box widget (DtComboBox)

Figure 7-2 Examples of text field and list box widget (DtComboBox)

Examples of text field and list box widget (DtComboBox)
Examples of text field and list box widget (DtComboBox)
  • Menu button widget (DtMenuButton)

Figure 7-3 Example of menu button widget (DtMenuButton)

Example of menu button widget (DtMenuButton)

The Common Desktop Environment Motif Widget library libDtWidget supports drivability between Common Desktop Environment applications and legacy OPEN LOOK applications. That is, it enables you to write applications that operate the same way OPEN LOOK applications do, in areas such as cut, copy, paste, and mouse-button functionality.

NOTE: The Common Desktop Environment supports all Motif widgets.

Table 7-1 Common Desktop Environment Control Widgets

Widget Name

Description

DtSpinBox

TextField widget with additional controls for incrementing and decrementing numeric values, or browsing through and selecting from a list of text strings

DtComboBox

Combination of TextField and pop-up List widgets that provides a list of valid choices for the TextField

DtMenuButton

Command widget that provides menu cascading functionality of an XmCascadeButton widget outside of a Menu Bar, or a Menu Pane (a pull-down menu, a pop-up menu, or an option menu)

 

Library and Header Files

The library libDtWidget provides access to the DtSpinBox, DtComboBox, and DtMenuButton widgets. The libDtWidget header files for these widgets are:

  • Dt/SpinBox.h

  • Dt/ComboBox.h

  • Dt/MenuButton.h

Demo Programs

You can find the Common Desktop Environment Motif control widgets demos in /usr/dt/examples/dtwidget. Read the README file for detailed information on the demos.

Related Documentation

For more information on Common Desktop Environment Motif control widgets, see the relevant man pages and the Programmer's Guide.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.