Consultor Eletrônico



Kbase 16066: How to get an EDITOR widget to beep when maxed out with data
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/05/1998
How to get an EDITOR widget to beep when maxed out with data

INTRODUCTION:
=============
This knowledgebase gives the code required to get an editor widget to
beep at the user when they entered as much data as the editor widget
can hold.

WHY YOU NEED TO KNOW THIS:
===========================
You need to know this if you want to give your users an audible
indicator that the editor widget will no longer accept more data.

PROCEDURAL APPROACH:
====================
Insert the following code into the ANY-PRINTALE event of the editor
widget:

ON ANY-PRINTABLE OF <Some Editor Widget> DO:
IF LENGTH(SELF:SCREEN-VALUE) EQ SELF:MAX-CHARS THEN
DO:
BELL.
RETURN NO-APPLY.
END.
END.

Progress Software Technical Support Note # 16066