Comments

3 comments

  • Roy Woll

    It is stored in the ControlType property.  You can manipulate it directly or use a procedure defined in vcl.wwcommon as follows.

    uses vcl.wwcommon;

       wwDataSet_SetControl(wwrecordviewpanel1, 'Buyer', 'CheckBox', 'True;False');
       wwrecordviewpanel1.RecreateControls;

    0
    Comment actions Permalink
  • Hector eduardo ballinas espinosa

    I am trying to understand:

    wwrecordviewpanel1...is the ww control.

    buyer...What is this?

    checkbox... is the type

    true:false...values.

    Can you give me the syntax or more information about?

    0
    Comment actions Permalink
  • Roy Woll

    For undocumented methods, open our source code. In this case see vcl.wwcommon.pas. The method is defined there.  The first parameter in your case would be the recordviewpanel, the second parameter is the filename, the third parameter defines it as checkbox, and the last parameter is the string value stored for checked/unchecked.

    procedure wwDataSet_SetControl(DataSet: TComponent; AFieldName: string;
      AComponentType: string; AParameters: string);

    To see how it is stored, you can modify the properties of selected at design time, and then view your dfm file to see the format.

     

    -Roy

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk