Implement ShowPosition() for single-line wxTextCtrl (wxGTK)
This commit is contained in:
parent
f208cfc886
commit
2c2e0aaa01
@ -163,6 +163,7 @@ wxGTK:
|
||||
- Fix displaying labels of wxRadioBox items.
|
||||
- Add a native implementation for clearing bitmap/window wxGraphicsContexts
|
||||
- Implement XYToPosition() for single-line wxTextCtrl.
|
||||
- Implement ShowPosition() for single-line wxTextCtrl.
|
||||
|
||||
wxMSW:
|
||||
|
||||
|
@ -1444,6 +1444,11 @@ void wxTextCtrl::ShowPosition( long pos )
|
||||
else
|
||||
gtk_text_view_scroll_mark_onscreen(GTK_TEXT_VIEW(m_text), mark);
|
||||
}
|
||||
else // single line
|
||||
{ // This function not only shows character at required position
|
||||
// but also places the cursor at this position.
|
||||
gtk_editable_set_position(GTK_EDITABLE(m_text), pos);
|
||||
}
|
||||
}
|
||||
|
||||
wxTextCtrlHitTestResult
|
||||
|
Loading…
Reference in New Issue
Block a user