Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Report Control - Scroll Bars
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Report Control - Scroll Bars

 Post Reply Post Reply
Author
Message
antony30bc View Drop Down
Newbie
Newbie


Joined: 04 April 2005
Location: United States
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote antony30bc Quote  Post ReplyReply Direct Link To This Post Topic: Report Control - Scroll Bars
    Posted: 04 April 2005 at 3:01pm

I have a report control with HScroll bars enabled. One of the columns in this control has long text, however the HScroll bar only lets me scroll another 50 pixels before it ends. Well before the end of the text. I have tried making the column size an arbitrarily large number at creation, but it does not affect this.

Is their some maximum inner-width of the control? 

Stephen Goldberg
AT&T Labs

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: 06 April 2005 at 4:34am
Hi Stephen,

For the moment each column size is limited by the control's width.

--
WBR,
Sergey
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: 06 April 2005 at 4:45am

Thank you for this. Yes we had maximum available width, but seems you right, need to change it.

 

please open XTPReportHeader.cpp

find

int CXTPReportHeader::GetMaxAvailWidth(CXTPReportColumn* pColumnCheck)

 

and replace

if (!m_bAutoColumnSizing)
  return nTotalWidth;

to

if (!m_bAutoColumnSizing)
  return 32000;

 

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.094 seconds.