Consultor Eletrônico



Kbase P15340: TAB key loses entry when frame has flat-button.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   3/24/2009
Status: Verified

SYMPTOM(s):

TAB key loses entry when frame has flat-button.

Using a flat button with other widgets loses focus and widget entry when the TAB key is used.

Creating a FLAT NO-FOCUS button dynamically adds the button to the frame's TAB items.

Tabbing between frame widgets stops functioning after the creation of a dynamic FLAT NO-FOCUS button

FACT(s) (Environment):

Progress 9.1x
OpenEdge 10.x
OpenEdge Category: Language (4GL/ABL)
Windows

CAUSE:

The default value of the NO-FOCUS attribute of a button widget is FALSE since the FLAT-BUTTON is not allowed to have focus. The code sets the FLAT-BUTTON attribute to YES but does not set the NO-FOCUS attribute to YES.

FIX:

Set both the NO-FOCUS attribute and the FLAT-BUTTON attribute YES before the dynamic button widget is realized.