Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to match bg of slider to toolbar ?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to match bg of slider to toolbar ?

 Post Reply Post Reply
Author
Message
jigarmehtamscit View Drop Down
Groupie
Groupie
Avatar

Joined: 29 October 2005
Location: India
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote jigarmehtamscit Quote  Post ReplyReply Direct Link To This Post Topic: How to match bg of slider to toolbar ?
    Posted: 10 March 2006 at 3:10pm
Hi,

In my application i have used XT toolbar of size 32 x 32. I have put slider control on teh toolbar for zooming facility.. its working fine.. but background of the slider control doesnt match with the toolbar theme.. So, how can I match it ? currently its looking as follows which is not acceptable..



Can anybody tell me how can I change background of slider and make it match with current CJ toolbar theme ?

Regards,
Jigar Mehta
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 11 March 2006 at 8:22pm
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
jigarmehtamscit View Drop Down
Groupie
Groupie
Avatar

Joined: 29 October 2005
Location: India
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote jigarmehtamscit Quote  Post ReplyReply Direct Link To This Post Posted: 14 March 2006 at 2:51pm

Hi,

I used your sample and integrated it with my application. Its working fine. I maily have two problems with it described as follows,

1. Following functions dont work in, OnCreateControl(LPCREATECONTROLSTRUCT lpCreateControl) function.

   pSlider->SetRange(0, 200);
   pSlider->SetPos(100);

It doesnt work because it fails while calling,  if (m_pSliderCtrl->GetSafeHwnd())

So, how can I solve this ? Currently I have solved this problem by putting it in ON_UPDATE_COMMAND_UI but I think, it is not a correct way.

2. I want the slider bar to be bigger (as one shown in my first post). Your sample made it smaller. So, how can I make that bar bigger ?

Please tell me what all code changes are needed for above two problems ??

 

Regards,
Jigar Mehta
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 14 March 2006 at 3:58pm

Hello,

1. Just spend 10 minutes on code of CXTPControlSlider. You can move this code to its SetRect method.

2. See its GetSize methos.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
jigarmehtamscit View Drop Down
Groupie
Groupie
Avatar

Joined: 29 October 2005
Location: India
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote jigarmehtamscit Quote  Post ReplyReply Direct Link To This Post Posted: 15 March 2006 at 12:39pm

Hi,

both of my problems are solved now. Thx for the instant solution.

Regards,
Jigar Mehta
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.