![]() |
ShowBalloonTip not working CXTPControlComboBox |
Post Reply ![]() |
Author | |
xafier ![]() Newbie ![]() Joined: 02 April 2008 Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() Posted: 03 June 2009 at 10:41am |
I have a CXTPControlComboBox on my ribbon, if the user enters an invalid value then I wish to display a balloon tip telling them the problem.
I have tried the following, but the balloon tip is not displayed: NMXTPCONTROL* tagNMCONTROL = (NMXTPCONTROL*)pNMHDR; CXTPControlComboBox* pControl = (CXTPControlComboBox*)tagNMCONTROL->pControl; ........ if(bError == true) pControl->GetEditCtrl()->ShowBalloonTip(L"Error", L"Description", TTI_ERROR); |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Edit part of ComboBox is actually RichEdit. Seems Microsoft didn't implement EM_SHOWBALLOONTIP for RichEdit :(
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() |
Just like I mentioned before; it is absolutely crucial that you let the programmer choose between Edit and RichEdit! I've pinpointed other problems too. Such as ES_PASSWORD, ES_NUMBER...
I hope you make this configurable in 13.1.
|
|
PokerMemento - http://www.pokermemento.com/
|
|
![]() |
|
xafier ![]() Newbie ![]() Joined: 02 April 2008 Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() |
I agree with znakeeye, it would be good if it was CEdit instead of richedit, then the balloon tips would work, which are very useful, and also allow easily to limit the user to numbers and such without having to drastically override the classes and do it all manually.
Guess I'll have to try and find a long way round to solving the problem of notifying the user of a problem. |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
It can be configured with custom Edit. See CControlComboBoxEditEx from Samples\CommandBars\CustomThemes\CustomControls.cpp.
override edit and add
BOOL CMyCommandBarEditCtrl::CreateEdit(DWORD dwStyle, CWnd* pParentWnd)
{ return CEdit::Create(dwStyle, CRect(0, 0, 0, 0), pParentWnd, 0); } |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() |
I can live with that, but please make sure to add ASSERTs for incompatible EDIT-styles!
|
|
PokerMemento - http://www.pokermemento.com/
|
|
![]() |
|
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() |
Looked at the sample. I'm confused. From which class should you derive CMyCommandBarEditCtrl?
|
|
PokerMemento - http://www.pokermemento.com/
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
from CXTPControlComboBoxEditCtrl
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
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 |