Path: news.mathworks.com!not-for-mail
From: "Deepak" <deepak.trivedi@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Auto select editable text on tab in gui
Date: Tue, 14 Jul 2009 00:07:05 +0000 (UTC)
Organization: PSU
Lines: 6
Message-ID: <h3gi79$otp$1@fred.mathworks.com>
Reply-To: "Deepak" <deepak.trivedi@gmail.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1247530025 25529 172.30.248.35 (14 Jul 2009 00:07:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 14 Jul 2009 00:07:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 878978
Xref: news.mathworks.com comp.soft-sys.matlab:555188


Usually, in a GUI, when you press tab to go to a editable field, its contents are automatically selected, so that when you type something, the original contents get replaced by what you type. Apparently, Matlab GUIs do not do that by default. How can I do this? Basically in my GUI, each user input field has some default values. If the user wants to change these, he/she should simply be able to reach the field by pressing tab a few times, and then type in the new value. Right now, the user will have to first delete the original contents. 

Any help will be highly appreciated. 

Regards,
Deepak