Plex 2E

  • 1.  Making combo box values visible but not selectable

    Posted Aug 08, 2016 03:22 AM

    How could one make a combo box field value not selectable but visible? The value should be displayed grayed out in the drop down list but selecting it should be prevented. I tried setting the values' Disabled property to Yes in the panel editor, but that did not work. I also tried to set the Exists property to No, and that caused the fields to disappear.



  • 2.  Re: Making combo box values visible but not selectable

    Broadcom Employee
    Posted Aug 08, 2016 04:52 AM

    Dear Juho,

    Please see "Enabled" on the  Combo Box Properties - CA Client Automation - 12.9 - CA Technologies Documentation

    Combo Box Properties

    Last update August 30, 2014

     

    A combo box or a list box is provided on the installation dialog, depending on the Input enabled specification. Both types of boxes provide a list of selectable values, but in the combo box, the user can alternatively enter another value.

    You can set the following properties:

    • Ctrl name
      Indicates the name of a dialog element. Control names within the dialog editor are predefined by the GUI. There is no need to change these names. However, if for some reason you want to change the name, you can do so for a selected element by changing the value in this field.
    • Value parameter
      Name of a parameter that contains the list of selectable values.
    • List of values
      Indicates the list of selectable values in the following format (without any spaces):
      value_1,value_2, ...,value_n
    • Result parameter
      Indicates the name of a parameter that contains the value selected from the list of selectable values.
    • Default value
      Indicates the value that appears as default value in the combo box or list box. The default value is automatically added to the list of selectable values.
    • Validation Script
      Indicates the input validation script. Choose a script from the drop-down list or click the browse button to browse for a script.
    • Action Script
      Indicates the script that is executed when the combo box is selected. Choose a script from the drop-down list or click the browse button to browse for a script.
    • Font
      Defines the font to be used for displaying the text. Clicking the browse icon displays the Font Chooser dialog where you can add or change font specifications.
    • Input enabled
      Specifies the combo box or list box type. If this check box is checked, a combo box is created on the installation dialog. If this check box is cleared, a list box is created.
    • Enabled
      Controls that the element is activated (or deactivated) by default. If you want to disable a specific field that is only activated on a specific event, you can use this property.

     

     

    Hope this helps,regards

    Thomas



  • 3.  Re: Making combo box values visible but not selectable

    Posted Aug 08, 2016 05:02 AM

    Ok, I'll check those.

     

    The panel is a WinC application, forgot to specify that.



  • 4.  Re: Making combo box values visible but not selectable
    Best Answer

    Broadcom Employee
    Posted Aug 08, 2016 09:36 AM

    Hi,

     

    Have you tried setting the Mode property to 'Edit' and the Disabled property to 'Yes'?

     

    Please read the "Disabled Property" entry of the Plex online help for more information:

     

    (1) select the Help menu in the Plex IDE

    (2) select contents and Index

    (3) select the "Search" tab

    (4) enter "disabled property", click the 'list topics' button, and then double click the topic with Rank '1'

     

    HTH,

    Stephen



  • 5.  Re: Making combo box values visible but not selectable

    Posted Aug 22, 2016 09:47 PM

    You may as want to set the event properties to Protected at the time initialization is done.  I don't remember if there is a difference between the Winwidgets and MFC control as to how the state reacts when it does behave correctly based on property settings.