[ wxwindows-Bugs-1905777 ] Defining default accelerator for common menus on wxMSW

SourceForge.net noreply at sourceforge.net
Tue Mar 11 02:33:11 PDT 2008


Bugs item #1905777, was opened at 2008-03-02 18:43
Message generated for change (Comment added) made by andrej4000
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1905777&group_id=9863

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Andrej Sinicyn (andrej4000)
Assigned to: Nobody/Anonymous (nobody)
Summary: Defining default accelerator for common menus on wxMSW

Initial Comment:
wxMSW has currently a big shortcoming because of Windows design compared to other ports like wxGTK.
On wxMSW there aren't defined any accelerators for default menu commands like Cut (Ctrl+X), Copy (Ctrl+C) and Paste (Ctrl+V). To use Ctrl+C with a wxRichEditCtrl on wxMSW I would have to write a menu with defined accelerator. Out of the box I can't copy and paste in a simple program.

A possible solution would be handling of such strings via locale/msw where a re-definition with accelerator key could be done. For example
-----
msgid "&Copy"
msgstr "&Copy\tCtrl+C"
-----

This would rise the usability of wxWidgets and ease programming.

----------------------------------------------------------------------

>Comment By: Andrej Sinicyn (andrej4000)
Date: 2008-03-11 10:33

Message:
Logged In: YES 
user_id=508463
Originator: YES

File Added: no-cutcopypaste.diff

----------------------------------------------------------------------

Comment By: Vadim Zeitlin (vadz)
Date: 2008-03-03 16:25

Message:
Logged In: YES 
user_id=71618
Originator: NO

If they don't work, this would be a bug but then we need a way to
reproduce it. Ideally in the text sample (which has a lot of text controls
with all possible styles...) or in a minimal one. Could you please provide
a patch and instructions for reproducing the bug?

Thanks!

----------------------------------------------------------------------

Comment By: Andrej Sinicyn (andrej4000)
Date: 2008-03-03 12:51

Message:
Logged In: YES 
user_id=508463
Originator: YES

Well, they do not work for me.
I could upload an example project, where Ctrl+C/V/X do NOT work for me on
wxMSW.

----------------------------------------------------------------------

Comment By: Vadim Zeitlin (vadz)
Date: 2008-03-02 22:37

Message:
Logged In: YES 
user_id=71618
Originator: NO

Sorry, I don't understand what do you mean here. Certainly Ctrl+C/V/X do
work in wxTextCtrl and any other control which handles them (like
wxRichTextCtrl), there is no need for a menu item for this. So what exactly
doesn't work?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1905777&group_id=9863




More information about the wx-dev mailing list