Consultor Eletrônico



Kbase P81883: TTY app running on Windows using iterating frame gets unwanted scroll bars
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   26/05/2004
Status: Unverified

FACT(s) (Environment):

Progress 9.x

SYMPTOM(s):

TTY application running on Windows using V6DISPLAY=yes in the INI file

Application creates iterating frame to display data

When escape key is pressed the iterating frame is hidden then code repeats to display new data

When new data is displayed the frame is viewed using a new value for the DOWN attribute

When user is on the last row of the iterating frame and presses the down arrow scroll bars become visible rather than simply iterating through the frame

CAUSE:

On Windows when the frame is hidden and redisplayed with a different down attribute the frame is not actually rebuilt. Instead the rows that are not needed are made invisible. When the user presses the down arrow on the last visible row of the iterating frame the underlying code attempts to make the invisible rows visible which is what causes the scroll bars to appear.

FIX:

Modify the application source code so that the actual definition of the iterating frame and the code that uses it are in a separate procedure which has a create widget-pool statement at the beginning of the procedure. This will cause the frame to truly be destroyed and recreated rather than reused.