Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Dale Dedoroy
  Where is Dale Dedoroy?
 Bacolod City, Negros Occidental
 Philippines
 Dale Dedoroy
 To: Paul Culbertson
  Where is Paul Culbertson?
 Katy
 Texas - United States
 Paul Culbertson
 Tags
Subject: RE: Dock Positions of multiple toolbars
Thread ID: 264 Message ID: 268 # Views: 1 # Ratings: 0
Version: Unknown Category: General VFP Topics
Date: Monday, May 21, 2001 11:02:24 PM         
   


> > > 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


ENTIRE THREAD

Dock Positions of multiple toolbars Posted by Paul Culbertson @ 5/21/2001 5:20:31 PM
RE: Dock Positions of multiple toolbars Posted by Dale Dedoroy @ 5/21/2001 10:27:45 PM
RE: Dock Positions of multiple toolbars Posted by Paul Culbertson @ 5/21/2001 10:33:47 PM
RE: Dock Positions of multiple toolbars Posted by Dale Dedoroy @ 5/21/2001 11:02:24 PM
RE: Dock Positions of multiple toolbars Posted by Dale Dedoroy @ 5/21/2001 11:18:29 PM
RE: Dock Positions of multiple toolbars Posted by Paul Culbertson @ 5/22/2001 12:45:47 AM