Angus Leeming wrote:
> On Monday 09 September 2002 13:18, R. Lahaye wrote:
> 
>>Hi,
>>
>>1) Tooltips:
>>    I need to overwrite a tooltip string, because some buttons
>>swap their purpose upon activation (e.g. "Go to" in
>>Cross-Reference dialog, and "Start" in Spellchecker dialog).
>>
>>    However, when I call again to overwrite, for example:
>>
>>          tooltips().init(dialog_->button_start, str);
>>
>>    sometime later (somewhere else than in the  function
>>Form<whatever>::build()), nothing happens. The old tooltips
>>string remains and this has no effect.
>>
> 
> Try and replace the existing Tooltips::init with this:
> 
> void Tooltips::init(FL_OBJECT * ob, string const & tip)
> {
>       lyx::Assert(ob && ob->form);
>       tooltipsMap[ob] = formatted(trim(tip), 400);
> }

No, doesn't help. Problem remains. Somehow Tooltips disables
overwriting an existing tooltip text, or writes the second
time somewhere where it has no effect. Don't know.

Rob.

Reply via email to