Hi,
You are right.
From the docs
"An accelerator table allows the application to specify a table of
keyboard shortcuts for menu or button commands."
You could try adding a menu to the frame I suppose. Or maybe a
toolbutton with the wxID_CLOSE id.
Then perhaps the accelerator will work.
Just in case you're not aware, if all you want is a 'close' shortcut
then Alt F4 / Command F4 is common across win/linux/mac platforms.
I must confess I've been thinking about doing a
Wx::Perl::HtmlHelpController for a while, but have managed to meet my
own requirements with the odd hack as posted. A
Wx::Perl::PDFHelpController would be nice too. I'm sure there will be a
way of linking bookmarks as help topics for the various PDF viewers. It
would be nice to be able to use OpenOffice as a help doc writer.
Regards
Mark
On 05/03/2011 15:42, Johan Vromans wrote:
[Quoting Mark Dootson, on March 5 2011, 15:34, in "Re: Acelerators for "]
I forgot the following to setup inheritance (appears elsewhere in my code)
package Wx::HtmlHelpFrame; @ISA = qw( Wx::Frame );
That get's rid of the error. But it still doesn't work.
I seem to recall something about shortcuts -- they only work if
there's also a corresponding menu item or button on the same window?
-- Johan