DEC Text Processing Utility Program Development

5.3Writing Code Compatible with DECwindows EVE

5.3Writing Code Compatible with DECwindows EVE

This section provides information useful for programmers who extend

DECwindows EVE or layer applications on DECwindows EVE.

5.3.1 Select Ranges in DECwindows EVE

This section is intended for programmers who are extending EVE or layering an application on EVE.

There are four possible types of selection:

Dynamic selection

Static selection

Found range selection

DECwindows primary or secondary global selection

EVE can use only one type of selection at a time. The ways in which these selections differ are explained in the following sections.

EVE has a routine called EVE$SELECTION that returns the current selection, regardless of whether the selection is dynamic, static, formed from a found range, or the primary global selection. You can use the SELECT_RANGE built-in procedure to get the current selection if the selection is a dynamic selection. However, Compaq recommends that you use EVE$SELECTION to get the current selection because this routine returns the current selection regardless of how it was created. To see how the EVE$SELECTION routine works and what parameters it takes, see the code for this routine in SYS$EXAMPLES:EVE$CORE.TPU.

5.3.1.1 Dynamic Selection

When you press the Select key or invoke the SELECT command, EVE creates a dynamic selection. A dynamic selection expands and contracts as you move the text cursor. Moving the text cursor away from the text already selected does not cancel the selection. If you use the mouse to start a selection while a dynamic selection is active, the dynamic selection is canceled.

If EVE’s current selection is a dynamic selection, the routine EVE$SELECTION returns the selected range and terminates the selection. If, for some reason, you want to use a statement that returns the current dynamic selection but does not terminate it, you can use a statement whose format is similar to the following:

r1 := EVE$SELECTION (TRUE, TRUE, TRUE, TRUE, FALSE)

The last parameter directs EVE$SELECTION not to terminate the selection. For more information on how to use these parameters, see the EVE$SELECTION routine in SYS$EXAMPLES:EVE$CORE.TPU.

5.3.1.2 Static Selection

EVE creates a static selection if you do any of the following:

Click the MB1 mouse button two or more times to select a word, line, paragraph, or buffer

Use the EVE command SELECT ALL

Press the MB1 mouse button, drag the mouse across text, and then release the mouse button

DEC Text Processing Utility Program Development 5–13

Page 113
Image 113
Compaq AA-PWCBD-TE manual Writing Code Compatible with DECwindows EVE, Select Ranges in DECwindows EVE, Dynamic Selection

AA-PWCBD-TE specifications

The Compaq AA-PWCBD-TE is a highly regarded laptop battery designed to provide reliable power to a range of Compaq laptop models. As technology continues to evolve, the necessity for efficient and long-lasting batteries becomes increasingly important, especially for students, professionals, and anyone reliant on portable computing.

One of the standout features of the AA-PWCBD-TE is its impressive capacity, designed to enhance the performance of your device. With a power capacity of around 5200 mAh, this battery is engineered to provide extended usage times, allowing users to work on the go without frequent interruptions for recharging. The battery supports efficient energy management, contributing to the overall longevity of the device.

Additionally, the AA-PWCBD-TE integrates advanced lithium-ion technology, which is favored for its reliability and minimal memory effect. Lithium-ion batteries typically offer a higher energy density compared to older technologies, meaning they can store more energy in a smaller size. This technology also supports faster charging times, making it a convenient solution for busy users.

Safety is another vital characteristic of the AA-PWCBD-TE. It features built-in protection against overcharging, overheating, and short-circuit conditions, which helps ensure the safety of both the battery and the device itself. This level of protection is crucial, especially in professional environments where equipment failure can lead to productivity losses.

Compatibility is also a key aspect of the AA-PWCBD-TE, as it is designed to fit a variety of Compaq laptop models. Users can easily determine whether this battery is suitable for their specific model, simplifying the buying process and ensuring optimal performance.

In terms of weight and dimensions, the AA-PWCBD-TE is designed to be lightweight and compact, adding minimal bulk to the laptop while still delivering powerful performance. Users can enjoy the balance of efficiency and portability, making it an ideal choice for those who travel frequently or require a battery that doesn't compromise on power.

Overall, the Compaq AA-PWCBD-TE stands out as a dependable and efficient laptop battery that enhances the user experience. With its impressive capacity, cutting-edge technology, and safety features, it is a valuable accessory for anyone looking to improve their mobile computing capabilities.