Add ability to search text with a right-click.
Clean up XTextBox initialization a bit.