Multiline editing |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Posted: 02 September 2006 at 8:22am |
I have a report control with multiple entries. Each entry contains text with an arbitrary number of lines. When editing these items, I want the edit box (and consequently the whole row) to be resized. If I enter a new line I want it to grow, and if I remove it, I want it to shrink again. How do I accomplish this behavior?
I did start to experiment a bit. I tried adding two new lines whenever editing is about to take place. This is a step in the right direction, but it does not solve my problem. Any ideas?
ON_NOTIFY(XTP_NM_REPORT_REQUESTEDIT, IDC_JOURNALVIEW_REPORT_JOURNAL, OnJournalTextEdit)
void CJournalView::OnJournalTextEdit(NMHDR *pNotifyStruct, LRESULT * /*result*/) |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |