Type | Description | |||
Handle as Variant |
The Handle parameter can be:
|
The following VB sample changes the appearance for the check boxes:
With Record1 .BeginUpdate .Images "gBJJgBAICAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1BAmBhOCwMKwuDw2ExWJxmIx2HyGLx+SyONyuTy2UzUKv9Jy+HTJmjOh0eiAGk0+m1Gr1Wt0uv1MZz+C1mw2ux3G33WuzuewUs1Dx4QA4Tx4nD4sTf/K5kQ5sP5mow/A03J63D53Z6Ha5fc6Om3tH6cr1Dq83H43X9PY7ft7vu7+y3/k6vI+3r43e/Xw52o8KjPGlTyvO8x1PRA71Oe98FvixzqIzAsEPuAAZkyGcFQw7z/P+okApRAcDQjCMEwS/cGOk+cBNNETzuTCsLxfCkLQy/joQ3DihQ8jbUHHHoARZEMWwnEsauXFDOPpCECPPGMmxnJ0LxNBscKHHSNR5H0enHH8lyDA0SQnDTTSs2EtS5A0oQPNMYylG8qJ/MjcTNOcfSBM8JPxA7+zHFMPtNOktxjO0XSfQsovhN03p7OLUG7RwAUBSE6y7O8wTzI6WyxLdIztEbhzS5M90VHM+x20xr1QAFHG7SVNyzScvUrIbh0xB9W1vTlKU840YwTRNRp1RlT1TVBr1VR9IzNTshUvPkkRUjNk1fV0t2XL9ZuNX9gJxYSM2KAFv2/VdcWnO9B1pZ1Mz/ctpWpc1KV88Ftp5brct43bbXvfT5WfP183/e2AXw3F53pUqptnfqqMvgqd4SzGIYfiTN4jimJszjGK4VhqaosHyV4+jyQJEkgAJKlGTpw52OJyiiNnAAGYZfmKUZhmSNZtmuaZnm6M5znmdZ7mmhZ/nGd6NoWXI1pSMoCA==" .CheckImage(0) = 1 .CheckImage(1) = 2 With .Add("Boolean", EXRECORDLibCtl.CheckValueType) .Option(exCheckValue2) = 1 .Value = True End With .EndUpdate End With
The following VC sample changes the appearance for the check boxes:
m_record.BeginUpdate(); CString s( "gBJJgBAICAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1BAmBhOCwMKwuDw2ExWJxmIx2HyGLx+SyONyuTy2UzUKv9Jy+HTJmjOh0eiAGk0+m1Gr1Wt0uv1MZz+C1mw2ux3G33WuzuewUs1Dx4QA4Tx4nD4sTf/K5kQ5sP5mow/A03J63D53Z6Ha5fc6Om3tH6cr1Dq83H43X9PY7ft7vu7+y3/k6vI+3r43e/Xw52o8KjPGlTyvO8x1PRA71Oe98FvixzqIzAsEPuAAZkyGcFQw7z/P+okApRAcDQjCMEwS/cGOk+cBNNETzuTCsLxfCkLQy/joQ3DihQ8jbUHHHoARZEMWwnEsauXFDOPpCECPPGMmxnJ0LxNBscKHHSNR5H0enHH8lyDA0SQnDTTSs2EtS5A0oQPNMYylG8qJ/MjcTNOcfSBM8JPxA7+zHFMPtNOktxjO0XSfQsovhN03p7OLUG7RwAUBSE6y7O8wTzI6WyxLdIztEbhzS5M90VHM+x20xr1QAFHG7SVNyzScvUrIbh0xB9W1vTlKU840YwTRNRp1RlT1TVBr1VR9IzNTshUvPkkRUjNk1fV0t2XL9ZuNX9gJxYSM2KAFv2/Vd" ); s = s + "cWnO9B1pZ1Mz/ctpWpc1KV88Ftp5brct43bbXvfT5WfP183/e2AXw3F53pUqptnfqqMvgqd4SzGIYfiTN4jimJszjGK4VhqaosHyV4+jyQJEkgAJKlGTpw52OJyiiNnAAGYZfmKUZhmSNZtmuaZnm6M5znmdZ7mmhZ/nGd6NoWXI1pSMoCA=="; m_record.Images(COleVariant( s )); m_record.SetCheckImage( 0, 1 ); m_record.SetCheckImage( 1, 2 ); COleVariant vtMissing; vtMissing.vt = VT_ERROR; CEditor editor = m_record.Add( COleVariant("Boolean"), /*CheckValueType*/ 19, vtMissing ); editor.SetOption( /*exCheckValue2*/ 17, COleVariant( long(1) ) ); COleVariant vtValue; vtValue.vt = VT_BOOL; V_BOOL( &vtValue ) = VARIANT_TRUE; editor.SetValue( vtValue ); m_record.EndUpdate();