Consultor Eletrônico



Kbase 19108: Disabling a widget for an instance of a SmartObject
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   06/10/1999
Disabling a widget for an instance of a SmartObject

SUMMARY: This document will point out a simple way of disabling a
widget for one instance of a particular smartobject.

Knowledge Base number:19108
This document applies to:V8,V9
Version and Release Number:V9.0B

STEP BY STEP DETAILS:
1. Within master copy of the smartviewer, create a procedure called
disablewidget.
2. Inside that procedure type something like:
assign widgetname:sensitive in frame {&frame-name} = false.
3. Save the smartviewer.
4. Now when your in the smartwindow that has an instance of that smart
viewer on it, the one you want to disable the widget on, create a
local initialize procedure for that particular smartwindow.
5. In that procedure, after the run super() type: /* Version 9 */
run disablebutton in <handle to the viewer>.
In the procedure, after the run RUN dispatch IN THIS-PROCEDURE
( INPUT 'initialize':U ) . /* Version 8 */
run dispatch in <handle to the viewer> ( input 'disable':U)..

After you save the smartwindow and run it, you should notice that
whatever widget you specified in the disablewidget procedure is now
disabled.

REFERENCES TO WRITTEN DOCUMENTATION:
Version 8 User Interface Builder Developer's Guide.
Version 9 Appbuilder Developer's Guide.