From b15f9375cb61b427c70fe60d3362c9c8eee19e03 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Tue, 30 Sep 2008 19:28:06 +0000 Subject: [PATCH] supporting NO_BORDER for Cocoa as well git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55990 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/cocoa/textctrl.mm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/osx/cocoa/textctrl.mm b/src/osx/cocoa/textctrl.mm index 7b7189e7d8..b5c896241e 100644 --- a/src/osx/cocoa/textctrl.mm +++ b/src/osx/cocoa/textctrl.mm @@ -141,6 +141,12 @@ wxWidgetImplType* wxWidgetImpl::CreateTextControl( wxTextCtrl* wxpeer, NSRect r = wxOSXGetFrameForControl( wxpeer, pos , size ) ; wxNSTextField* v = [[wxNSTextField alloc] initWithFrame:r]; [sv addSubview:v]; + + if ( style & wxNO_BORDER ) + { + [v setBezeled:NO]; + [v setBordered:NO]; + } //[v setBezeled:NO]; //[v setEditable:NO];