adding 'select all' semantics
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35039 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
00a7bd8596
commit
1a535eb9ee
@ -1389,6 +1389,11 @@ void wxMacUnicodeTextControl::GetSelection( long* from, long* to) const
|
||||
void wxMacUnicodeTextControl::SetSelection( long from , long to )
|
||||
{
|
||||
ControlEditTextSelectionRec sel ;
|
||||
if ((from == -1) && (to == -1))
|
||||
{
|
||||
from = 0 ;
|
||||
to = 32767 ; // sel has 16 bit signed values, max is 32767
|
||||
}
|
||||
sel.selStart = from ;
|
||||
sel.selEnd = to ;
|
||||
SetData<ControlEditTextSelectionRec>( 0 , kControlEditTextSelectionTag, &sel ) ;
|
||||
|
Loading…
Reference in New Issue
Block a user