Hi,
I am trying to create an add-on command button to the VFP 8 Standard toolbar. I am having trouble with getting the Click event to work properly. Does anyone know what the code here should be for the click event to take in the "do ..." command?
if wvisible('Standard')
release oTbr
public oTbr
oTbr = createobject('toolbar')
oTbr.addobject('cmdProjects','commandbutton')
oTbr.cmdProjects.Height = 26
oTbr.cmdProjects.Width = 58
oTbr.cmdProjects.Name = 'cmdProjects'
oTbr.cmdProjects.Caption = '\<Projects'
oTbr.cmdProjects.Click("do home()+'Utils\Appmgr.app'")
oTbr.cmdProjects.Visible = .t.
oTbr.dock(0)
oTbr.show()
endif
Thanks,
markathon
I am trying to create an add-on command button to the VFP 8 Standard toolbar. I am having trouble with getting the Click event to work properly. Does anyone know what the code here should be for the click event to take in the "do ..." command?
if wvisible('Standard')
release oTbr
public oTbr
oTbr = createobject('toolbar')
oTbr.addobject('cmdProjects','commandbutton')
oTbr.cmdProjects.Height = 26
oTbr.cmdProjects.Width = 58
oTbr.cmdProjects.Name = 'cmdProjects'
oTbr.cmdProjects.Caption = '\<Projects'
oTbr.cmdProjects.Click("do home()+'Utils\Appmgr.app'")
oTbr.cmdProjects.Visible = .t.
oTbr.dock(0)
oTbr.show()
endif
Thanks,
markathon