Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLEControl npt visible til it gets focus?
Message
De
20/12/2004 08:41:18
 
 
À
17/12/2004 16:12:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Divers
Thread ID:
00969929
Message ID:
00970578
Vues:
15
I have used the tree view control before (assuming that's what MSComctlLibTreeCtrl.2 is) and don't recall any problem like what you are experiencing. But I have never used the Slider control. There are a few other tree view controls that you might try. I use the Stonefield one which I think is freely available from them. I actually got it from a FoxTalk article some time back. Maybe you could try that one out and see if the problem goes away.

>There are two different ActiveX guys causing me difficulties:
>
>[1] MSComctlLibTreeCtrl.2
>[2] Comctl.Slider.1
>
>Jim
>
>>I have heard of certain ActiveX controls not behaving properly with VFP because of their imperfect implementation and the fact that VFP does not have hwnds for every object on a form (I believe VFP itself gets one hwnd and the VFP forms don't get their own hwnd).
>>
>>Which activeXes are you using?
>>
>>>Frank --
>>>
>>>Thanks for the suggestions. They are just dropped onto the form at design time.
>>>
>>>I guess that I could indeed set focus to them at design time and then tab to the next control in sequence once they get focus the first time. This seems kind of odd to me, however --- I can't believe that this is a normal problem -- I doubt my uniqueness in that regard. What if I had a couple of 'em on a form, what then?
>>>
>>>Thanks
>>>
>>>>Hi James,
>>>>
>>>>how are you adding the controls to the form? Programmatically or dropping them on the form at design time? If adding programmatically you may need to set the visible property to .T. (but then again setting focus to them wouldn't work unless they were visible), if dropping them on the form at design time, maybe as a work around you can set focus to them first so they become visible and then set focus to the control you actually want to have focus.
>>>>
>>>>>I have a OLEControl which seems to only be visible once it gets focus.
>>>>>
>>>>>That is, it's visible if it's first in tab order on the form; or if not, it only becomes visible when I tab to it.
>>>>>
>>>>>I'm actually having this behavior with two different OLEControls on different forms. Clearly, there's something I don't understand here.
>>>>>
>>>>>Help!
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform