Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Two questions
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Two questions

 Post Reply Post Reply
Author
Message Reverse Sort Order
Makarand View Drop Down
Senior Member
Senior Member
Avatar

Joined: 27 February 2007
Location: India
Status: Offline
Points: 140
Post Options Post Options   Thanks (0) Thanks(0)   Quote Makarand Quote  Post ReplyReply Direct Link To This Post Topic: Two questions
    Posted: 12 May 2011 at 8:44am
I am able to set the multiline property by applying
pColumn->GetEditOptions()->m_dwEditStyle |= ES_MULTILINE | ES_AUTOVSCROLL;

but ES_AUTOVSCROLL is not setting. Please see attached screenshot.


any other way to set it?

-Mak
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: 02 August 2006 at 1:26pm
Hi,

1) For the column with multiline rows setup:
pColumn->GetEditOptions()->m_dwEditStyle |= ES_MULTILINE | ES_AUTOVSCROLL;
So, newline characters defined as '\r\n' will be proceeded correctly.

2) You'll have to implement your own CXTPReportRecordItem - derived cell class and owerwrite it's Draw method.

--
WBR,
Serge
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 02 August 2006 at 10:28am
Hi!
1) A report control with multiline items looks fine with the DT_WORDBREAK style. However, in edit mode the newline characters are drawn as squares. How can I enable multiline support in edit mode?
 
2) Is it possible to view bitmaps or simply owner-drawn cells in the report control? Icons can easily be loaded, but I need to fill the whole cell with image information. Thus, a 16x16 image is not enough.
 
Thanks in advance!
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.171 seconds.