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

how to activate other opened cac files.

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


Joined: 03 Jan 2006
Posts: 7

PostPosted: Mon Jan 09, 2006 7:45 pm    Post subject: how to activate other opened cac files. Reply with quote

Anyone help?

The scenario is, i have different opened calc files. (namely : calc1.sxc, calc2.sxc and calc3.sxc). The currently active cacl file is calc3. I need to reactivate calc1. How will I do this.

Thanks in advance.
Back to top
View user's profile Send private message
LarsB
OOo Advocate
OOo Advocate


Joined: 31 Aug 2005
Posts: 445
Location: Hamburg, Germany

PostPosted: Mon Jan 09, 2006 9:14 pm    Post subject: getComponentWindow Reply with quote

Hi,

if you want to set calc3 as active window (focus) you can call on it's frame
getComponentWindow().setFocus(). Hope this helps Wink

Cheers
LarsB
_________________
AODC - A free OpenDocument Converter
AODL - An independent OpenDocument Library C#
EmbeddedOpenOffice .net UserControl C#
EmbeddedOpenOffice Visual Studio .net Add In

http://www.OpenDocument4all.com/
Back to top
View user's profile Send private message Visit poster's website
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