Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Containers-Guess I don't get it
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00103587
Message ID:
00103680
Views:
24
>>>>Not knowing where this fits in your application it's hard to be specific but it sounds like you need a 'read events' after setting the class to visible=.T.
>>>>
>>>>Bob
>>>
>>>OK, that did the trick. . .sort of. Now when change the visible=.t., the container displays behind the pageframe where I am calling it. How do I get it to display on top?
>>>
>>>TIA,
>>>
>>>Bill
>>
>>Bill, try this.ZOrder(0) in container.init()
>>
>>Nick
>
>That doesn't seem to help. Interestingly enough, I am trying to get the container to display on a page of a pageframe where there are two other controls, cttree and cttext (ActiveX controls). It displays behind them but if I switch to a page without those controls, its on top. I tried to reorder the OCX controls (zorder(1)) but that doesn't help. (I hadn't yet frozen the ability to move from page to page when the container is up).
>
>Any other suggestions? Maybe this container just has to be another form.
>
>TIA,
>
>Bill

From my experience, ActiveX controls (at least TreeView and others I used) don't react to ZOrder method, and always stay on top. Somebody here suggested to issue SYS(2333, 0) in Form.Load to fix ActiveX behaviour (and then SYS(2333, 1) but for me it didn't fix this problem. I think you can try to make it another form.

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform