Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPScrollBar::EnableScrollBar() problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPScrollBar::EnableScrollBar() problem

 Post Reply Post Reply
Author
Message
Jimor Marlow View Drop Down
Groupie
Groupie
Avatar

Joined: 03 June 2007
Location: Russian Federation
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jimor Marlow Quote  Post ReplyReply Direct Link To This Post Topic: CXTPScrollBar::EnableScrollBar() problem
    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?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group
Avatar

Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 01 July 2007 at 3:52am
Hi,
 
call sbOnes.EnableWindow(FALSE); instead
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Jimor Marlow View Drop Down
Groupie
Groupie
Avatar

Joined: 03 June 2007
Location: Russian Federation
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jimor Marlow Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group
Avatar

Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Jimor Marlow View Drop Down
Groupie
Groupie
Avatar

Joined: 03 June 2007
Location: Russian Federation
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jimor Marlow Quote  Post ReplyReply Direct Link To This Post 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 );
Back to Top
Oleg View Drop Down
Admin Group
Admin Group
Avatar

Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
terrym View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 April 2007
Status: Offline
Points: 836
Post Options Post Options   Thanks (0) Thanks(0)   Quote terrym Quote  Post ReplyReply Direct Link To This Post 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
 
Any help appreciated
 
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.080 seconds.