Question Dynamic OCX?

jdpjamesp

ProgressTalk.com Moderator
Staff member
Is it possible to add an ocx to a screen at runtime? If so, how?
I am creating a dashboard where users can select what they see and how it looks from a preset list of widgets. Some of those widgets would probably be web browsers or graphs from an ocx package. As I don't know how many they want to add I can't just create them static and hide them until needed.
 
In adm2/Dynamics - yes it is possible. But they do not place the OCX itself at runtime on a frame, instead they instantiate a smart object that contains the OCX.

src/adm2/dyntreeview.w is the static object that contains the Treeview OCX ( although it has "dyn" in its name ... ), whereas src/adn2/treeview.p is the class super procedure.

I think what you need to do is to wrap the OCX in container ( a frame ) in it's own procedure and then invoke that when you need it - utilizing the same concept as the adm2/Dynamics.

Heavy Regards, RealHeavyDude.
 
Ahh ok yeah that might work. That way you get the wrx etc. Will have to play about. Will do the simple stuff first like browses as I know how to do those dynamically and already have a library to do that.
 
Back
Top