- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am displaying a default item in an edit box.
The user wants to enter a new item, and so highlights it and types over it. How can I display the item already highlighted?
Thanks
David
Steve - Please sort out the forum so that the most recent postings are displayed at the top, or everybody will be giving their subject names as AAAAAAAAAAAA.... Better still give an option to sort by date or subject. It will soon become unmanagable as you will not see easily the new postings, so there will be less chance that people will respond to your postings.
The user wants to enter a new item, and so highlights it and types over it. How can I display the item already highlighted?
Thanks
David
Steve - Please sort out the forum so that the most recent postings are displayed at the top, or everybody will be giving their subject names as AAAAAAAAAAAA.... Better still give an option to sort by date or subject. It will soon become unmanagable as you will not see easily the new postings, so there will be less chance that people will respond to your postings.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Giving focus to the edit box should do it, no? (like if the user tabs to the edit box)
-John
-John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
...or, more straight:
iSt=SendMessage(GetDlgItem(hDlg,IDC_EDITBOX), EM_SETSEL, 0, -1)
HTH
Jugoslav
iSt=SendMessage(GetDlgItem(hDlg,IDC_EDITBOX), EM_SETSEL, 0, -1)
HTH
Jugoslav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Using Set Focus only places the cursor in the edit box,
I had to use EM_SETSEL to highlight the text.
It's a pity with CVF that you have to know the answer before the help is any good.
Thanks.
David
I had to use EM_SETSEL to highlight the text.
It's a pity with CVF that you have to know the answer before the help is any good.
Thanks.
David
![](/skins/images/BC9A7A3465121B56B278007F4EE8899F/responsive_peak/images/icon_anonymous_message.png)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page