![]() |
Shorcut Key with splitbutton |
Post Reply ![]() |
Author | |
Cedric ![]() Newbie ![]() Joined: 27 October 2005 Status: Offline Points: 20 |
![]() ![]() ![]() ![]() ![]() Posted: 04 November 2005 at 4:49am |
I have a commandbar with xtpcontrolsplibutton. With this splitbutton i
have a list. In fact the button is designed for Undo / Redo action.
Before I change the button i have an shortcut key assigne to this
button but now the keyboard sequence doesn't work
How can I handle this ? when the user launch the keyboard sequence ( CTRL+Z for instance ), the action of the button start. User can change the bind key too. thanks, in advance |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello, The is no difference which style of buttom you have. It must work if you have control id in accelerator list. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Cedric ![]() Newbie ![]() Joined: 27 October 2005 Status: Offline Points: 20 |
![]() ![]() ![]() ![]() ![]() |
I find the reason. In fact when i change the button to splitbuttonpopup
i deleted Oncommand macro to replace bay ON_XTP_EXECUTE. Then i have an
other question
On ON_XTP_EXECUTE function was calling by NMHDR* pNMHDR and LRESULT* pResult . The NMHDR is a standard NMHDR or NMXTPCONTROL ? |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Right. NMHDR is NMXTPCONTROL . And acelerators send only WM_COMMAND. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Cedric ![]() Newbie ![]() Joined: 27 October 2005 Status: Offline Points: 20 |
![]() ![]() ![]() ![]() ![]() |
Ok thanks. In fact i do this
it's a good way or it's better to construct NMXTPCONTROL and sending the message through the commandbar ? |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
You need to add check if l_CmdUndo != NULL, because user can customize this toolbar.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Cedric ![]() Newbie ![]() Joined: 27 October 2005 Status: Offline Points: 20 |
![]() ![]() ![]() ![]() ![]() |
Thanks it's really good idea
![]() ![]() |
|
![]() |
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 |