Re: Admin abuse on this news group...
- From: Eric <Eric@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 12 Mar 2006 11:16:27 -0800
And he is not a MVP! What kind of answer is this?
VC++ 2005 Express Edition:
I have a textBox with the properties:
this->m_TextBox_Desc->Multiline = true;
this->m_TextBox_Desc->WordWrap = true;
this->m_TextBox_Desc->ScrollBars = ScrollBars::Vertical;
I read my database with a description for the user. I want to load each
line into a listView. With wordWrap and the Width of the textBox gives me
4 lines, but when I use:
m_TextBox_Desc->Text = database[L"Description"]->ToString();
array<System::String^>^ tempArray = gcnew array<System::String^>(
m_TextBox_Desc->Lines->Length );
tempArray = this->m_TextBox_Scripture->Lines;
I only get 1 line, How come? In MFC VC++ you can use functions
GetLineCount() and GetLine(n, (LPTSTR)pszText, sizeof(pszText)). Where
are the line breaks in the textBox?
Thanks for your help!..
Your problem stems from the fact that you stored a single string in the text
property of your text box that *appears* to be broken into substrings
because of the WordWrap property setting.
If you entered multiple lines into your text box through your interface
like:
"one" <Enter>
"two" <Enter>, etc.
each line would be stored as a separate element in your array. This is true
because of the escape sequences placed in your entry when the <Enter> key is
struck.
OTOH, if you enter "OneTwoThreeFourFiveSixSevenEight" (etc.) through your
interface (even though the entry will *appear* to be broken up into multiple
lines in your text box, it is a single string and will be treated as such.
this is a amature answer!......... Now I see why he deleting my re-post
because he does not belong on this medium answer professional question that
he can't answer.
--
Eric Miller
"Cor Ligthert [MVP]" wrote:
Eric,.
There is obviously something with this newsgroup.
- I see on Google for this newsgroup at the moment no messages
- I see on a single reader newsgroup server more messages (especially
yours) than on the Microsof server for this newsgroup.
I find it bolt from you to tell direct that Peter did that, however.
You see that this last message of you is not deleted, what obvious would be
right for that.
What are your proofs for that Peter did that?
Peter Jack of all trades, master of none is by me known as a more than very
correct person from which I cannot imagen the action you told.
Cor
"Eric" <Eric@xxxxxxxxxxxxxxxxxxxxxxxxx> schreef in bericht
news:491D8E77-9475-4AEF-B9B9-8AE1EC9EC9B8@xxxxxxxxxxxxxxxx
I have been trying to post help regarding getting text lines. It was not
answered correctly by pvdg42. So I repost it with more detail. And either
pvdg42 or pvdg42 friend who is a admin keeps deleting by repost for some
reason and will not tell state the reason.
--
Eric Miller
- References:
- Re: Admin abuse on this news group...
- From: Cor Ligthert [MVP]
- Re: Admin abuse on this news group...
- Prev by Date: System.Windows.Forms.HtmlDocument and mshtml.HTMLDocument
- Next by Date: Re: Admin abuse on this news group...
- Previous by thread: Re: Admin abuse on this news group...
- Next by thread: Re: Admin abuse on this news group...
- Index(es):
Relevant Pages
|
|