OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

No focus on dialog started by createUnoDialog

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
tridouble
General User
General User


Joined: 12 Dec 2004
Posts: 17

PostPosted: Tue Oct 20, 2009 10:36 pm    Post subject: No focus on dialog started by createUnoDialog Reply with quote

When I start a dialog with the instruction CreateUnoDialog in a macro Main() launched directly from the desktop by the command
Code:
"soffice.exe macro:///MyLibraryName.MyModuleName.Main()"
the dialog started often has not the focus.
I must click on the dialog with the mouse to activate and use it.
Is there a way to change this behavior (which seems to have apparead with the version OO3) ?
I tried the instructions setfocus() or tofront() but unsuccessfully.[/code]
Back to top
View user's profile Send private message
pitonyak
Administrator
Administrator


Joined: 09 Mar 2004
Posts: 3655
Location: Columbus, Ohio, USA

PostPosted: Fri Oct 23, 2009 8:42 pm    Post subject: Reply with quote

What does have the focus? I mean, it looks like when this runs, OOo does not have the focus, and, if OOo is already running, then I might not expect it to suddenly take the focus.

That said, i do not know off hand how to give focus to a dialog.
_________________
--
Andrew Pitonyak
http://www.pitonyak.org/oo.php
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group