Rob Lahaye wrote: > Rob Lahaye wrote: >> >> The patch uses double-mouse-click for selecting a style in the >> Xforms BibTeX dialog (instead of the instant selecting as it is >> now). > > Argh, the double click in this dialog does not work properly > anymore, for obscure reasons. My patch is still valid to allow > double-clicking, though. >
> I've checked that: > > 1) the double click has effect and the correct style string is read. > > 2) "fl_set_input(...)" actually sets the input field with the > correct > string; however, it is the dialog that is not updated, but still > shows the old value. > > This gives the impression that the double click itself is not > working, but it actually is. > When I hide the dialog and let it reappear again (to force a redraw > of the dialog) then the input field has the new style, all of a > sudden. > > Any idea what's going wrong here? Sorry, I'm not clear from your description what the problem is. Are you saying that minimising/showing the dialog allows you to see the string? In that case, does fl_redraw_object(your_ob) help. Or perhaps fl_redraw_form, if you have to hit it with a hammer, although this will result in an ugly flicker. (Maybe you can avoid the flicker by wrapping the redraw call with fl_freeze_form(form()); fl_redraw_form(form()); fl_unfreeze_form(form()); Try it and see. -- Angus