X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b629d6d933fbf7356b2d077b28a7edfcefb42347..c75d190a0ac1671b1d2af75ba8928716d77bf823:/include/wx/textctrl.h diff --git a/include/wx/textctrl.h b/include/wx/textctrl.h index 541a331246..29806404bd 100644 --- a/include/wx/textctrl.h +++ b/include/wx/textctrl.h @@ -106,7 +106,7 @@ const wxTextCoord wxInvalidTextCoord = -2; // automatically detect the URLs and generate the events when mouse is // moved/clicked over an URL // -// this is for Win32 richedit controls only so far +// this is for Win32 richedit and wxGTK2 multiline controls only so far #define wxTE_AUTO_URL 0x1000 // by default, the Windows text control doesn't show the selection when it @@ -477,7 +477,7 @@ typedef void (wxEvtHandler::*wxTextUrlEventFunction)(wxTextUrlEvent&); #define wxTextEventHandler(func) wxCommandEventHandler(func) #define wxTextUrlEventHandler(func) \ - (wxObjectEventFunction)wxStaticCastEvent(wxTextUrlEventFunction, &func) + (wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(wxTextUrlEventFunction, &func) #define wx__DECLARE_TEXTEVT(evt, id, fn) \ wx__DECLARE_EVT1(wxEVT_COMMAND_TEXT_ ## evt, id, wxTextEventHandler(fn))