If your global application object would be goApp, the only thing you have to do is to add a property to goApp f.i.
IF !PEMSTATUS(goApp, "oMainToolBar", 5)
*- Check if the property already exists
goApp.AddProperty('oMainToolBar', .NULL.)
goApp.oMainToolbar = CREATEOBJECT('MyToollBar')
ENDIF
As soon as you want it to be shown you can call the tool bar's show method.
goApp.oMainToolBar.Show()
and yes, you can design a toolbar class. Just type in the command window:
CREATE CLASS
and you'll be prompted to choose a name, type (Toolbar), and the classlibrary in which you want to place your class.
If you choose one of the classlibs already used, it will be Ok.
HTH,
Weedz (Wietze Veld)
They cling emotionally to code and fix development rather than choosing practices based on analytical assesments of what works best. - Steve McConnell