コード例 #1
0
 public ExControl(IExBaseUIEle oParent, string sClassName, string sTitle, int x, int y, int nWidth, int nHeight,
                  int dwStyle = -1, int dwStyleEx = -1, int dwTextFormat = -1, int nID = 0, int hTheme = 0, ExObjProcDelegate pfnObjProc = null)
 {
     m_hObj = ExAPI.Ex_ObjCreateEx(dwStyleEx, sClassName, sTitle, dwStyle, x, y, nWidth, nHeight, oParent.Handle, nID, dwTextFormat, 0, (IntPtr)hTheme, pfnObjProc);
     if (m_hObj != IntPtr.Zero)
     {
     }
     else
     {
         throw new ExException(ExStatus.HANDLE_INVALID, "创建控件失败");
     }
 }
コード例 #2
0
 public TestCustomCtrl(IExBaseUIEle pOwner, string sText, int x, int y, int nWidth, int nHeight)
     : base(pOwner, "TestCustomCtrl", sText, x, y, nWidth, nHeight)
 {
 }
コード例 #3
0
 public ExButton(IExBaseUIEle oParent, string sTitle, int x, int y, int nWidth, int nHeight)
     : base(oParent, "Button", sTitle, x, y, nWidth, nHeight)
 {
 }
コード例 #4
0
 public ExComboBox(IExBaseUIEle oParent, string sTitle, int x, int y, int nWidth, int nHeight)
     : base(oParent, "ComboBox", sTitle, x, y, nWidth, nHeight)
 {
 }
コード例 #5
0
 public ExBaseLayout(int nType, IExBaseUIEle objBind)
 {
     m_hLayout = (IntPtr)ExAPI._layout_create(nType, objBind.Handle);
 }
コード例 #6
0
ファイル: ExEdit.cs プロジェクト: TenminsPark/ExDirectUI.NET
 public ExEdit(IExBaseUIEle pOwner, string sText, int x, int y, int nWidth, int nHeight, int dwTextFormat = -1)
     : base(pOwner, "Edit", sText, x, y, nWidth, nHeight, -1, -1, dwTextFormat)
 {
 }
コード例 #7
0
 public ExStatic(IExBaseUIEle pOwner, byte[] pImageData, int x, int y, int nWidth, int nHeight)
     : base(pOwner, "Static", null, x, y, nWidth, nHeight)
 {
     SetBackgroundImage(pImageData, 0, 0, 0, IntPtr.Zero, 0, 255, true);
 }
コード例 #8
0
 public ExTreeView(IExBaseUIEle oParent, string sTitle, int x, int y, int nWidth, int nHeight)
     : base(oParent, "TreeView", sTitle, x, y, nWidth, nHeight)
 {
 }
コード例 #9
0
ファイル: ExPage.cs プロジェクト: TenminsPark/ExDirectUI.NET
 ExPage(IExBaseUIEle oParent, string sTitle, int x, int y, int nWidth, int nHeight)
     : base(oParent, "Page", sTitle, x, y, nWidth, nHeight)
 {
 }
コード例 #10
0
 public ExAbsoluteLayout(IExBaseUIEle objBind)
     : base(ELT_ABSOLUTE, objBind)
 {
 }
コード例 #11
0
        public static int Show(string sText, string sCaption = null, int uType = 0, int dwFlags = 0, IExBaseUIEle pOwner = null)
        {
            IntPtr hOwner = pOwner == null ? IntPtr.Zero : pOwner.Handle;

            return(ExAPI.Ex_MessageBox(hOwner, sText, sCaption, uType, dwFlags));
        }
コード例 #12
0
        public static int Show(IExBaseUIEle pOwner, string sText, string sCaption, int uType, string sCheckbox, ref bool pfChecked, int dwTimeout, int dwFlags, ExWndProcDelegate pfnWndProc = null)
        {
            IntPtr hOwner = pOwner == null ? IntPtr.Zero : pOwner.Handle;

            return(ExAPI.Ex_MessageBoxEx(hOwner, sText, sCaption, uType, sCheckbox, ref pfChecked, dwTimeout, dwFlags, pfnWndProc));
        }
コード例 #13
0
 public ExProgressBar(IExBaseUIEle oParent, string sTitle, int x, int y, int nWidth, int nHeight)
     : base(oParent, "Progress", sTitle, x, y, nWidth, nHeight)
 {
 }
コード例 #14
0
 public ExScrollBar(IExBaseUIEle oParent, string sTitle, int x, int y, int nWidth, int nHeight)
     : base(oParent, "ScrollBar", sTitle, x, y, nWidth, nHeight)
 {
 }