www.icetips.com  Icetips Utilities Documentation 5/15/2016    

Procedure Extension Template: Duplicate Window  (Added May 14, 2016)

Previous  Top  Next  


This template has one purpose:  To duplicate a window structure so the window can be opened as either a SDI window or MDI window.  This makes it possible to use the same window procedure from the application frame procedure as a MDI window as well as before the application frame is opened as a SDI window. 

 

 

Template_Duplicate_Window

 

LabelThis shows the label of the duplicate window.  Note that this field is read-only and the window label cannot be changed.  The label is the actual window label, prefixed with either SDI_ or MDI_

 

ConditionThe condition to switch.  If TRUE then what ever is the duplicated window is used.  In this case the actual window is a MDI window so the duplicated window is a SDI window

 

This will generate code that conditionally opens the SDI or MDI windows as shown below:

 

Template_Duplicate_Window_Code

 

Note that during generation, this template WILL cause duplicate label warnings as shown below for every control that is on the window as they are indeed duplicated in the duplicated window.  Those warnings can be safely ignored.

 

Template_Duplicate_Window_Warn



Direct link to this page: http://www.icetips.com/manuals/utilities/duplicate_window_tpl.htm