![]() |
slitbutton popup problem |
Post Reply
|
| Author | |
jerry2000
Newbie
Joined: 22 April 2004 Status: Offline Points: 29 |
Post Options
Thanks(0)
Quote Reply
Topic: slitbutton popup problemPosted: 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
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 22 April 2004 at 2:30pm |
|
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)
Quote Reply
Posted: 23 April 2004 at 1:41am |
|
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
Senior Member
Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
Quote Reply
Posted: 27 April 2004 at 11:12am |
|
Then make the Style=xtpControlPopup.
|
|
![]() |
|
jerry2000
Newbie
Joined: 22 April 2004 Status: Offline Points: 29 |
Post Options
Thanks(0)
Quote Reply
Posted: 28 April 2004 at 8:00am |
|
When I do this, there is only a arrow visible, and no button icon! Have i do somthing wrong ??? thanks
Edited by jerry2000 |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 April 2004 at 10:13am |
|
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 |