Skip to main content

Passing an ActiveX Control

  • September 7, 2011
  • 3 replies
  • 0 views

[Migrated content. Thread originally posted on 01 September 2011]

Hello,
I am trying to improve performance of one of my programs that is using several visual ActiveX controls, in a thin client environment. I am loading a blank control, and adjusting all of the properties of the control at run time, as AcuBench does not expose all of the control's properties during design time. This is what is slowing down the execution of the program. So, what I'd like to do is load these ActiveX controls once, adjust the appropriate properties, then use a saved external handle/instance of the control to display it if the program is called a second time. Is there a way to accomplish this? Or if not, can anyone explain to me how to get AcuBench to expose all of the properties of the control to me at design time? The control we're using is the CodeJock CommandBars control.

Thanks

3 replies

Stephen Hjerpe
  • Participating Frequently
  • 1100 replies
  • September 7, 2011

[Migrated content. Thread originally posted on 01 September 2011]

Hello,
I am trying to improve performance of one of my programs that is using several visual ActiveX controls, in a thin client environment. I am loading a blank control, and adjusting all of the properties of the control at run time, as AcuBench does not expose all of the control's properties during design time. This is what is slowing down the execution of the program. So, what I'd like to do is load these ActiveX controls once, adjust the appropriate properties, then use a saved external handle/instance of the control to display it if the program is called a second time. Is there a way to accomplish this? Or if not, can anyone explain to me how to get AcuBench to expose all of the properties of the control to me at design time? The control we're using is the CodeJock CommandBars control.

Thanks
In AcuBench when delaing with ActiveX controls, the initial state is saved ina file, i.e. Res-Tag-1

01 Screen1.
03 Screen1-WB-1, @WebBrowser,
COL 12.00, LINE 3.00, LINES 19.00 CELLS,
SIZE 32.00 CELLS,
ID IS 1, INITIAL-STATE (ActiveX-Res, "Res-Tag-1").

If you can establish the properties that you want to initialize, you can make your own Res-Tag-1 type of file and compile with that.

  • Author
  • Rocketeer
  • 19312 replies
  • September 12, 2011

[Migrated content. Thread originally posted on 01 September 2011]

Hello,
I am trying to improve performance of one of my programs that is using several visual ActiveX controls, in a thin client environment. I am loading a blank control, and adjusting all of the properties of the control at run time, as AcuBench does not expose all of the control's properties during design time. This is what is slowing down the execution of the program. So, what I'd like to do is load these ActiveX controls once, adjust the appropriate properties, then use a saved external handle/instance of the control to display it if the program is called a second time. Is there a way to accomplish this? Or if not, can anyone explain to me how to get AcuBench to expose all of the properties of the control to me at design time? The control we're using is the CodeJock CommandBars control.

Thanks
I've found Res-Tag-1 in the PROGRAM.res file, and I can't interpret it at all. It looks like the following:

Res-Tag-1 aGanajfEaacvaGaaaaaaaaaaaaagaaaaaaaa

How would I go about rewriting this info to match properties of the ActiveX control?

Thanks

Stephen Hjerpe
  • Participating Frequently
  • 1100 replies
  • September 14, 2011

[Migrated content. Thread originally posted on 01 September 2011]

Hello,
I am trying to improve performance of one of my programs that is using several visual ActiveX controls, in a thin client environment. I am loading a blank control, and adjusting all of the properties of the control at run time, as AcuBench does not expose all of the control's properties during design time. This is what is slowing down the execution of the program. So, what I'd like to do is load these ActiveX controls once, adjust the appropriate properties, then use a saved external handle/instance of the control to display it if the program is called a second time. Is there a way to accomplish this? Or if not, can anyone explain to me how to get AcuBench to expose all of the properties of the control to me at design time? The control we're using is the CodeJock CommandBars control.

Thanks
Sadly, I'm not sure .. I was hoping that placing the control in Visual Studio and looking at the properties may help gain some knowledge as to what settings are placed in res-tag