When building an application that will run on both Macintosh and Windows
platforms, it's important to make sure the interface looks correct on
each
platform. When you build a Windows version of your application using
Single
Document Interface (when the Multiple Document Interface checkbox in the
Build Application dialog box is left unchecked), the main window of your
application should have a separator line that separates the content
region
of your window from the menus. Take a look at Microsoft Internet
Explorer
for Windows or the Windows accessory application WordPad.
You can add this your self easily. To add a separator line, do this:
1. Drag a separator line (the control that has a gray line on top and a
white line on the bottom) from the Tools window to the main window of
your
project.
2. Position the separator line so that it is flush with the top of the
window and so that it stretches from the left side of the window to the
right.
3. In the Properties window, place a checkmark in the separator lines'
LockLeft and LockRight properties. This will make the line grow if the
window is resized.
4. Since this line is not necessary when the application runs on Mac OS,
place the following code in the Open event of the separator control.
This
code makes the separator control invisible when running on Mac OS.
#if targetMacOS then
me.visible = false
#endif
5. Build your application for Windows and run it.
--
Geoff Perlman
President & CEO
REAL Software, Inc.
http://www.realsoftware.com
mailto:geoff at realsoftware dot com
- - - - - - - - - -
Got a useful tip to share? Send it to us at:
REALbasic-tips at lists dot realsoftware dot com dot
For list commands, send "Help" in the body of a message to
<requests at lists dot realsoftware dot com>
|