|Multiple Screensets||Using Panels V2|
This version of Dialog System is primarily for Windows 95 and Windows NT.
This chapter explains the major differences between these environments and gives you guidelines for handling screensets that are used in more than one environment.
You can run a screenset on other operating systems if you have the appropriate earlier version of Dialog System, because the system uses the appropriate run-time software (it is not the responsibility of the calling program). Some object definitions are not portable across environments. Dialog System provides optional portability warnings. If enabled, Portability warnings on the Options, Include menu causes Dialog System to display a warning message whenever you are about to create an object that is not portable.
When dealing with portability issues, we recommend that you test your application thoroughly, as Dialog System cannot guarantee to detect all portability violations because of the way the environment is constantly changing.
Superficially, many of the objects and controls look the same on any of the supported environments. Objects such as radio buttons and check boxes provide the most obvious differences between Presentation Manager and Windows.
The objects that Dialog System creates follow the appearance of similar objects in the current environment. Therefore, in applications created under Presentation Manager, radio buttons appear as outlined ovals that are filled with a color when selected. As you move the screenset from one environment to another, the appearance of the objects changes.
The behavior of the mouse varies between the environments but can be fixed by the design of the application.
There are some objects and menu choices that are available on only some environments. For example, the OLE2 object is available only under Windows.
If you want an application to be portable, you must use the functions and facilities that are common among the environments you want to run on, so that the application has a common look and feel on all environments, rather than taking advantage of any one environment's functions. If you don't need a portable application, you can design just for the one environment and take full advantage of anything specific to that environment.
For example, if you want to exploit the 32-bit Windows interface, you can use the class library of your COBOL system to extend your Dialog System interface. However the interface will not be portable to any earlier versions of Dialog System.
One major difference among the environments is how Dialog System starts up.
Under Presentation Manager, Dialog System starts up with the Dialog System window. Every window you create is created as a clipped window within the Dialog System window, unless you switch to Desktop mode. In Desktop mode, you create objects directly on the desktop.
Under Windows, Dialog System starts up in Desktop mode. This is because Windows does not permit the creation of clipped windows with menus. Obviously, this causes a problem because the first window you need to create would be clipped if it was within the Dialog System window. Creating windows directly on the desktop avoids this problem.
Under Windows you must be in Desktop mode to see a menu bar on a window. However, you can edit a menu bar even if you are not in Desktop mode.
GUI emulation is supported in 16-bit versions of Dialog System. For information on creating screensets that are portable for GUI emulation, see your 16-bit product documentation.
These guidelines are primarily for portability between graphical interfaces. If your screenset is to be portable to a GUI emulation environment, consider the guidelines given in the section Developing for Graphical and GUI Emulation Environments in your 16-bit product documentation.
Dialog System does however provide multiple resolution support for run-time use. See the topics Calls to Dsgrun and The Call Interface in the Help, and the chapter Advanced Topics.
However, this does mean that the width of the buttons varies to accommodate the text. This is why, for example, closely horizontally spaced buttons under VGA can cause horizontal overlap when viewed under XGA. Sizing a button will remove this feature and avoid the overlap. However, the button text may be clipped. Changing to a typeface with a particular point size (rather than using the system proportional font) may help.
The default border of a default push button is drawn around the defined area of the button. Some environments emphasize this more than others. Again, the solution is simply to avoid close spacing of objects.
For example, consider two push buttons containing identical text. Both initially have Fit-Text selected. If you now de-select Fit-Text for one of the buttons, you will not notice any difference in the size of either button. They will both have the same dimensions. Now, if you save this definition and load it on another environment, you will almost certainly notice a difference in size. In fact, depending on the text you have chosen, one button may actually clip the text.
If you are creating a screenset for use on all three graphical environments, you should select Portability Warnings on the Options, Include menu, so that you are aware of the implications when you create particular types of objects.
When a warning is displayed, you can continue to create the object that caused it (and ignore the warning), but if you intend to run the screenset on the environment mentioned in the warning, the results will not be as you intend. In most cases, you will be able to redesign that part of the screenset to use objects that are supported on all the target environments.
In particular, note the following:
There are two issues here:
The tab control object replaces the notebook control object that was available in previous versions of Dialog System. The functionality of the tab control is similar to that of the notebook, but the following features that were available with the notebook control are no longer available with the tab control:
The backpage intersection and binding properties of the notebook are ignored.
Minor tabs are converted into major tabs.
All tab control pages have tabs.
The bitmaps and text displayed in tabs are always centered within the tab.
The shape of tab control page tabs is fixed.
Tab controls do not have status lines.
Tab control tabs are always rectangular.
In addition, the base release of Windows 95 does not support tab orientation. However, an upgrade to the operating system is included in Microsoft Internet Explorer 3.0 and later which provides this support. Also, note that unlike with notebooks, display corruption may result if the tab text or bitmap does not fit completely within the tab.
Dialog System will preserve the properties of notebook objects created using previous versions of Dialog System. However, those properties that are no longer supported cannot be edited from within the definition software.
The container implementation in Dialog System uses a Windows control called a List View. This control provides a subset of the functionality that was available with the container object.
The main limitation of the List View control is that the first column in the list view must contain only icons, and the remaining columns must contain only text.
In addition, the following features of the container are no longer supported:
There is no overall title in a List View. If an overall title is specified, it will be ignored.
All flags used to control the formatting of column headings or data is ignored, including alignment, separator, and column width settings.
Setting of delta events will be ignored and no delta events will be generated.
The Sc and Hc functions of the Dscnr Dialog System extension have no effect.
If you intend to implement any new container objects in your application, consider using the List View object in the GUI class library, as it provides more control over the list view object.
|Presentation Manager||Windows||GUI Emulation||Windows NT and 95 (16-bit)||Windows NT and 95 (32-bit)|
|Message box||y||y (4)||y||y (4)||y (4)|
|Multiple line entry field||y||y (5)||y||y||y|
|Primary window||y (1)||y (1)||y (1)||y (1)||y (1)|
|Push button||y||y (6)||y||y (6)||y (6)|
|Secondary window (clipped)||y||y (3)||y||y (3)||y (3)|
|Secondary window (not clipped)||y||y(2)||y||y (2)||y (2)|
|Tab Control Page||x||x||x||x||y(10)|
Copyright © 1998 Micro Focus Limited. All rights reserved.
This document and the proprietary marks and names used herein are protected by international law.
|Multiple Screensets||Using Panels V2|