Print Page | Close Window

How to match bg of slider to toolbar ?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=3760
Printed Date: 10 November 2025 at 1:41am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to match bg of slider to toolbar ?
Posted By: jigarmehtamscit
Subject: How to match bg of slider to toolbar ?
Date 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



Replies:
Posted By: Oleg
Date Posted: 11 March 2006 at 8:22pm

Hello,

I send sample in

https://forum.codejock.com/forum_posts.asp?TID=1763&PN=1&TPN=1 - https://forum.codejock.com/forum_posts.asp?TID=1763&PN=1 &TPN=1



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: jigarmehtamscit
Date 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


Posted By: Oleg
Date 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


Posted By: jigarmehtamscit
Date Posted: 15 March 2006 at 12:39pm

Hi,

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



-------------
Regards,
Jigar Mehta



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net