Exemple #1
0
        public void Append(string text)
        {
            IntPtr ptr = MarshalHelper.StringToUTF8(text);

            uiRadioButtonsAppend(handle, ptr);
            Marshal.FreeHGlobal(ptr);
        }
Exemple #2
0
        public void Append(string text)
        {
            IntPtr ptr = MarshalHelper.StringToUTF8(text);

            uiMultilineEntryAppend(handle, ptr);
            Marshal.FreeHGlobal(ptr);
        }
Exemple #3
0
        public void Append(string text)
        {
            IntPtr ptr = MarshalHelper.StringToUTF8(text);

            uiComboboxAppend(handle, ptr);
            Marshal.FreeHGlobal(ptr);
        }
Exemple #4
0
        private static IntPtr CreateWindow(string title, int width, int height, bool hasMenuBar)
        {
            IntPtr ptr    = MarshalHelper.StringToUTF8(title);
            IntPtr handle = uiNewWindow(ptr, width, height, hasMenuBar == true ? 1 : 0);

            Marshal.FreeHGlobal(ptr);
            return(handle);
        }
Exemple #5
0
        private static IntPtr CreateGroup(string title)
        {
            IntPtr ptr    = MarshalHelper.StringToUTF8(title);
            IntPtr handle = uiNewGroup(ptr);

            Marshal.FreeHGlobal(ptr);
            return(handle);
        }
Exemple #6
0
        private static IntPtr CreateButton(string text)
        {
            IntPtr ptr    = MarshalHelper.StringToUTF8(text);
            IntPtr handle = uiNewButton(ptr);

            Marshal.FreeHGlobal(ptr);
            return(handle);
        }
Exemple #7
0
        public void InsertAt(string name, UInt64 before, UIControl c)
        {
            IntPtr ptr = MarshalHelper.StringToUTF8(name);

            uiTabInsertAt(handle, ptr, before, c.handle);
            Marshal.FreeHGlobal(ptr);
            children.Insert((int)before, c);
        }
Exemple #8
0
        public void Append(string name, UIControl c)
        {
            IntPtr ptr = MarshalHelper.StringToUTF8(name);

            uiTabAppend(handle, ptr, c.handle);
            Marshal.FreeHGlobal(ptr);
            children.Add(c);
        }
Exemple #9
0
        public UIMenuItem AppendCheckItem(string name)
        {
            IntPtr namePtr = MarshalHelper.StringToUTF8(name);
            IntPtr ptr     = uiMenuAppendCheckItem(handle, namePtr);

            Marshal.FreeHGlobal(namePtr);
            UIMenuItem item = new UIMenuItem(ptr);

            items.Add(item);
            return(item);
        }
Exemple #10
0
        public void MessageBox(string title, string description, bool error = false)
        {
            IntPtr titlePtr       = MarshalHelper.StringToUTF8(title);
            IntPtr descriptionPtr = MarshalHelper.StringToUTF8(description);

            if (error)
            {
                uiMsgBoxError(handle, titlePtr, descriptionPtr);
            }
            else
            {
                uiMsgBox(handle, titlePtr, descriptionPtr);
            }
            Marshal.FreeHGlobal(titlePtr);
            Marshal.FreeHGlobal(descriptionPtr);
        }