OPO: 1 global toolbar for all forms, HOW?!?

From: Peter Yamamoto <pjyamamo_at_daisy.uwaterloo.ca>
Date: 1996/03/25
Message-ID: <DouGxH.1rH_at_watdragon.uwaterloo.ca>#1/1


Hi!

I created a new application. Made four empty forms, then setup cmd constants etc to handle opening the four forms.

I then created a toolbar with four buttons each associated with opening one of the forms.

If open one window (any one) in the app's OnLoad, then that window will get the toolbar, the rest won't.

if I open all four windows in the OnLoad, then the first and third windows (once again, it doesn't matter which actual forms you put, only the order) get toolbars and the others don't.

This on again, off again behaviour is also similar to the behaviour I am experiencing with trying to use one global menubar for all forms.

Any explanations? Anybody get SetToolbar/setmenubar to work for all forms using the same object?

Any workarounds short of making a menu/toolbar for every form (yes, I have already made a subroutine to do this so I know I don't have to repeat any code, but I don't want the extra objects if they aren't necessary)?

Peter

--

Peter Yamamoto                     CS   Phone: +1 519-888-4567 x3299
University of Waterloo             MFCF Phone: +1 519-888-4567 x6488
Waterloo, Ontario, Canada N2L 3G1  Home Phone: +1 519-747-5318
Email: PJYamamoto_at_UWaterloo.CA     URL: http://daisy.uwaterloo.ca/~pjyamamo/

--
Peter Yamamoto CS Phone: +1 519-888-4567 x3299 University of Waterloo MFCF Phone: +1 519-888-4567 x6488 Waterloo, Ontario, Canada N2L 3G1 Home Phone: +1 519-747-5318 Email: PJYamamoto_at_UWaterloo.CA URL: http://daisy.uwaterloo.ca/~pjyamamo/
Received on Mon Mar 25 1996 - 00:00:00 CET

Original text of this message