![]() |
CXTPControlPopup OnMouseHover |
Post Reply ![]() |
Author | |
lion ![]() Groupie ![]() Joined: 04 March 2008 Status: Offline Points: 22 |
![]() ![]() ![]() ![]() ![]() Posted: 11 February 2009 at 6:19am |
Hi,
all I want is handle the onMouseHover Event for a CXTPControlPopup. CXTPControlPopup* pCtrlPopup = CXTPControlPopup::CreateControlPopup(xtpControlSplitButtonPopup); 1. I don't know how to catch that event in my mainframe. 2. Another way of doing it: I tried to inherit from CXTPControlPopup -> MyControlPopup MyControlPopup* pMyCtrlPopup = (MyControlPopup*)MyControlPopup::CreateControlPopup(xtpControlSplitButtonPopup); but then the OnMouseHover Eventhandler is not called, or 3. I can not set the controltype to "xtpControlSplitButtonPopup", when using MyControlPopup* pMyCtrlPopup = new MyControlPopup(); what would be the best/easiest way, to catch the OnMouseHover event for the CXTPControlPopup-xtpControlSplitButtonPopup, in order so set a dynamic tooltip ? Thanx in advance Cheers Bjoern |
|
![]() |
|
lion ![]() Groupie ![]() Joined: 04 March 2008 Status: Offline Points: 22 |
![]() ![]() ![]() ![]() ![]() |
ok, i found a way: overriding "CXTPControlPopup* CXTPControlPopup::CreateControlPopup( XTPControlType controlType )"did it now...
but: how do I make the nee tooltip onMouseHover() appear right away? I implemented: void CXTPControlPopupUndo::OnMouseHover() { this->SetTooltip( GetMyDynString() ); } but the string only appears once I leaf the control and hover over it again... that is: the tooltip is always the one before... what function do i need to call to make my string visible as a tooltip immediately ? Thanx for some help Cheers Björn |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
don't change OnMouseHover - Override GetTooltip and return your dynamic tip.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
lion ![]() Groupie ![]() Joined: 04 March 2008 Status: Offline Points: 22 |
![]() ![]() ![]() ![]() ![]() |
yea, thanx! Thats it... Now it works fine.
|
|
![]() |
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 |