Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Docking toolbars
Message
From
04/03/2004 10:27:59
Mike Sue-Ping
Cambridge, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00883059
Message ID:
00883099
Views:
13
Sorry, I should have know better. I'm using VFP8.0 SP1 and Windows200 Pro.

>Which version of fox are you using?
>
>Richard
>
>>Hi Richard,
>>
>>Thanks for the suggestion.
>>
>>Unfortunately it didn't help. Adding the toolbar1.width+1 does indeed move the second toolbar over one pixel from the first toolbar, but that wasn't my problem to begin with.
>>
>>The problem I'm experiencing is that the second toolbar's Top position is at the bottom of the first toolbar and thus produces a vertically staggered appearance. I've tried using oToolbar2.Dock(0, oToolbar1.width + 1, 0) but it simply refuses to obey the third parameter!
>>
>>Mike.
>>
>>
>>>I'm having similar problems with three toolbars. I've found that if you use the x,y params on the DOCK it helps but with three it gets complicated.
>>>
>>>Try:
>>>
>>>
toolbar1.dock(0,0,0)
>>>toolbar2.dock(0,toolbar1.width+1,0) && The +1 adds a single pixel between the toolbars otherwise it ends up on row 2
>>>
>>>
>>>HTH
>>>
>>>Richard
>>>
>>>
>>>>Hi
>>>>
>>>>I have two toolbars that I'd like docked at the top of my VFP application window. The toolbars are associated with a Top-Level Form. I want the two toolbars to dock and look like one large horizontal toolbar.
>>>>
>>>>If I issue
>>>>
>>>>
this.Dock(0)
>>>>
>>>>from the Init() of the first toolbar, it docks at the top left as I expected. Next I create the second toolbar and try to dock it along the top and immediately adjacent to the first using:
>>>>
>>>>
>>>>oToolBar2 = CREATEOBJECT("myToolBar2")
>>>>oToolBar2.Dock(0)
>>>>
>>>>
>>>>I want to have both toolbars inline on the same "row". However, the second one is adjacent to the first but always on a second "row", i.e. it doesn't look like one continuous horizontal toolbar like I want it to. Anyone have any ideas what I am doing wrong or how I go about coding this to work correctly?
>>>>
>>>>The frustrating thing is that it works exactly as I want from the command window when I type
>>>>
>>>>
>>>>oToolBar1 = CREATEOBJECT("myToolBar1")
>>>>
>>>>
>>>>TIA
>>>>
>>>>Regards,
>>>>
>>>>Mike
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform