Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to add Statusbar ActiveX control to _SCREEN object
Message
From
04/09/1997 16:51:08
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00048298
Message ID:
00048588
Views:
40
Hi Jim!

Thank you for your suggestion. I tested it, and there is a problem. VFP send an error message, that "Object class is invalid for this container". After it I tried a Toolbar in pageframe. The problem with this, that at runtime ActiveX controls (I test it with Statusbar and Slider) only became visible, when I click on them. (More precisely: on their empty place.) I made a toolbar class and a pageframe class with it. At run time I issue
oMyObject=AddObject("MyPageFrame","MyPageFrame")
oMyobject.MyToolbar.Visible=.t.

Other object on the toolbar, like textboxes became visible at once, except ActiveX controls.

What did I go wrong?

BB

>>Hi Edward!
>>
>>Thanks your answer! I am not familiar with toolbars.
>>Is it possible, if I position the toolbar to the bottom of _SCREEN, that user cannot move it away?
>>
>>BB
>Bela,
>
>Create an OLEControl class (name OLEStatus) and put the status bar ocx in it. Then just
>
> _screen.addobject("OLEStatus","OLEStatus")
> _screen.OLEStatus.Top =
> _screen.OLEStatus.Visible = .T.
>
>You can then refer to the status bar with _screen.OLEStatus or _screen.OLEStatus.Object You need the Object keyword if you are accessing a property or method for which both the statusbar and the container use the same name.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform