| Home | Getting Started | Using the Template | Task Guides | What’s New |
Use the manual code templates when you want to dim a parent window while another synchronous window or report preview is open. A synchronous call returns after the called procedure finishes, so the Restore operation belongs immediately after that call.
For a window launched with START, follow Dimming a Window Started with START instead.
The source should resemble:
CDDimWindowEx(0{PROP:Handle},90,0,0,0)
MyUpdateWindow()
CDRestoreWindow(0{PROP:Handle})
Use your actual procedure name and the appropriate accepted-call context. The Dim template lets you use the global appearance or choose a different color and strength.
After setting up the DLL declarations described in Hand-Coded Integration, the equivalent parent Accepted code is:
DimResult = CDDimWindow(0{PROP:Handle},90)
MyUpdateWindow()
RestoreResult = CDRestoreWindow(0{PROP:Handle})
DimResult and RestoreResult are LONG variables if you choose to inspect the results.
Use this same balanced approach around a normal Clarion report preview. Do not use this recipe for a START-launched window. START returns before the new child window closes, so it needs the distinct START window workflow.
When temporarily disabling the code templates, disable the corresponding Dim and Restore inserts together. Otherwise one operation can remain without its matching partner.
| Home | Getting Started | Using the Template | Task Guides | What’s New |