![]() |
How to match bg of slider to toolbar ? |
Post Reply
|
| Author | |
jigarmehtamscit
Groupie
Joined: 29 October 2005 Location: India Status: Offline Points: 64 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 11 March 2006 at 8:22pm |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
jigarmehtamscit
Groupie
Joined: 29 October 2005 Location: India Status: Offline Points: 64 |
Post Options
Thanks(0)
Quote Reply
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); 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 |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
jigarmehtamscit
Groupie
Joined: 29 October 2005 Location: India Status: Offline Points: 64 |
Post Options
Thanks(0)
Quote Reply
Posted: 15 March 2006 at 12:39pm |
|
Hi, both of my problems are solved now. Thx for the instant solution. |
|
|
Regards,
Jigar Mehta |
|
![]() |
|
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 |