IUIX_Dialog::CheckItem Method

From PDF XChange PDF SDK
Jump to: navigation, search
Line 4: Line 4:
 
{{ToReview}}
 
{{ToReview}}
  
Changes state of object of [[PXV:IUIX_Label|IUIX_Label]] interface with [[PXV:UIX_LabelStyleFlags|''radio box'']] or [[PXV:UIX_LabelStyleFlags|''check box'']] flags specified.  
+
Changes item state in a dialog to '''checked''' or '''unchecked''' by item's text ID.
  
Object's state can be altered to '''checked''' or '''unchecked'''.
+
This method can be applied only to objects of [[PXV:IUIX_Label|IUIX_Label]] interface with [[PXV:UIX_LabelStyleFlags|''radio box'']] or [[PXV:UIX_LabelStyleFlags|''check box'']] flags specified.
  
 
== Syntax ==
 
== Syntax ==
Line 17: Line 17:
 
:[in]  Text ID of an item of [[PXV:IUIX_Label|IUIX_Label]] interface to check/uncheck.
 
:[in]  Text ID of an item of [[PXV:IUIX_Label|IUIX_Label]] interface to check/uncheck.
 
;nNewCheckState
 
;nNewCheckState
:[in]  BOOL value. Checks an item of set to TRUE, unchecks otherwise.
+
:[in]  Checks an item if set to TRUE, unchecks if set to FALSE.
 
;bUpdateRadioGroup
 
;bUpdateRadioGroup
:[in, defaultvalue(-1)]  Value of VARIANT_BOOL.
+
:[in, defaultvalue(-1)]  if set to VARIANT_TRUE, updates state of all ''radio boxes'' of the same group unchecking items that were in a '''checked''' state.
  
 
== Return Value ==
 
== Return Value ==

Revision as of 06:22, 15 May 2015


Changes item state in a dialog to checked or unchecked by item's text ID.

This method can be applied only to objects of IUIX_Label interface with radio box or check box flags specified.

Syntax

HRESULT CheckItem([in]                    BSTR          pItemID,
                  [in]                    LONG          nNewCheckState,
                  [in, defaultvalue(-1)]  VARIANT_BOOL  bUpdateRadioGroup);

Parameters

pItemID
[in] Text ID of an item of IUIX_Label interface to check/uncheck.
nNewCheckState
[in] Checks an item if set to TRUE, unchecks if set to FALSE.
bUpdateRadioGroup
[in, defaultvalue(-1)] if set to VARIANT_TRUE, updates state of all radio boxes of the same group unchecking items that were in a checked state.

Return Value

Returns S_OK if operation was successful or error code in other cases.

See Also

See also IUIX_Dialog.