Guest User

Untitled

a guest
Aug 5th, 2012
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. Update wxTextCtrl without disturbing scroll position
  2. // k is line to update
  3. // update is new line contents
  4.  
  5. myTxtCtrl->Replace(
  6. myTxtCtrl->XYToPosition(0,k),
  7. myTxtCtrl->XYToPosition(0,k+1),
  8. update + L"n");
  9.  
  10. // the control has now scrolled to ensure line k is visible
  11.  
  12. myListCtrl->SetItem(k,0,update);
Advertisement
Add Comment
Please, Sign In to add comment