Information générale
Catégorie:
Gestionnaire d'écran & Écrans
no, not really - you don't need a formset to use toolbars
true it is the way VFP sets it up when you add a toolbar in the designer
a simple example for adding a toolbar to a top level form:
create a top level form
add a propery to the form: oToolbar
put a commandbutton on it and add the following code to the click event:
set classlib to test
thisform.otoolbar=createobject("testtlb")
thisform.otoolbar.show()
create a toolbar class (testtlb in test.vcx)
set the showwindow property of the toolbar to 1 (in top level form)
run the form
Arnon
>
>I created a top-level form and wanted to include a toolbar with it. As
we
>all know, you have to have a formset in order to include a toolbar. I
did
>this and set the toolbar's ShowWindow property to In top-level form. But
>it never would be visible. Has anyone been able to include a toolbar in
a
>top-level form successfully?
>
>Thanks.
>Steve
>
>
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement