slitbutton popup problem |
Post Reply |
Author | |
jerry2000
Newbie Joined: 22 April 2004 Status: Offline Points: 29 |
Post Options
Thanks(0)
Posted: 22 April 2004 at 9:23am |
In the topic "Reponding to a xtpControlSplitButtonPopup" https://forum.codejock.com/forum_posts.asp?TID=621&K W=split+button SuperMario has written:
I want to have the same behavior if the user presses the button part or if he press the arrow of the splitbutton. I have catched the execution event (with ON_XTP_EXECUTE macro) when the user pressed the button part. Now i want to popup the menu, but how? i have expiremented with: pControl->GetCommandPar()->Popup(); // this has problems when the user press a second time to the button (the popup menu does not close) and pControl->OnSetPopup(TRUE); // but this function is protected please help?
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
So you want to ignore button part? Maybe you need Style=xtpControlButtonPopup instead xtpControlSplitButtonPopup
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
jerry2000
Newbie Joined: 22 April 2004 Status: Offline Points: 29 |
Post Options
Thanks(0)
|
but now i dont have an arrow near the button. Sorry but i need both the button and the arrow, and both should be have the same behavior. thanks |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
Then make the Style=xtpControlPopup.
|
|
jerry2000
Newbie Joined: 22 April 2004 Status: Offline Points: 29 |
Post Options
Thanks(0)
|
When I do this, there is only a arrow visible, and no button icon! Have i do somthing wrong ??? thanks
Edited by jerry2000 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Such button exists in CustomThemes sample. lpCreateControl->controlType = xtpControlPopup; Edited by oleg |
|
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 |