Print Page | Close Window

Scroll bars and CXTPControlGalleryItem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=10677
Printed Date: 05 May 2024 at 12:12pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Scroll bars and CXTPControlGalleryItem
Posted By: terrym
Subject: Scroll bars and CXTPControlGalleryItem
Date Posted: 19 May 2008 at 6:05am

We have an override for CXTPControlGalleryItem and in the Draw handler we want to check if the scroll bar is shown or hidden.  How do you do this please???

Thanks
Terry


-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey



Replies:
Posted By: Oleg
Date Posted: 20 May 2008 at 12:46am

m_bShowScrollBar ? :)



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: terrym
Date Posted: 20 May 2008 at 11:17am
Originally posted by oleg oleg wrote:

m_bShowScrollBar ? :)

 
Yes but m_bShowScrollBar is a private member and there is no function for this :(, we are doing pGallery->m_bShowScrollBar
 
Is there a public function??? or do I need to move and this will be fixed for 12.0.1
 


-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey


Posted By: terrym
Date Posted: 20 May 2008 at 11:36am
Actually I assume:
 
CRect rc = pGallery->GetBorders();
 
would give us the Rect we require eg. rc.Width() is width of scrollbar ???
 
Found this after reading source code to XTP
 


-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey


Posted By: Oleg
Date Posted: 20 May 2008 at 1:21pm
Hi,

use rc parameter passed in Draw method - it always have right rectangle to draw - already border/scrollbar adjusted.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: terrym
Date Posted: 20 May 2008 at 5:44pm
Originally posted by oleg oleg wrote:

Hi,

use rc parameter passed in Draw method - it always have right rectangle to draw - already border/scrollbar adjusted.
 
This is not the case for our owner draw as it seems rc.Width() includes the scrollbar aswell
 


-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net