ActiveX Combobox on wrong page

Hi everyone, 

Updating one app to 2018 r2 from citect scada 2015, an activex that displays a form with a list of items appears just in the main monitor. The client has a multimonitor function with two monitors. If the operator opens de form on the second display, the list appears on the main one.  

here the activex - 

  

any idea what is going on?

thanks. 

Parents
  • Hi,

    Since V2018 you can use so called maps. It's very to create a combobox like this:

    In this case the text is linked to an interger in the controller. This requires some initialisation of the map, i.e. the translation of the value:

    sEnumMap = Enum_AddEnum("ControlModeEnum"); // Add a new enumeration

    IF sEnumMap <> "" THEN
    MapValueSet(sEnumMap, 0, "Automatic" ); // Add the enumeration values
    MapValueSet(sEnumMap, 1, "Manual" );
    MapValueSet(sEnumMap, 2, "Cascade" );
    MapValueSet(sEnumMap, 3, "Local" );
    MapValueSet(sEnumMap, 4, "Computer" );
    END

    In the combobox genie you can use

    MapValueGet("ControlModeEnum",IntToStr(TagInTheController))

    This removes the need for activex comboboxes and makes life easier when upgrading. As a bonus the genie will never be shown on a different monitor.

Reply
  • Hi,

    Since V2018 you can use so called maps. It's very to create a combobox like this:

    In this case the text is linked to an interger in the controller. This requires some initialisation of the map, i.e. the translation of the value:

    sEnumMap = Enum_AddEnum("ControlModeEnum"); // Add a new enumeration

    IF sEnumMap <> "" THEN
    MapValueSet(sEnumMap, 0, "Automatic" ); // Add the enumeration values
    MapValueSet(sEnumMap, 1, "Manual" );
    MapValueSet(sEnumMap, 2, "Cascade" );
    MapValueSet(sEnumMap, 3, "Local" );
    MapValueSet(sEnumMap, 4, "Computer" );
    END

    In the combobox genie you can use

    MapValueGet("ControlModeEnum",IntToStr(TagInTheController))

    This removes the need for activex comboboxes and makes life easier when upgrading. As a bonus the genie will never be shown on a different monitor.

Children
No Data