Print Page | Close Window

Different states for toolbar buttons

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=18583
Printed Date: 11 September 2025 at 8:32pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Different states for toolbar buttons
Posted By: Anbhu
Subject: Different states for toolbar buttons
Date Posted: 22 June 2011 at 5:08pm
Hi All,
 
i have created my application tool bar using CXTPToolBar and the CXTPPaintManager is derived from office2003 theme.
 
In office 2003 theme, the disabled and normal state of the buttons does not have border only Mouse hover and click states are having border.
 
Actually i want to have different images for the 4 states of toolbar buttons (Disabled, Normal, mouse hover and Selected state) and each state should have different colored border. Please provide your ideas how this can be achieved?
Is there any other theme available to implement this?
 
i was trying to implement this by overiding the CXTPOffice2003Theme::DrawControlEntry function, but i am not able to set different border for mouse hover state.
 
Any help will appriciated.
Thanks,


-------------
Cheers!!!



Replies:
Posted By: Oleg
Date Posted: 28 June 2011 at 6:12am
Hi,

Yes, DrawControlEntry is method you need. Can you show what you tried ?


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



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