Re: Binding font-code as a toggle

2001-09-02 Thread Dekel Tsur

On Thu, Aug 30, 2001 at 07:38:53PM -0400, Steve Litt wrote:
 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.

The difference is in the lyx source code (in lyxfunc.C),
namely you need to edit the source in order to enable toggling of the button.



Re: Binding font-code as a toggle

2001-09-02 Thread Dekel Tsur

On Thu, Aug 30, 2001 at 07:38:53PM -0400, Steve Litt wrote:
 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.

The difference is in the lyx source code (in lyxfunc.C),
namely you need to edit the source in order to enable toggling of the button.



Re: Binding font-code as a toggle

2001-09-02 Thread Dekel Tsur

On Thu, Aug 30, 2001 at 07:38:53PM -0400, Steve Litt wrote:
> 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.

The difference is in the lyx source code (in lyxfunc.C),
namely you need to edit the source in order to enable toggling of the button.



Re: Binding font-code as a toggle

2001-08-31 Thread Dekel Tsur

On Thu, Aug 30, 2001 at 07:38:53PM -0400, Steve Litt wrote:
 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.

The difference is in the lyx source code (in lyxfunc.C),
namely you need to edit the source in order to enable toggling of the
button.




Re: Binding font-code as a toggle

2001-08-31 Thread Dekel Tsur

On Thu, Aug 30, 2001 at 07:38:53PM -0400, Steve Litt wrote:
 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.

The difference is in the lyx source code (in lyxfunc.C),
namely you need to edit the source in order to enable toggling of the
button.




Re: Binding font-code as a toggle

2001-08-31 Thread Dekel Tsur

On Thu, Aug 30, 2001 at 07:38:53PM -0400, Steve Litt wrote:
> 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.

The difference is in the lyx source code (in lyxfunc.C),
namely you need to edit the source in order to enable toggling of the
button.




Binding font-code as a toggle

2001-08-30 Thread Steve Litt

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.







Binding font-code as a toggle

2001-08-30 Thread Steve Litt

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.







Binding font-code as a toggle

2001-08-30 Thread Steve Litt

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.