11-14-2007 04:49 AM
11-14-2007 05:01 AM
11-14-2007 06:38 AM
11-14-2007 06:39 AM
11-14-2007 07:11 AM
04-26-2016 09:42 AM
Hi, there is my question: Library function error (return value == -46 [0xffffffd2]). The attribute passed is not valid
and the code : SetCtrlAttribute(ciCVIPanel, ciCVIControl, ATTR_TEXT_POINT_SIZE, 10);
would you please help me check it? i have no idea about this issue.
04-26-2016 10:08 AM - edited 04-26-2016 10:10 AM
The error says all: you are addressing an attribute which cannot be operated on the control type you are using. It all depends on which control is pointed to by ciCVIControl variable.
A good option to know the attributes that can be use on a single control is to right-click on the control and select Control help: in the window that shows, select Control Attributes link and you will see a list of all valid attributes for that control type.
Alternatively, right-click on SetCtrlAttribute instruction and execute Recall function panel function (or press Ctrl+P) and click on Control attribute field: Select Attribute Constant dialogue will show where you can select the control type you want to operate on in the list on the left: in the right pane valid attributes only will be shown.
As a last note, it would be better in the future to open a new discussion instead of reviving a very old thread with a question that is only marginally related to it.