Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - scroll bar style bug
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

scroll bar style bug

 Post Reply Post Reply
Author
Message
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 Topic: scroll bar style bug
    Posted: 16 August 2007 at 6:42am
We have initialised a vertical and horizontal scroll bar however both have different styles ???
 

m_VScrollBar.Create( WS_CHILD | WS_VISIBLE | SBS_VERT, CRect( 0, 0, 0, 0 ), this, 100 );

m_VScrollBar.SetScrollBarStyle( xtpScrollStyleOffice2007Dark );

m_HScrollBar.Create( WS_CHILD | WS_VISIBLE | SBS_HORZ, CRect( 0, 0, 0, 0 ), this, 100 );

m_HScrollBar.SetScrollBarStyle( xtpScrollStyleOffice2007Dark );
 
but we set both scroll bars to same xtpScrollStyleOffice2007Dark, any ideas please ?
 
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey
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:28am
Also for some reason I cannot get the scroll bars to work, I have a OnVScroll handler and also a calculateverticalscrollbar function which both look fine (see attached file), but for some reason it wont set the scroll bar position ???
 
Any help appreciated
 
see this file to see our code
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey
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: 17 August 2007 at 8:47am
Hi,
 
I don't see OnHScrollbar and CalculateHorizontalScrollBar in attachment.
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: 17 August 2007 at 8:51am
ah fixed that issue, but see the image, above why does the horizontal scroll bar have a different colour scheme to vertical scroll bar ?
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey
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: 18 August 2007 at 4:05am
Hi,
 
guess you include ribbon bitmaps from previous version.
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: 18 August 2007 at 7:33am
Hi
 
Not at all, I installed 11.1.3 and use 11.1.3, I installed over top of old versions :(
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey
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: 20 August 2007 at 2:42am
hI,
 
Set breakpoint in CXTPControlGalleryOffice2007Theme::DrawScrollBar method in
---
else
 {
  CXTPOffice2007Image* pImageBackground = pPaintManager->LoadImage(
   bLight ? _T("CONTROLGALLERYSCROLLHORIZONTALLIGHT") : _T("CONTROLGALLERYSCROLLHORIZONTALDARK"));
---
 
and check if pImageBackground  is not null.
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: 21 August 2007 at 6:19am
looking into this and will reply soon with what it does
 
Cheers
Terry
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey
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: 28 August 2007 at 3:19am
Ok I tried above and pImageBackground is not null ??? very strange, what else can I check please as it clearly has pointers and is drawing

CONTROLGALLERYSCROLLVERTICALDARK

CONTROLGALLERYSCROLLHORIZONTALDARK

Look forward to a reply
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey
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 September 2007 at 5:37am
Hello,
Create small sample and attach it in issue.
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: 24 September 2007 at 4:53am
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.078 seconds.