Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - InvertColumnOnClick not working !?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

InvertColumnOnClick not working !?

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

Joined: 09 September 2004
Location: Germany
Status: Offline
Points: 451
Post Options Post Options   Thanks (0) Thanks(0)   Quote tobi Quote  Post ReplyReply Direct Link To This Post Topic: InvertColumnOnClick not working !?
    Posted: 23 October 2006 at 2:18pm
I´ve noticed that the property InvertColumnOnClick seems not to work if set to False when using Office2003 header styles ?
Is this by design ?
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: 24 October 2006 at 4:27am
Yes, that's true. But note that for Office2003 header style it is not inverting, just drawn each column state using gradient colors:
See properties:
    wndReportControl.PaintManager.ColumnXXX
 
Use the following way to set the same style:
wndReportControl.PaintManager.ColumnPushedGradientColorDark = wndReportControl.PaintManager.ColumnHotGradientColorDark
wndReportControl.PaintManager.ColumnPushedGradientColorLight = wndReportControl.PaintManager.ColumnHotGradientColorLight

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

Joined: 09 September 2004
Location: Germany
Status: Offline
Points: 451
Post Options Post Options   Thanks (0) Thanks(0)   Quote tobi Quote  Post ReplyReply Direct Link To This Post Posted: 24 October 2006 at 4:52pm
Thanks for that sserge,
 
but doesn´t it make sense to do that automatically if the property is set to false ? Perhaps a feature request ?
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: 25 October 2006 at 2:37pm
Well, I'm not completely sure, still looks like this shouldn't be done automatically -- there is a way to perform the task in 2 lines...

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

Joined: 09 September 2004
Location: Germany
Status: Offline
Points: 451
Post Options Post Options   Thanks (0) Thanks(0)   Quote tobi Quote  Post ReplyReply Direct Link To This Post Posted: 29 December 2006 at 9:23am
Dear Serge,
I just tried your solution to prevent the Office2003 header style from color-chaging if the users clicks on the header - it does not work !
It still changes colors ! I´m using 10.3.1 ...
 
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: 12 January 2007 at 4:07pm
Hi,

For me the following lines added to the end of Form_Load handler work pretty fine:


wndReportControl.PaintManager.ColumnPushedGradientColorDark = wndReportControl.PaintManager.ColumnHotGradientColorDark
wndReportControl.PaintManager.ColumnPushedGradientColorLight = wndReportControl.PaintManager.ColumnHotGradientColorLight
wndReportControl.PaintManager.ColumnStyle = xtpColumnOffice2003


--
WBR,
Serge
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.203 seconds.