
August 20th, 2012, 10:41 AM
|
|
Registered User
|
|
Join Date: Aug 2012
Location: Halifax
Posts: 1
Time spent in forums: 32 m 43 sec
Reputation Power: 0
|
|
|
Overriding TCategoryPanel and TCategoryPanelGroup w/ redraw issues
Hi,
I have been beating my head off the wall for a while now and I haven't come across a solution yet. I'm reaching out for help because I've spent the better part of a week trying to figure this issue out, so I was wondering if anybody might know the answer to the following.
I decided that I needed to modify the TCategoryPanelGroup and TCategoryPanel classes, so I derived from TCustomCategoryPanelGroup and TCustomCategoryPanel and added some data-awareness to them, plus a field/values and icon drawing. It seems like everything is working properly when I put standard windows controls like TImage, TDBGrid, etc in the TCategoryPanels. However, I am using the Dev Express components which must have a different drawing mechanism, and when I put them in the TCategoryPanel, they don't redraw when scrolling, however, if I resize the TCategoryPanel, everything seems to redraw. Occasionally, when I click on either side of the thumb in the scrollbar it seems to draw correctly but not all the time.
I am not sure how to make the Dev Express components (specifically the TcxGrid and CardView) redraw while scrolling. I'm getting to the point where I don't care if its a hack and when scrolling by resizing the panel +/-1 one pixel, but there doesn't seem to be an onscroll event for the CategoryPanel.
Any help would be appreciated. I am currently working on making a small sample, but I don't think I'll be able to duplicate it without actual Developer Express components.
Thanks,
Chris
|