![]() |
InplaceEdit |
Post Reply ![]() |
Author | ||
MarkZ ![]() Newbie ![]() Joined: 18 June 2015 Location: Manchester Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() Posted: 18 June 2015 at 10:37am |
|
Hi Guys
Evaluating Report Control and I'm wondering is there anyway I can have greater control over the Inplace editor. Ideally I would like to restrict the input to numeric only as well as the length. I have tried the following with no success CXTPReportInplaceEdit* b = GetReportCtrl().GetInplaceEdit(); b = GetReportCtrl().GetInplaceEdit(); b->ModifyStyle(0, ES_NUMBER); b->SetLimitText(2); is it possible?
|
||
Mark.0161
|
||
![]() |
||
olebed ![]() Senior Member ![]() Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
|
Hello Mark,
Use CXTPReportRecordItemNumber instead CXTPReportInplaceEdit. For example you can look at Samples\ReportControl\ReportDialog\MessageRecord.h Samples\ReportControl\ReportDialog\MessageRecord.cpp Regards, Oleksandr Lebed |
||
![]() |
||
olebed ![]() Senior Member ![]() Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
|
CXTPReportInplaceEdit takes ES_ and other style options from editOptions
This member Create() is called on every new using of InplaceEdit. So you need to change CXTPReportRecordItemEditOptions of RecordItem or ReportColumn which hold this item.
|
||
![]() |
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 |