Kbase 15942: How to enable a default READ-ONLY editor in a SmartViewer
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/05/1998 |
|
How to enable a default READ-ONLY editor in a SmartViewer
When you put an editor widget in a SmartViewer and run the program, by
default it is in READ-ONLY mode. In order to enable the editor when
the viewer initializes you need to add the following line to a
local-initialize procedure that you create for the SmartViewer:
/* Code placed here will execute AFTER standard behavior */
RUN dispatch IN THIS-PROCEDURE ( INPUT 'enable-fields':U ).
Note that this line has been added *after* the dispatch of the
standard ADM "initialize".
This use of adm-enable-fields is documented in the fifth "Note" for
the event procedure on p. A-34 in the User Interface Builder
Developer's Guide.
For information on how to create a local-initialize procedure,
please see p. 13-7 in the User Interface Builder Developer's Guide
for Version 8.
Progress Software Technical Support Note # 15942