]> git.saurik.com Git - wxWidgets.git/commitdiff
Make sure the user can't select the text.
authorKevin Ollivier <kevino@theolliviers.com>
Sun, 8 Mar 2009 03:32:37 +0000 (03:32 +0000)
committerKevin Ollivier <kevino@theolliviers.com>
Sun, 8 Mar 2009 03:32:37 +0000 (03:32 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59423 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/stattext.mm

index 74e3aad2f6806e92ac2608b04fae3108b9b74aaa..41840bcc08900f52a3f04c60fdcc1d2f9159771c 100644 (file)
@@ -118,6 +118,7 @@ wxWidgetImplType* wxWidgetImpl::CreateStaticText( wxWindowMac* wxpeer,
 
     [v setEditable:NO];
     [v setDrawsBackground:NO];
 
     [v setEditable:NO];
     [v setDrawsBackground:NO];
+    [v setSelectable: NO];
     [v setString: wxCFStringRef( label , wxpeer->GetFont().GetEncoding() ).AsNSString()];
     
     NSRange allText = NSMakeRange(0, label.length());
     [v setString: wxCFStringRef( label , wxpeer->GetFont().GetEncoding() ).AsNSString()];
     
     NSRange allText = NSMakeRange(0, label.length());