Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I delete me custom toolbar?

Status
Not open for further replies.

Thmemuar

Programmer
Sep 23, 2002
8
CA
Hi.

I was experimenting with custom toolbars, and created one. Then I tried to add it to my top-level form. An instance of it is in the same window, but not really on the form, and doesn't show up when I run it. Furthermore, it created a Formset where there wasn't one before.

I don't want this toolbar (or the Formset it added) now, since I can't get it to work properly anyway, but I can't seem to remove it. It's *always* lurking behind my main form.

How can I remove the toolbar (and Formset)?

Thanks.
 
I am not sure about previous versions, but in VFP7 you can click on menu option 'Form' (while you are editing the form)and then click on 'Remove Form Set'.

KKZ
 
KKZ (Programmer) and Thmemuar

I am not sure about previous versions, but in VFP7 you can click on menu option 'Form' (while you are editing the form)and then click on 'Remove Form Set'.

Same for VFP6.0 AND VFP5.0.


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first
 
Thmemuar

Formsets are relics of the past so if you want a toolbar in a top-level form, add a new property called .oToolbarand put :-

WITH THISFORM
[tab]IF ISNULL(.oToolBar)
[tab][tab].oToolBar = CREATEOBJECT([tbrFileList])
[tab][tab].oToolBar.Dock(0,0,0)
[tab][tab].oToolBar.Show()
[tab]ENDI
ENDW


in the .Activate() event of the form.

To reference the toolbar in a top-level form :-

PUBLIC oMyTopLevelForm
DO FORM MyTopLevelForm NAME oMyTopLevelForm LINKED
oMyTopLevelForm.oToolbar.cmdTop.Click()
HTH

Chris [pc2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top