Skip to content
  • There are no suggestions because the search field is empty.

RSView - Gadgets ActiveX Change Size at Runtime

Customers using RSView32 or RSViewSE may experience instances of the Industrial Gadgets ActiveX controls changing their size between design time and runtime. 

There is a documented setting that overcomes this.  The setting is covered in the product help files under INI File settings. That setting is in the INI files for the respective Industrial Gadgets components:

The setting is:

ForceResizeRedraw = 1

This must be set in the IndustrialGadgets1.ini, IndustrialGadgets2.ini, and IndustrialGadgetsPro.ini file if you plan to use all 3 components.

These files are found in \Program Files\Software Toolbox\Industrial Gadgets ActiveX\ if you used the default installation location.

Ideally, you should set this properly BEFORE you start building screens, as you will have to adjust your object sizes on existing objects if you make this setting after you have used the ActiveX.  For this reason, during installation, our installation program asks you which HMI you will be using the product with and makes this setting; however, sometimes users miss this or skip it, taking the default, which is to have ForceResizeRedraw = 1.

The root cause of this is beyond our control as the controls do not behave this way in VB6 and other standard VB containers.  We have found that RSView does not send the necessary ActiveX redraw commands to ActiveX controls when the size of the control is set, so with this setting, we force the control to repaint anytime size is set, even if it is not changed from the previous setting.