+void wxControl::SetIntValue(int val)
+{
+ FormType* form = GetParentForm();
+ if(form==NULL)
+ return;
+ uint16_t index = FrmGetObjectIndex(form, GetId());
+ if(index==frmInvalidObjectId)
+ return;
+ FrmSetControlValue(form, index, val);
+}
+
+void wxControl::SetBoolValue(bool val)
+{
+ SetIntValue(val?1:0);
+}
+
+bool wxControl::GetBoolValue() const
+{
+ FormType* form = GetParentForm();
+ if(form==NULL)
+ return false;
+ uint16_t index = FrmGetObjectIndex(form, GetId());
+ if(index==frmInvalidObjectId)
+ return false;
+ return ( FrmGetControlValue(form, index) == 1 );
+}
+