Print Page | Close Window

Return and multiline

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=4934
Printed Date: 16 November 2024 at 8:55am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Return and multiline
Posted By: Paddy
Subject: Return and multiline
Date Posted: 31 August 2006 at 8:15am
Hi,

I have an multiline edit for inserting an address:

        CXTPPropertyGridItem* m_GridItem = m_Order->m_GridItem->AddChildItem(new CXTPPropertyGridItem(_T("Address"), _T("")));
        m_GridItem->SetMultiLinesCount(6);

How can I use the return inside the GridItem? I've tried it with:
        address.m_GridItem->SetEditStyle(ES_MULTILINE | ES_AUTOVSCROLL | ES_WANTRETURN);

But no success.
Can anyone give me an hint?

Greets,

Patrik





Replies:
Posted By: Oleg
Date Posted: 31 August 2006 at 8:42am
Hello,
Users can press Ctrl+Enter :)


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Paddy
Date Posted: 01 September 2006 at 4:16am
Hi Oleg,

thanks for the info.

It is clear people can use ctrl+enter - but not all windows users know that .

Most of them want the standard behaviour like in notepad: press return and you get a new line.
As CXTPPropertygrid already supports multilines I think it should also support ES_WANTRETURN.
What I would need is getting a new line by just pressing return.
Anyone has an hint?

Thanks,

Patrik



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net