Exemple #1
0
        private unsafe bool GetIsChecked()
        {
            Variant pOutput = Variant.Create(0);
            IntPtr  what    = CheckBox_c.GetValue(_pointer, pOutput.Pointer);
            bool    result  = Variant.FromPointer(what).AsInt32() == 1;

            pOutput.Dispose();

            return(result);
        }
Exemple #2
0
        public static Checkbox Create(string name, string text, bool defaultValue, bool horizontalSpacer = false)
        {
            IntPtr pView = CheckBox_c.Create(name, text, defaultValue, horizontalSpacer);

            if (pView == IntPtr.Zero)
            {
                return(null);
            }

            return(new Checkbox(pView));
        }
Exemple #3
0
 public override void Dispose()
 {
     CheckBox_c.Deconstructor(_pointer);
 }