Hi everyone,

The font-code LyX function is a toggle. I added it to the menu and the 
toolbar in ~/ui/default.ui, which is a clone of /usr/share/lyx/ui/default.ui:

In the toolbar:
    Icon "font-code"

In the layout menu:
    Item "Code Style|S" "font-code"

It works perfectly in both places except for one thing -- LyX doesn't 
recognize it as a toggle. The button (which is a question mark) doesn't stay 
pushed in, and the menu item doesn't have a pushbutton to its left. What 
makes this strange is that these items are an almost exact direct copy of the 
emphasis style. How does LyX decides one's a toggle and not the other. 
There's no clue in cua.bind or menus.bind.

Thanks

Steve

-- 
Steve Litt
Webmaster, Troubleshooters.Com
http://www.troubleshooters.com
[EMAIL PROTECTED]
(Legal Disclaimer) Follow these suggestions at your own risk.




Reply via email to