Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to add Statusbar ActiveX control to _SCREEN object
Message
From
06/09/1997 18:36:51
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00048298
Message ID:
00048849
Views:
35
Hi Jim!
Thank you for all your answers. I made many experiment with this statusbar problem. At the end I choose a normal textbox on a toolbar docked to the bottom of the screen and Set Status Bar off. I use it without pageframe. I simply:
oToolbar=createobject(...)
But, I have a last question. I have not found any release method for toolbars like at forms.
So when I want my toolbar to close programatically, I issue Release oToolbar. But sometimes there are additional references for it, and toolbar doesnot disapper from memory. So I have to release all variable, which refer to this object. (It is documented in Dev. Guide) Is not there any better way, to destroy toolbars?
I saw the toolbar object with the debugger among forms of _SCREEN, but _SCREEN.removeobject() doesnot find my toolbar, but I also visually tested the name of it in the debugger, so it is there.

TIA

BB



>>Hi Jim!
>>
>>So, the way, I made my toolbar is different a little bit. I made a toolbar class, on which there is the Statusbar ActiveX control. The I made a pageframe class, on which I put the toolbar class. In a program I issue
>>oMyToolbar=createobject(....)
>>
>>So, in this scenario there was the problem I described. Can I not make toolbar from pageframe class, only from direct file with Do Form?
>>
>>BB
>Bela,
>
>Toolbars are sort of limited as to where they can live. I would simply make an OLECotrol class with teh statusbar in it and put that in your page.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform