WinWrap® Basic is an embedded macro language component available for .NET and COM 32/64 bit Windows applications. The WinWrap® Basic Component is an alternative to Visual Basic for Applications (VBA), ActiveX (e.g. VBScript, JScript, PerlScript, Rexx-based WSH engines and others), and VSTA for this purpose. The WinWrap® Basic Component is compatible with VBA, Sax Basic, VB.NET and Visual Basic 6.0 style scripts.
Setting DesignModeVisible to True adds the Design Mode menu choice to the Macro menu and the Design Mode tool to the toolbar.
When DesignMode_ changes from True to False the LeaveDesignMode event is fired and when DesignMode_ changes from False to True the EnterDesignMode event is fired. This allows the application to determine the exact meanings of DesignMode_=True and DesignMode_=False. DesignMode_ starts out as True. Your application can set DesignMode_ to False during startup if desired.
The design mode button shows the design state: down when DesignMode_ is True and up whe DesignMode_ is False. Clicking on the down button fires the LeaveDesignMode event. The application determines exactly what needs to happen when leaving design mode and can cancel the attempt to leave. In the screen shot below the application has canceled leaving design mode due to a parsing error.
See WinWrap Examples for instructions on how to download and run "Example 2 - TabControl".
Copyright Polar Engineering, Inc.