![]() |
CXTPScrollBar::EnableScrollBar() problem |
Post Reply ![]() |
Author | |
Jimor Marlow ![]() Groupie ![]() Joined: 03 June 2007 Location: Russian Federation Status: Offline Points: 30 |
![]() ![]() ![]() ![]() ![]() 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? |
|
![]() |
|
Oleg ![]() Senior Member ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
call sbOnes.EnableWindow(FALSE); instead
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Jimor Marlow ![]() Groupie ![]() Joined: 03 June 2007 Location: Russian Federation Status: Offline Points: 30 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
|
Oleg ![]() Senior Member ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello,
CXTPScrollBar can't. sorry. We will check what can be done for future releases.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Jimor Marlow ![]() Groupie ![]() Joined: 03 June 2007 Location: Russian Federation Status: Offline Points: 30 |
![]() ![]() ![]() ![]() ![]() |
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 ); |
|
![]() |
|
Oleg ![]() Senior Member ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
terrym ![]() Senior Member ![]() Joined: 13 April 2007 Status: Offline Points: 836 |
![]() ![]() ![]() ![]() ![]() |
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
Any help appreciated
|
|
Thank you,
Terry Mancey email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |