> > > > > I have an instance where i need to have multiple toolbars for one form. The problem is that by default i need to place the toolbars docked on the top...i can't place them side by side because the buttons would extend off the screen. I need to be able to programmatically dock the toolbars one on top and the other below. I can do it with the mouse after they load but not with out the mouse.
> > > > >
> > > > > TIA
> > > > >
> > > > > Paul Culbertson
> > > > >
> > > > > Houston, TX
> > > > >
> > > >
> > > > Hi Paul,
> > > > Try MyToolBar.Dock(nPosition[,nX,nY])
> > > > Where nPosition is one of the following:
> > > > -1 Undocks the toolbar
> > > > 0 Docks the toolbar at the top
> > > > 1 Docks the toolbar at the left
> > > > 2 Docks the toolbar at the right
> > > > 3 Dock the toolbar at the bottom
> > > >
> > > > nX is for the top and bottom coordinates
> > > > nY is for the side coordinates
> > > >
> > > > If nX and nY are omitted, VFP places the toolbar at the next available position on the specified side.
> > > >
> > > > Hth,
> > > > Dale
> > >
> > > Hey Dale,
> > >
> > > That was one of the first thing I tried and it didn't position it under the othe toolbar that was already docked it placed it next to it. Which in turn some of the buttons were positioned off screen.
> > >
> > > I also tried using the move(-1,-1) and a few other move events that would of positioned it off screen, to imulate that i was moving the toolbar with the mouse with the same effect as the dock(0) and dock(0,-1,-1).
> > >
> > > Paul Culbertson
> > >
> > > Houston, TX
> > >
> >
> > Ok, please try this if this will work for you:
> > MyToolBar1.Dock(0)
> > MyToolBar2.Doc(0,0,16)
> >
> > Hth,
> > Dale
>
> I think you have to adjust the last parameter (nY) accordingly. My observation seems to tell me that in this case, nY is 8 raised to the power of the number set of the toolbar. So if you have a third toolbar set, you can use MyToolBar3.Dock(0,0,48) to place the toolbars one on top of the other.
>
Thanks for the input i will try in the morning it is 12:41am here and i gotta wake up in about 5 1/2 hours... I will let you know if it works...please note that if it works i will be using the sysmetric command for the 8 matirix as i don't know what the end user will have for their settings. ttyl.
Paul Culbertson
Houston, TX