PRB: Can't Use DOCKED or DOCKPOSITION Props to Dock a ToolbarLast reviewed: April 30, 1996Article ID: Q128077 |
The information in this article applies to:
SYMPTOMSWhen the value of the DOCKED or DOCKPOSITION properties is modified to dock a toolbar, the toolbar position does not change.
CAUSEThis behavior is by design. The DOCKED and DOCKPOSITION properties are indicators of where a toolbar is located. They are Read Only properties and modifying their value will not affect the toolbar.
RESOLUTIONUse the DOCK method to dock a toolbar along any border of the main FoxPro window. The following code demonstrates how to use the DOCK method:
oToolbar1=CREATEOBJECT('cToolbar') oToolbar1.Show = Messagebox("Moving the Toolbar") oToolbar1.Dock(0) = Messagebox( "Top") oToolbar1.Dock(1) =Messagebox( "Left") oToolbar1.Dock(3) =Messagebox( "Bottom") oToolbar1.Dock(2) =Messagebox( "Right") DEFINE CLASS cToolbar AS TOOLBAR Scalemode = 1 * Make this a control array DIMENSION cmdim(3) ADD OBJECT cmdim(1) as CommandButton WITH caption = "One", Left =1 ADD OBJECT cmdim(2) as CommandButton WITH caption= "Two", Left =10 ADD OBJECT cmdim(3) as CommandButton WITH caption = "Three",Left= 15 ENDDEFINE STATUSThis behavior is by design.
|
Additional reference words: 3.00 VFoxWin
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |