git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55799
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
If both parameters are equal to -1 all text in the control is selected.
If both parameters are equal to -1 all text in the control is selected.
+ Notice that the insertion point will be moved to @a from by this
+ function.
+
@param from
The first position.
@param to
@param from
The first position.
@param to
if ( from == -1 && to == -1 )
from = 0;
if ( from == -1 && to == -1 )
from = 0;
- gtk_editable_select_region(GetEditable(), from, to);
+ // for compatibility with MSW, exchange from and to parameters so that the
+ // insertion point is set to the start of the selection and not its end as
+ // GTK+ does by default
+ gtk_editable_select_region(GetEditable(), to, from);
}
void wxTextEntry::GetSelection(long *from, long *to) const
}
void wxTextEntry::GetSelection(long *from, long *to) const