Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - [SOLVED] Prevent a group row from being collapsed?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[SOLVED] Prevent a group row from being collapsed?

 Post Reply Post Reply
Author
Message
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Topic: [SOLVED] Prevent a group row from being collapsed?
    Posted: 18 December 2008 at 4:57pm
How?
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 26 December 2008 at 2:58pm
Hi;
No solution for this?
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 26 December 2008 at 5:00pm

You can try to build own version of Toolkit dll where class

CXTPReportGroupRow will have developer-controlled BOOL flag m_bEnable with TRUE as default (assigned in c-tor) and function

void CXTPReportGroupRow::OnClick(CPoint ptClicked)

will allows to Expand or Collapse based on this flag

Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 27 December 2008 at 4:18pm
Hi;
That's no option for us due to version change management and company internal specifications. We have to do it by only derive from existing classes of the toolkit...
And I want the expand/collapse button bitmap also to be removed from this kind of group row. So I also have to draw the group row with my own paint manager.
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 27 December 2008 at 10:43pm
OK - let's propose to implement this idea in release 13
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: 28 December 2008 at 11:00am
You've got my vote!
PokerMemento - http://www.pokermemento.com/
Back to Top
larryp View Drop Down
Groupie
Groupie


Joined: 15 January 2005
Location: United States
Status: Offline
Points: 61
Post Options Post Options   Thanks (0) Thanks(0)   Quote larryp Quote  Post ReplyReply Direct Link To This Post Posted: 01 April 2010 at 3:30pm
Did this ever get implemented because this is also something I need?
 
Larry
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 28 February 2011 at 5:17pm
Hi;

is this possible now? At least in version 15.0.1?

Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 22 March 2011 at 1:06pm
This feature has been added for 15.0.3.

You can either call "CXTPReportControl::LockExpand()" to lock collapsing/expanding for the entire control or "CXTPReportRow::LockExpand()" to lock a single row.
You can still collapse/expand rows from code.

Codejock support
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 22 March 2011 at 1:20pm
Thanks;

I'll try it!
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1355
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Posted: 22 March 2011 at 1:37pm
Hi Andre,

Is this functionality exposed in the ActiveX 15.0.3 as well? I ask because right now I am using some ugly hacks to prevent group rows from being expanded/collapsed under certain circumstances and it would be nice to just have a property to control this.

Thanks.
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6

Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 22 March 2011 at 3:30pm
Originally posted by jpbro jpbro wrote:

Hi Andre,

Is this functionality exposed in the ActiveX 15.0.3 as well? I ask because right now I am using some ugly hacks to prevent group rows from being expanded/collapsed under certain circumstances and it would be nice to just have a property to control this.

Thanks.


Yes. This is available in the ActiveX version as well.

Codejock support
Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1355
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Posted: 22 March 2011 at 7:10pm
Great, thanks a lot!
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6

Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 01 April 2011 at 4:02am
Originally posted by ABuenger ABuenger wrote:

This feature has been added for 15.0.3.
You can either call "CXTPReportControl::LockExpand()" to lock collapsing/expanding for the entire control or "CXTPReportRow::LockExpand()" to lock a single row.
You can still collapse/expand rows from code.
Hi;
I tested your snapshot, but a double click onto the group row still expands/collapses the child rows.
Thats not wanted when LockExpand(TRUE) is set!  
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 01 April 2011 at 12:01pm
Codejock support
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.156 seconds.