Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Problem disabling CXTPControlEdit
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem disabling CXTPControlEdit

 Post Reply Post Reply
Author
Message
flashk View Drop Down
Groupie
Groupie


Joined: 04 March 2008
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote flashk Quote  Post ReplyReply Direct Link To This Post Topic: Problem disabling CXTPControlEdit
    Posted: 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:
CXTPControlEdit edit = (CXTPControlEdit*)pToolBarMarkers->GetControls()->Add(xtpControlEdit, ID_MARKER_COUNT);
edit->ShowSpinButtons(TRUE);

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?
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: 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
Back to Top
flashk View Drop Down
Groupie
Groupie


Joined: 04 March 2008
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote flashk Quote  Post ReplyReply Direct Link To This Post Posted: 13 March 2008 at 8:40pm
Thanks! It works perfectly now.
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.