Delphi Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreDelphi Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 20th, 2012, 10:41 AM
slice27 slice27 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2012
Location: Halifax
Posts: 1 slice27 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
  #2  
Old August 20th, 2012, 12:42 PM
clivew clivew is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2006
Location: Carlsbad, CA
Posts: 2,045 clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 2 h 37 m
Reputation Power: 382
If you are correct in deducing that this is exclusively an issue with Dev Express components then
you need to address your question to Dev Express support.

Either way, it looks as if the repaint/refresh message is not being sent appropriately to these components
or they are not responding appropriately when receiving it.

Clive

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreDelphi Programming > Overriding TCategoryPanel and TCategoryPanelGroup w/ redraw issues

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap