fixes horizontal scrolling in textfields, fixes #12322

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2010-08-17 06:21:53 +00:00
parent 9572bf1d44
commit 3f16e51be8

View File

@@ -708,6 +708,12 @@ wxWidgetImplType* wxWidgetImpl::CreateTextControl( wxTextCtrl* wxpeer,
// FIXME: How can we remove the native control's border? // FIXME: How can we remove the native control's border?
// setBordered is separate from the text ctrl's border. // setBordered is separate from the text ctrl's border.
} }
NSTextFieldCell* cell = [v cell];
[cell setScrollable:YES];
// TODO: Remove if we definitely are sure, it's not needed
// as setting scrolling to yes, should turn off any wrapping
// [cell setLineBreakMode:NSLineBreakByClipping];
[v setBezeled:NO]; [v setBezeled:NO];
[v setBordered:NO]; [v setBordered:NO];