Fixed wxMac's wxTextCtrl::SetSelection so that (-1,-1) will select the

entire value like other ports do.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20145 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2003-04-11 22:38:56 +00:00
parent 4365da58c8
commit ef4a634b1b
2 changed files with 184 additions and 174 deletions

View File

@ -1194,6 +1194,11 @@ void wxTextCtrl::Remove(long from, long to)
void wxTextCtrl::SetSelection(long from, long to)
{
if ( from == -1 )
from = 0;
if ( to == -1 )
to = GetLastPosition();
if ( !m_macUsesTXN )
{

View File

@ -1194,6 +1194,11 @@ void wxTextCtrl::Remove(long from, long to)
void wxTextCtrl::SetSelection(long from, long to)
{
if ( from == -1 )
from = 0;
if ( to == -1 )
to = GetLastPosition();
if ( !m_macUsesTXN )
{