Hide an ocx-control

Started by Rainer Wiedemann, December 14, 2007, 11:32:42 AM

Previous topic - Next topic

Rainer Wiedemann

Hi,
how can I hide an ocx-contorl? the normal ways control show stat and ff_control_showstat don't work?
regards Rainer

TechSupport

?

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

   FF_Control_ShowState HWND_FORM1_OCXCONTROL1, %SW_HIDE



Rainer Wiedemann

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...

Rainer Wiedemann

Okay, now it works - I changed nothing at this code. I compiled a few times and suddenly, it does?!?!?!?

Rainer Wiedemann

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.

TechSupport

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]

Rainer Wiedemann

Thanks for the DLL, but the same error. I attach a screenshot of the typelib.