>procedure activate >LOCAL nDock, nTop, nLeft, nWidth >WITH THIS > * get values from table to variables. > nDock = myalias.t_Dock > nTop = myalias.t_Top > nLeft = myalias.t_Left > nWidth = myalias.t_Width > IF TYPE(".oToolBar")!='O' AND !ISNULL(.oToolBar) > .oToolBar = NEWOBJECT('table_bar','myocx.ocx') > ENDIF > * Call the DOCK() method of the toolbar and pass it > * the variables read from the table. > .oToolBar.DOCK(nDock,nLeft,nTop) > * > * Adjust the toolbar width as well > * (effects vertical or horozontial positioning when not docked). > .oToolBar.WIDTH = nWidth > .oToolBar.SHOW() >ENDWITH >endproc >>