Print Page | Close Window

Setting limit on CXTPReportRecordItemText

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=4292
Printed Date: 21 November 2024 at 3:01pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Setting limit on CXTPReportRecordItemText
Posted By: rag6419
Subject: Setting limit on CXTPReportRecordItemText
Date 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.



Replies:
Posted By: sserge
Date 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


Posted By: rag6419
Date 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?


Posted By: sserge
Date 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



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