|
Hey,
Maybe you can try adding some html code in your code,,, simply type <html> at the beginning of a string command, like the string property of the uicontrol. But I don't know if there's a way in html for making what you want, it's just a suggestion.
"Andrew " <jtk1000@yahoo.com> wrote in message <i027nt$dkc$1@fred.mathworks.com>...
> Hello all,
>
> I was curious if anyone knew how set up an editable text field in such a way that whenever it was selected it would automatically highlight any text that was present in the field so that the user could simply begin typing in the new info. I attempted to use the 'ButtonDownFcn' to highlight the text whenever the user selected the field. However, this callback only works when the user clicked within a few pixels of the field but not when the user actually clicked inside the text field. If you have any ideas or suggestions it would be much appreciated. Thanks
|