Article ID: 141425
Article Last Modified on 9/30/2003
BeforeDock, AfterDockWhen the dock position of a toolbar is changed under program control with the Dock method, the events fire in the following order:
BeforeDock, Undock, BeforeDock, AfterDock
IF THIS.DockPosition != -1 && The toolbar is already docked
THIS.lDockit=.T.
ENDIF
IF THIS.lDockit <> .T.
<your code here>
ENDIF
IF THIS.lDockit<>.T.
<your code here>
ELSE
THIS.lDockit=.F.
ENDIF
ClassName: TbrDock Based On : select Toolbar Store In : Clstbar
=MESSAGEBOX(PROGRAM())
SET CLASSLIB TO clstbar
oTrdock=CREATEOBJECT("TbrDock")
oTrdock.Show
oTrDock.Dock(1)The BeforeDock, Undock, BeforeDock, and AfterDock events are triggered.
Keywords: kbbug kbfix kbvfp500fix KB141425