[fxruby-users] FXDialogBox without focus

Rovshan Baghirov rovshanb at gmail.com
Tue Sep 16 01:15:23 EDT 2008


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>


More information about the fxruby-users mailing list