This seems to work:
(in dialog constructor)
@first_time=true
connect(SEL_FOCUSIN){self.killFocus if @first_time; @first_time=false}
On Mon, Sep 15, 2008 at 6:01 PM, Rovshan Baghirov <rovshanb at
gmail.com>wrote:
> Hi,
>
> is it possible to display a non modal dialog box without giving it the
> focus?
> I use this code, but without success:
>
> @autocomplete=AutocompleteDialog.new(self, pointXFromPosition(pos),
> pointYFromPosition(pos)+20)
> @autocomplete.create
> @autocomplete.show
> self.setFocus
>
> self is FXScintilla component.
>
> Thanks,
> Rovshan
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://rubyforge.org/pipermail/fxruby-users/attachments/20080916/38249960/attachment.html>