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
>>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
>Bela,
>
>I just tried and _screen will not accept an OLEControl class.
>
>I then made a fomr, put in a pageframe, put the Progressbar control in Page1 and ran teh fomr. I saw the progressbar fine, of course it didn't do anything because I didn't tell it to, but it was there and visible.
>
>
>You are aware that when you programmatically add things to a container. like a pageframe's page, you must explicitly set its visible property to .T.?
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only