Пример #1
0
        public VScrolledWindow(Window parent, int id, Point pos, Size size, long style, string name)
            : this(wxVScrolledWindow_ctor(Object.SafePtr(parent), id, ref pos, ref size, (uint)style, name))
        {
            onGetLineHeight = new Virtual_IntInt(OnGetLineHeight);

            wxVScrolledWindow_RegisterVirtual(wxObject, onGetLineHeight);
        }
Пример #2
0
        public VListBox(Window parent, int id, Point pos, Size size, int style, string name)
            : this(wxVListBox_ctor(Object.SafePtr(parent), id, ref pos, ref size, (uint)style, name))
        {
            onDrawItem       = new Virtual_VoidDcRectSizeT(DoOnDrawItem);
            onMeasureItem    = new Virtual_IntInt(OnMeasureItem);
            onDrawSeparator  = new Virtual_VoidDcRectSizeT(DoOnDrawSeparator);
            onDrawBackground = new Virtual_VoidDcRectSizeT(DoOnDrawBackground);
            onGetLineHeight  = new Virtual_IntInt(OnGetLineHeight);

            wxVListBox_RegisterVirtual(wxObject,
                                       onDrawItem,
                                       onMeasureItem,
                                       onDrawSeparator,
                                       onDrawBackground,
                                       onGetLineHeight);
        }
Пример #3
0
 [DllImport("wx-c"), System.Security.SuppressUnmanagedCodeSecurity] static extern void wxVListBox_RegisterVirtual(IntPtr self,
                                                                                                                  Virtual_VoidDcRectSizeT onDrawItem,
                                                                                                                  Virtual_IntInt onMeasureItem,
                                                                                                                  Virtual_VoidDcRectSizeT onDrawSeparator,
                                                                                                                  Virtual_VoidDcRectSizeT onDrawBackground,
                                                                                                                  Virtual_IntInt onGetLineHeight);
Пример #4
0
 [DllImport("wx-c"), System.Security.SuppressUnmanagedCodeSecurity] static extern void wxVScrolledWindow_RegisterVirtual(IntPtr self, Virtual_IntInt onGetLineHeight);