Movatterモバイル変換


[0]ホーム

URL:


Wayback Machine
9 captures
25 Jan 2008 - 20 May 2013
AugJANDec
Previous capture04Next capture
200920122013
success
fail
COLLECTED BY
Organization:Alexa Crawls
Starting in 1996,Alexa Internet has been donating their crawl data to the Internet Archive. Flowing in every day, these data are added to theWayback Machine after an embargo period.
Collection:Alexa Crawls
Starting in 1996,Alexa Internet has been donating their crawl data to the Internet Archive. Flowing in every day, these data are added to theWayback Machine after an embargo period.
TIMESTAMPS
loading
The Wayback Machine - https://web.archive.org/web/20120104185522/http://www.codeproject.com:80/KB/edit/promptedit.aspx
Click here to Skip to main content
8,384,724 members and growing!
EmailPassword Lost password?
Home
Search within:




Licence BSD
First Posted 28 Sep 2002
Views 47,253
Downloads 834
Bookmarked 30 times

Prompting user for values from a CEdit

ByTanzim Husain | 28 Sep 2002
This article presents a special CEdit, that prompts the user for a value entry
 
See Also
Print Article
add
Add to your CodeProject bookmarks
Discuss
Discuss this article
  4.25 (12 votes)
1 vote, 14.3%
1

2

3

4
6 votes, 85.7%
5
4.25/5 - 12 votes
μ 4.25, σa 2.65 [?]
Sponsored Links

Sample Image - PromptEdit.gif

Introduction

I got the idea for this control after looking at some website, where the text boxes in forms contained tagged text like <enter your name here>, that went away once the text box got input focus. I thought that was a great idea, and here's my MFC version of the same thing. You can set different colors to the prompt text my setting theSetPromptShowMode(PromptShowModeEnum) member. You can also control whether the prompt text will go away one the user has left the edit control without entering any value or not by setting theSetRegainPrompt(bool). You can always check whether the prompt text is active by callingGetPromptTextActive(void). And of course there'sSetPromptText(LPCTSTR) and another overloaded version that you can use to set the prompt text.

License

This article, along with any associated source code and files, is licensed underThe BSD License

About the Author

Tanzim Husain

Web Developer

United States United States

Member


loading...
Sign Up to vote  PoorExcellent
Add a reason or comment to your vote:x
Votes of 3 or less require a comment

Comments and Discussions

 
 Refresh 
-- There are no messages in this forum --
Permalink |Advertise |Privacy |Mobile
Web02 |2.5.120104.1 |Last Updated 29 Sep 2002
Article Copyright 2002 by Tanzim Husain
Everything elseCopyright ©CodeProject, 1999-2012
Terms of Use
Layout:fixed|fluid

The Daily Insider

[8]ページ先頭

©2009-2025 Movatter.jp