Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't see active-x control on container
Message
From
28/06/2001 15:34:40
Patrick O'Neil
American Specialty Information Services
Roanoke, Indiana, United States
 
 
To
28/06/2001 15:20:33
Patrick O'Neil
American Specialty Information Services
Roanoke, Indiana, United States
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00524749
Message ID:
00524873
Views:
13
>>>>(i think i've seen this mentioned here before, but don't remember what the conclusion was).
>>>>
>>>>i put an active-x control on a container, but when i run the program, it does not show up. is that just the way it is, or can i do something about it ?
>>>>
>>>>specifically, i'm using the DateTime Picker control.
>>>
>>>
>>>i guess i should correct that ... when i display the container, the
>>>DateTime Picker control is not visible. when i click on the location where i put it, THEN it appears, and it works ok. ??? visible is .t.
>>
>>Sometimes when you set properties of ActiveX controls they do not really save when you save the form. So in the Init of the control, you need to programmatically set these properties
>
>
>
>aaarrgh. i tried that and several other related things, and still no luck.
>i found on microsoft KB the article "PRB: Visible Property of Container Ignored by ActiveX Controls" which is pretty much the inverse of my problem. that article said pretty much what you said: set the property of the activeX control explicitly. i tried refreshing the form, refreshing the container,
>setting zorder of control, etc ... still won't show. until i click on it.
>
>in the code that displays the container, i even called programatically clicked by issuing THISFORM.ole_occur_date.CLICK. no diff.
>
>one odd thing i noticed in trying different things to get the active-x
>control to show up on the container. i displayed the container, and
>no activex. the next statement caused an error and displayed the error
>message box. while the error messagebox was displayed, the activeX controls also became visible. when i close the error message box, the activex controls dissappeared again.
>
>pphhphhhlllllttt !!!!
YAB-A-DAB-A-DOO !!!

i should have read my description of the symptoms closer !  if i click on
the non-appearing active-x control, it would become visible.  setting the
visible property to .t. didn't make it appear.

how to make it appear ?   SETFOCUS to that control.  !!

boy, that's an expensive 2 lines of code !!
patrick
Previous
Reply
Map
View

Click here to load this message in the networking platform