PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Rainer Wiedemann on December 14, 2007, 11:32:42 AM

Title: Hide an ocx-control
Post by: Rainer Wiedemann on December 14, 2007, 11:32:42 AM
Hi,
how can I hide an ocx-contorl? the normal ways control show stat and ff_control_showstat don't work?
regards Rainer
Title: Re: Hide an ocx-control
Post by: TechSupport on December 14, 2007, 02:46:22 PM
?

I just tried the OCX Calendar example that comes with FireFly. The following seems to work:

   FF_Control_ShowState HWND_FORM1_OCXCONTROL1, %SW_HIDE


Title: Re: Hide an ocx-control
Post by: Rainer Wiedemann on December 14, 2007, 04:13:44 PM
Thanks for your answer. I use ScottsLED.ocx and gave him the name KLED on the form. I use the following:
FF_Control_ShowState HWND_KONFIG_KLED,%SW_HIDE                               
(The forms name is KONFIG.) but nothing happens. The other functions of the ocx work fine. KONFIG is a form on a Tab-Control. I just tried Disable and Kill nothing happens...
Title: Re: Hide an ocx-control
Post by: Rainer Wiedemann on December 14, 2007, 04:53:21 PM
Okay, now it works - I changed nothing at this code. I compiled a few times and suddenly, it does?!?!?!?
Title: Re: Hide an ocx-control
Post by: Rainer Wiedemann on December 14, 2007, 05:37:49 PM
But I've an other problem: when I want to set the progid of ocx and call the integratet combrowsaer, I get listet all ocx, bat the text is not readable. all lines are things like: Ö@°   ÃŸ#%%$ and so on. If I doubleclick on a line I get the right infos of this. So I have to try a lot of lines to find the right ocx. What's that. Some month ago it was okay. The standalone typlibbrowser works okay.
Title: Re: Hide an ocx-control
Post by: TechSupport on December 16, 2007, 07:27:10 PM
Quote from: Rainer Wiedemann on December 14, 2007, 05:37:49 PM
But I've an other problem: when I want to set the progid of ocx and call the integratet combrowsaer, I get listet all ocx, bat the text is not readable. all lines are things like: Ö@°   ß#%%$ and so on. If I doubleclick on a line I get the right infos of this. So I have to try a lot of lines to find the right ocx. What's that. Some month ago it was okay. The standalone typlibbrowser works okay.

Strange. I get all of the text to display. I have attached the TypeLib Browser DLL for you to try. It is the one that I am using.



[attachment deleted by admin]
Title: Re: Hide an ocx-control
Post by: Rainer Wiedemann on December 18, 2007, 06:16:55 AM
Thanks for the DLL, but the same error. I attach a screenshot of the typelib.