From 24a62af3f8180fe65280c24cda81b69436fa929d Mon Sep 17 00:00:00 2001 From: David Elliott Date: Mon, 30 Jun 2003 14:27:42 +0000 Subject: [PATCH] Added call to SetValidator git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21514 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/choice.cpp | 1 + src/mac/choice.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/mac/carbon/choice.cpp b/src/mac/carbon/choice.cpp index a8cb9b6667..66e8bc107e 100644 --- a/src/mac/carbon/choice.cpp +++ b/src/mac/carbon/choice.cpp @@ -52,6 +52,7 @@ bool wxChoice::Create(wxWindow *parent, wxWindowID id, Str255 title ; MacPreControlCreate( parent , id , "" , pos , size ,style, validator , name , &bounds , title ) ; + SetValidator(validator); m_macControl = ::NewControl( MAC_WXHWND(parent->MacGetRootWindow()) , &bounds , title , false , 0 , -12345 , 0 , kControlPopupButtonProc + kControlPopupFixedWidthVariant , (long) this ) ; diff --git a/src/mac/choice.cpp b/src/mac/choice.cpp index a8cb9b6667..66e8bc107e 100644 --- a/src/mac/choice.cpp +++ b/src/mac/choice.cpp @@ -52,6 +52,7 @@ bool wxChoice::Create(wxWindow *parent, wxWindowID id, Str255 title ; MacPreControlCreate( parent , id , "" , pos , size ,style, validator , name , &bounds , title ) ; + SetValidator(validator); m_macControl = ::NewControl( MAC_WXHWND(parent->MacGetRootWindow()) , &bounds , title , false , 0 , -12345 , 0 , kControlPopupButtonProc + kControlPopupFixedWidthVariant , (long) this ) ;