Example #1
0
        public HtmlListBox(Window parent, int id, Point pos, Size size, long style, string name)
            : this(wxHtmlListBox_ctor2(Object.SafePtr(parent), id, ref pos, ref size, (uint)style, name))
        {
            virtual_VoidNoParams      = new Virtual_VoidNoParams(RefreshAll);
            virtual_VoidSizeT         = new Virtual_VoidSizeT(SetItemCount);
            virtual_wxStringSizeT1    = new Virtual_wxStringSizeT(OnGetItem);
            virtual_wxStringSizeT2    = new Virtual_wxStringSizeT(OnGetItemMarkup);
            virtual_wxColourwxColour1 = new Virtual_wxColourwxColour(DoGetSelectedTextColour);
            virtual_wxColourwxColour2 = new Virtual_wxColourwxColour(DoGetSelectedTextBgColour);
            virtual_OnDrawItem1       = new Virtual_OnDrawItem(DoOnDrawItem);
            virtual_OnMeasureItem1    = new Virtual_OnMeasureItem(OnMeasureItem);
            virtual_OnDrawItem2       = new Virtual_OnDrawItem(DoOnDrawSeparator);
            virtual_OnDrawItem3       = new Virtual_OnDrawItem(DoOnDrawBackground);
            virtual_OnMeasureItem2    = new Virtual_OnMeasureItem(OnGetLineHeight);


            wxHtmlListBox_RegisterVirtual(wxObject, virtual_VoidNoParams,
                                          virtual_VoidSizeT,
                                          virtual_wxStringSizeT1,
                                          virtual_wxStringSizeT2,
                                          virtual_wxColourwxColour1,
                                          virtual_wxColourwxColour2,
                                          virtual_OnDrawItem1,
                                          virtual_OnMeasureItem1,
                                          virtual_OnDrawItem2,
                                          virtual_OnDrawItem3,
                                          virtual_OnMeasureItem2);
        }
Example #2
0
 [DllImport("wx-c"), System.Security.SuppressUnmanagedCodeSecurity] static extern void wxHtmlListBox_RegisterVirtual(IntPtr self,
                                                                                                                     Virtual_VoidNoParams refreshAll,
                                                                                                                     Virtual_VoidSizeT setItemCount,
                                                                                                                     Virtual_wxStringSizeT onGetItem,
                                                                                                                     Virtual_wxStringSizeT onGetItemMarkup,
                                                                                                                     Virtual_wxColourwxColour getSelectedTextColour,
                                                                                                                     Virtual_wxColourwxColour getSelectedTextBgColour,
                                                                                                                     Virtual_OnDrawItem onDrawItem,
                                                                                                                     Virtual_OnMeasureItem onMeasureItem,
                                                                                                                     Virtual_OnDrawItem onDrawSeparator,
                                                                                                                     Virtual_OnDrawItem onDrawBackground,
                                                                                                                     Virtual_OnMeasureItem onGetLineHeight);