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:
@@ -1389,6 +1389,11 @@ void wxMacUnicodeTextControl::GetSelection( long* from, long* to) const
|
|||||||
void wxMacUnicodeTextControl::SetSelection( long from , long to )
|
void wxMacUnicodeTextControl::SetSelection( long from , long to )
|
||||||
{
|
{
|
||||||
ControlEditTextSelectionRec sel ;
|
ControlEditTextSelectionRec sel ;
|
||||||
|
if ((from == -1) && (to == -1))
|
||||||
|
{
|
||||||
|
from = 0 ;
|
||||||
|
to = 32767 ; // sel has 16 bit signed values, max is 32767
|
||||||
|
}
|
||||||
sel.selStart = from ;
|
sel.selStart = from ;
|
||||||
sel.selEnd = to ;
|
sel.selEnd = to ;
|
||||||
SetData<ControlEditTextSelectionRec>( 0 , kControlEditTextSelectionTag, &sel ) ;
|
SetData<ControlEditTextSelectionRec>( 0 , kControlEditTextSelectionTag, &sel ) ;
|
||||||
|
Reference in New Issue
Block a user