Help with Toolbar positioning
Ramaswamy Hari -- hari@nextwave.com
Wednesday, January 03, 1996
Hi,
I created two toolbars in my application. One is the standard toolbar and
another one with a couple of buttons on it. Both of them are dockable on any
side. The problem I am having is that when they get created by default the
second toolbar gets positioned below the first toolbar even though there is
enough space to put them side by side. What do I do to make them appear side
be side rather than one below the other.
thanks in advance for all the help.
-hari
Niels Ull Jacobsen -- nuj@kruger.dk
Thursday, January 04, 1996
[Mini-digest: 2 responses. Apologies to the person who sent the
big code sample, but I lost your mail. Could you please resend it?]
>
> Hi,
> I created two toolbars in my application.
[...]
> What do I do to make them appear side be side rather than one below
> the other.
See the docktool sample, specifically
CMainFrame::DockControlBarLeftOf. If you're still confused, come back.
> -hari
--
Niels Ull Jacobsen, Kruger A/S
Everything stated herein is THE OFFICIAL POLICY of the entire Kruger
group and should be taken as legally binding in every respect. Pigs
will grow wings and fly.
-----From: David Stidolph
I had the same problem. I had the original toolbar generated by =
AppWizard and I added another toolbar.
Finally, I added a call at the end of OnCreate: =
LoadBarState("ToolBars");
and added a call in OnClose: SaveBarState("ToolBars");=09
Then I ran the program and placed the toolbar I generated as the first =
toolbar and placed the toolbar generated by AppWizard as the second =
toolbar (to the right of the first). Now they come up correctly.
The weird thing is that when I switch them and restart the program they =
are restored so that my
toolbar is on the left and the first one is on the right -- with some =
additional space between them.
I don't understand this behavior, but I would be happy to send the code =
to anyone intereasted in looking into this.
| Вернуться в корень Архива
|