# Microsoft Windows Mode

WorkShop Visual can run in Microsoft Windows mode if you have set the application resource:

visu.windows true

Or you have invoked WorkShop Visual with the -windows flag.

Microsoft Windows mode means that your design will be checked for Microsoft Windows compliance. Normally WorkShop Visual will not allow you to create a non-compliant design, but compliance can be broken by reading in an old design or by use of cut and paste. Compliance failures are reported in the Compliance failure dialog.

In Microsoft Windows mode you will be able to choose to generate code for the Microsoft Foundation Classes to run on Microsoft Windows.

Running in Microsoft Windows mode entails some restrictions. There is a restricted widget palette to avoid using those with no equivalent on Microsoft Windows. Some widgets cannot be made a class or the destination of a link because of their different implementation on Microsoft Windows.

Resources that will have no effect on Microsoft Windows are colored pink in the resource panel. This colour can be changed in the application resource file. You can still set the resources but they will only take effect on Motif.

Some widgets cannot be mapped through to an object on Microsoft Windows. They still appear in your design, but they are not objects. One example is PushButtons in a Menu. On Microsoft Windows they are treated just as menu items (attributes of a Menu), they are not distinct objects. Such widgets are indicated with a pink variable name field

See also:

- Microsoft Windows compliance
- Compliance failure
- Resource Panels and other WorkShop Visual dialogs
- Code Generation
- The Microsoft Foundation Classes
- About WorkShop Visual