How to set a checkbox in a infopower recordview in runtime.
How do I configure a control attached to a boolean field, with true or false values on runtime.
-
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
Please sign in to leave a comment.
Comments
3 comments