Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Setting limit on CXTPReportRecordItemText
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Setting limit on CXTPReportRecordItemText

 Post Reply Post Reply
Author
Message
rag6419 View Drop Down
Newbie
Newbie
Avatar

Joined: 07 March 2006
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote rag6419 Quote  Post ReplyReply Direct Link To This Post Topic: Setting limit on CXTPReportRecordItemText
    Posted: 26 May 2006 at 9:00pm
I was wondering if anyone knew if there is a way to limit the length of text when modifying a CXTPReportRecordItemText.
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 27 May 2006 at 2:47pm
Just setup corresponding Edit Options. For example, when adding a column:

pColumn->GetEditOptions()->m_nMaxLength = 20;


--
WBR,
Serge
Back to Top
rag6419 View Drop Down
Newbie
Newbie
Avatar

Joined: 07 March 2006
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote rag6419 Quote  Post ReplyReply Direct Link To This Post Posted: 27 May 2006 at 5:18pm
m_nMaxLength isn't a member of CXTPReportRecordItemEditOptions.  We are using 9.80, is that something introduced after 9.80?
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 27 May 2006 at 5:43pm
Yes, it's available in recent versions only.

With 9.80 you can try to handle RequestEdit event, get inplace edit and limit it's text: GetReportCtrl().GetInplaceEdit()->SetLimitText(20);

--
WBR,
Serge
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.219 seconds.