|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
menu flash vs. key bindingsHey all, I would like to have my Tcl/Tk app be able to have no windows on Mac OS X. I am using [wm withdraw .], and then every window subpath of ".". I then have a single 'menu .menubar' which I attach using [.pdwindow configure -menu .menubar]. I am then binding the keys to each new toplevel's path as its created (each document gets its own toplevel). The first thing I noticed in trying to eliminate the last window is that after doing [. configure -menu .menubar], I have a menubar that has the nice little flashes when you hit an accelerator. I've never been able to get that working otherwise. But the downside is that the keys don't actually trigger anything. Is there a way to keep those flashes and have working key bindings? The code is all here, with the most relevant files being "pd_menus.pd", "pdwindow.tcl", "pdtk_canvas.tcl", and "pd_bindings.tcl". pd-gui.tcl is the "main". http://pure-data.svn.sourceforge.net/viewvc/pure-data/branches/pd-gui-rewrite/0.43/src/ .hc ---------------------------------------------------------------------------- Information wants to be free. -Stewart Brand ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Tcl-mac mailing list tcl-mac@... https://lists.sourceforge.net/lists/listinfo/tcl-mac |
|
|
Re: menu flash vs. key bindingsOn Thu, Sep 10, 2009 at 04:00, Hans-Christoph Steiner<hans@...> wrote:
> Is there a way to keep those flashes and have working key bindings? note that menu accelerators specified in Tk are just decoration, they don't cause any key bindings to be executed and thus have no impact on functionality. In TkAqua Carbon it is not possible to get the correct user-interface feedback when key-bindings are triggered that happen to coincide with a menu accelerator (key event processing happens before the native menu code gets a chance to see the event). In TkAqua Cocoa, this is fixed, all menu accelerator keys cause the expected user-interface feedback (even when there is no corresponding key binding however, so the menu may highlight event though nothing is executed, IMO that is the lesser of two evils however...) Cheers, Daniel ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Tcl-mac mailing list tcl-mac@... https://lists.sourceforge.net/lists/listinfo/tcl-mac |
| Free embeddable forum powered by Nabble | Forum Help |