Print Page | Close Window

CXTPScrollBar::EnableScrollBar() problem

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=7492
Printed Date: 20 April 2024 at 3:01am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPScrollBar::EnableScrollBar() problem
Posted By: Jimor Marlow
Subject: CXTPScrollBar::EnableScrollBar() problem
Date Posted: 01 July 2007 at 2:38am
Hi,

CXTPScrollBar     m_sbOnes; // Horz scrollbar
...
sbOnes.EnableScrollBar( ESB_DISABLE_LEFT );
or
sbOnes.EnableScrollBar( ESB_DISABLE_RIGHT );

do nothing, I couldn't even change any scrollbar arrow state. What's my problem?



Replies:
Posted By: Oleg
Date Posted: 01 July 2007 at 3:52am
Hi,
 
call sbOnes.EnableWindow(FALSE); instead


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


Posted By: Jimor Marlow
Date Posted: 01 July 2007 at 9:01am
It's not the same. I don't want do disable whole scrollbar, I just want to disable left scrollbar arrow when current tumb position is 0, and disable only right arrow in the final position but another arrow and tumb should be functional. CScrollBar can do it.


Posted By: Oleg
Date Posted: 02 July 2007 at 4:26am
Hello,
 
CXTPScrollBar can't. sorry. We will check what can be done for future releases.


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


Posted By: Jimor Marlow
Date Posted: 02 July 2007 at 4:32pm
It would be great, спасибо :)

PS. FYI: CScrollBar has some issues. To disable another arrow you should enable both before. I don't know why MSFT did it in this way, may be bug too.

// Sample to disable only left arrow (horz scrollbar)
m_sbTab.EnableScrollBar( ESB_ENABLE_BOTH );
m_sbTab.EnableScrollBar( ESB_DISABLE_LEFT );
...
// and now disable only right arrow (horz scrollbar)
m_sbTab.EnableScrollBar( ESB_ENABLE_BOTH );
m_sbTab.EnableScrollBar( ESB_DISABLE_RIGHT );


Posted By: Oleg
Date Posted: 03 July 2007 at 1:40am
Hello,
 
Main problem with EnableScrollBar method that there is no API function for all OS (including win95) to check what buttons was disabled  using this function


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


Posted By: terrym
Date Posted: 16 August 2007 at 10:32am
Not sure if you have any idea, but I am having other problems with scroll bars, please see http://forum.codejock.com/forum_posts.asp?TID=7810 - http://forum.codejock.com/forum_posts.asp?TID=7810
 
Any help appreciated
 


-------------
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