Preferences dialog: convert to pdTextBox

I think that completes all the necessary text box replacements, with the
exception of the text up/down control (which needs some special
attention).
pdTextBox: fix double-click behavior when control is receiving focus