Information générale
Catégorie:
Produits tierce partie
>I'm trying to use the datadynamics activebar control with VFP.
>
>I need to know how to attach the toolbar to the main VFP screen (_screen).
>
>Can anyone help me.
>
>TIA
Ricardo,
What you will have to do is create a form (keep it invisible) then AddObject the ActiveBar class to it. Once you have done this, you use the Detach and Attach methods of ActiveBar to move the toolbar from the form to the main window. You will need the WinHandle of your main _screen which you can get with FoxTools, the wHand class in _FFC or the Windows API... you might want to do a search in the API section for how to do this.
Once you have attached the ActiveBar to _screen you can release the form... the code would be something like...
oForm = createobj('Form')
oForm.AddObject('oToolbar','MyToolBar')
nHwnd = MainHwnd() && Foxtools function
oForm.oToolbar.Detach()
oForm.oToolbar.Attach( nHwnd )
goApp.oToolBar = oForm.oToolBar && need a reference after you close form
oForm = null
**********
I am not 100% sure if the Attach syntax is correct here.. been a while.
BOb
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