![]() |
Problem disabling CXTPControlEdit |
Post Reply
|
| Author | |
flashk
Groupie
Joined: 04 March 2008 Status: Offline Points: 44 |
Post Options
Thanks(0)
Quote Reply
Topic: Problem disabling CXTPControlEditPosted: 12 March 2008 at 12:35pm |
|
Hi,
My application adds an edit control with spin buttons to one of its command bars. Here is the code:
I also implement an ON_UPDATE_COMMAND_UI handler for the edit control, so I can disable it in certain cases. When the edit control is disable everything is grayed out and looks disabled, however I can still click on the spin buttons and change the value. Is there any workaround for this? |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 March 2008 at 10:55am |
|
Hi,
Thanks, it indeed have to be fixed in our sources. Please patch them now - in CXTPControlEdit::OnClick method add
else if (!bKeyboard && GetSpinButtonsRect().PtInRect(pt) && GetEnabled())
Changed for 12.0 release.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
flashk
Groupie
Joined: 04 March 2008 Status: Offline Points: 44 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 March 2008 at 8:40pm |
|
Thanks! It works perfectly now.
|
|
![]() |
|
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 |