Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - Return and multiline
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Return and multiline

 Post Reply Post Reply
Author
Message
Paddy View Drop Down
Groupie
Groupie


Joined: 28 July 2003
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote Paddy Quote  Post ReplyReply Direct Link To This Post Topic: Return and multiline
    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


Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 31 August 2006 at 8:42am
Hello,
Users can press Ctrl+Enter :)
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Paddy View Drop Down
Groupie
Groupie


Joined: 28 July 2003
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote Paddy Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.