Consultor Eletrônico



Kbase P82009: Is it possible to remove the row selection indicators; the close angle brackets '>' tick marks; from
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   02/06/2004
Status: Unverified

GOAL:

Is it possible to remove the row selection indicators; the close angle brackets '>' tick marks; from the TTY / CHARACTER browse?

FIX:

Yes, provided that the application logic does not require the functionality associated with the 'row selection' related attributes and methods AND that the browse is not empty.

The TTY browse row highlight indicates row focus and the close angle brackets (>), also referred to as ?tick marks? indicate row selection.

In a single selection browse, the tick mark follows the highlight because focus and selection are the same.

In a multiple selection browse, focus is independent of selection, and tick marks indicate the selected rows.

Consequently the only way to get rid of the tick marks is to deselect any row immediately after it comes into focus.

This may be achieved by using the browse ?VALUE-CHANGED? event trigger:

ON VALUE-CHANGED OF b1 IN FRAME f1 DO:
b1:DESELECT-FOCUSED-ROW().
END.

To ensure that the first row?s ?tick mark? is destroyed, apply a "CURSOR-DOWN" event followed by a "CURSOR-UP" event immediately after the browse is enabled:

ENABLE b1 WITH FRAME f1.
APPLY "CURSOR-DOWN" TO BROWSE b1.
APPLY "CURSOR-UP" TO BROWSE b1.