Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Different states for toolbar buttons
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Different states for toolbar buttons

 Post Reply Post Reply
Author
Message
Anbhu View Drop Down
Newbie
Newbie
Avatar

Joined: 22 June 2011
Location: Canada
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Anbhu Quote  Post ReplyReply Direct Link To This Post Topic: Different states for toolbar buttons
    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!!!
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 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
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.031 seconds.