Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ActiveBar and VFP : help ?
Message
From
26/05/1999 09:19:27
 
 
To
26/05/1999 05:13:19
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00222818
Message ID:
00222882
Views:
25
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform