Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ActiveBar and VFP : help ?
Message
De
26/05/1999 09:19:27
 
 
À
26/05/1999 05:13:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
00222818
Message ID:
00222882
Vues:
24
>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
Fil
Voir

Click here to load this message in the networking platform