Title | Windows 98 dialogs | |
Author | Jean Marie Linhart, StataCorp |
A graphics dialog box is not working right on my Windows system. What is going on, and what can I do?
Unfortunately, some operating systems (Windows 98 and its offshoots, such as Windows ME) have restrictions on the number of GUI controls, and this affects Stata’s graphics dialogs. If you try to run a dialog that is too large, or if you have too many other applications running, some of the controls will not appear, and the dialog will not look or work correctly. We had to create special smaller dialogs for these operating systems.
If you are using such a platform, Stata automatically loads the Windows 98 version of a given dialog if it exists. For example, if you execute the command db twoway_overlay, you will get the dialog from twoway_overlay_98.dlg.
Sometimes, however, even this dialog will not work right. You can use the command set smalldlg on to tell Stata to automatically use the smallest dialogs it can find. Stata will always look for a _98s version of a dialog and run it if it is available. The command set smalldlg on works only with Windows 98-type platforms.
If you only want to run one particular small dialog without changing your settings, you can type db from the command line. This will work regardless of which platform you are using. For example, to get the smallest version of twoway_overlay.dlg you type db twoway_overlay_98s, which tells Stata to execute the dialog in twoway_overlay_98s.dlg. There are 66 other similarly named graphics dialogs with a _98s extension, from ac_98s.dlg to xcorr_98s.dlg.
If you are a dialog programmer, you do not need to worry about this unless you are using several graphics include tabs in one dialog or you are making a monster dialog of a similar size as the graphics dialogs. To make your code work on a Windows 98 platform you, will have to reduce the number of dialog controls.
If you are using the graphics include tabs, use the smallest versions you can find. The instructions from Using StataCorp-written graphics .idlg files FAQ are good, but the smallest include files are
gxaxis_98s.idlg gyaxis_98s.idlg gtitle_98s.idlg gregion_98s.idlg which uses gregion_common_98s.idlg gregion_common_98s_sc.idlg glegend_98s.idlg gby_98s.idlg
There is no gcaption_98s.idlg; captions and notes are not used for Windows 98-type systems. The command that goes in the PROGRAM command block is unchanged from that in its larger counterpart. For example, for gxaxis_98s.idlg, you insert the text
put " " /program gxaxis_output
You can see an example of these small dialog include files in graphfaq_98s.dlg.
Learn
Free webinars
NetCourses
Classroom and web training
Organizational training
Video tutorials
Third-party courses
Web resources
Teaching with Stata
© Copyright 1996–2024 StataCorp LLC. All rights reserved.
×
We use cookies to ensure that we give you the best experience on our website—to enhance site navigation, to analyze usage, and to assist in our marketing efforts. By continuing to use our site, you consent to the storing of cookies on your device and agree to delivery of content, including web fonts and JavaScript, from third party web services.
Cookie Settings
Last updated: 16 November 2022
StataCorp LLC (StataCorp) strives to provide our users with exceptional products and services. To do so, we must collect personal information from you. This information is necessary to conduct business with our existing and potential customers. We collect and use this information only where we may legally do so. This policy explains what personal information we collect, how we use it, and what rights you have to that information.
These cookies are essential for our website to function and do not store any personally identifiable information. These cookies cannot be disabled.
This website uses cookies to provide you with a better user experience. A cookie is a small piece of data our website stores on a site visitor's hard drive and accesses each time you visit so we can improve your access to our site, better understand how you use our site, and serve you content that may be of interest to you. For instance, we store a cookie when you log in to our shopping cart so that we can maintain your shopping cart should you not complete checkout. These cookies do not directly store your personal information, but they do support the ability to uniquely identify your internet browser and device.
Please note: Clearing your browser cookies at any time will undo preferences saved here. The option selected here will apply only to the device you are currently using.