Pesquisar no site de suporte

Evite golpes de suporte. Nunca pedimos que você ligue ou envie uma mensagem de texto para um número de telefone, ou compartilhe informações pessoais. Denuncie atividades suspeitas usando a opção “Denunciar abuso”.

Saiba mais

Esta discussão foi arquivada. Faça uma nova pergunta se precisa de ajuda.

A Problem with the Quick Find Bar

  • 2 respostas
  • 1 tem este problema
  • 7 visualizações
  • Última resposta de Yaron

more options

Hi,

I’ve added the following line to userChrome.css, and FF opens the Quick Find Bar with the ‘Find Next’ and ‘Find Previous’ buttons.

.findbar-container > * { display:-moz-box !important; }

With Those buttons, there isn’t enough space in the Quick Bar, and when the description ‘End of Page’ (etc) shows – it is only partially displayed.

How do I change the label text from ‘Quick Search:’ to ‘Find:’?



And apropos the Find Bar.

I have a toolbar button which toggles the Find Bar on and off. I’d like that button to be checked when the Find Bar is visible, and unchecked when it is hidden.

I’ve added the following line to an xul file, and it works perfectly.

<command id="cmd_find" oncommand="gFindBar.onFindCommand(); setFindCkeckState();"/>

For some reason, FF ignores the "cmd_findClose" id.

<command id="cmd_findClose" oncommand="gFindBar.close(); setFindCkeckState ();"/>

Why? Is it possible to add an Event Listener for the Find bar being opened or closed? Can I check and uncheck that button in a css file? (That would be better).


Thanks.

Hi, I’ve added the following line to userChrome.css, and FF opens the Quick Find Bar with the ‘Find Next’ and ‘Find Previous’ buttons. .findbar-container > * { display:-moz-box !important; } With Those buttons, there isn’t enough space in the Quick Bar, and when the description ‘End of Page’ (etc) shows – it is only partially displayed. How do I change the label text from ‘Quick Search:’ to ‘Find:’? And apropos the Find Bar. I have a toolbar button which toggles the Find Bar on and off. I’d like that button to be checked when the Find Bar is visible, and unchecked when it is hidden. I’ve added the following line to an xul file, and it works perfectly. <command id="cmd_find" oncommand="gFindBar.onFindCommand(); setFindCkeckState();"/> For some reason, FF ignores the "cmd_findClose" id. <command id="cmd_findClose" oncommand="gFindBar.close(); setFindCkeckState ();"/> Why? Is it possible to add an Event Listener for the Find bar being opened or closed? Can I check and uncheck that button in a css file? (That would be better). Thanks.

Alterado por Yaron em

Todas as respostas (2)

more options

I use this command in a PrefBar button to toggle the Find bar on/off

if (gFindBar.hidden) gFindBar.onFindCommand(); else gFindBar.close();
more options

Thanks for the code.

I'd also like the button to be checked if I press Ctrl+F. Any idea? Is it possible to check and uncheck buttons in css?

I appreciate your help.