Hi Mauricio,<br>
<br>
I feel setcontext () API can be made use of in this situation. Though
each file is opened in a separate window, the map of the window is
going to be common. Hence you can use setcontext() to select windows
based on the label.<br>
<br>
FYI, the two arguments you have to pass to setcontext are<br>
&nbsp;&nbsp; i. the first parameter is the value corresponding to the
attribute &quot;label&quot; present in the map file in the entry corresponding to
the name of the window itself.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For example, consider you have the following entries in&nbsp; the map file, <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [frmWindow1]<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
frmWindow1={class=frame,parent=&quot;application-name&quot;,label=&quot;New Window&quot;}<br>
&nbsp;&nbsp;&nbsp;&nbsp; In the above case, &quot;New Window&quot; is the string i was referring to as the first parameter<br>
&nbsp;&nbsp; ii. The second parameter should be the new label that is present in the title bar of the window at runtime.<br>
<br>
The basic idea is to have a single map file, and then use setcontext()
to select the required window among all the available windows based on
its current label. Please make sure to do releasecontext() after every
setcontext() usage.<br>
<br>
If you have any clarifications, please let me know, I will do my best to make them straight.<br>
<br>
Regards<br>
Premkumar<br>
<br>
&nbsp;<br><div><span class="gmail_quote">On 11/9/05, <b class="gmail_sendername">Patrick Gu</b> &lt;<a href="mailto:Patrick.Gu@sun.com">Patrick.Gu@sun.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Mauricio,<br>I didn't try acrobat but I think may be active the window you want by<br>title(activewin) first and then set a fixed name, such as frmAcrobat<br>to this window(setcontext).&nbsp;&nbsp;Modify main frame name to frmAcrobat in map
<br>file.<br><br>-Patrick Gu<br><br><br><br>Mauricio Lin wrote:<br><br>&gt; Hi Premkumar,<br>&gt;<br>&gt; On 11/8/05, *J Premkumar* &lt;<a href="mailto:jpremkumar@novell.com">jpremkumar@novell.com</a><br>&gt; &lt;mailto:<a href="mailto:jpremkumar@novell.com">
jpremkumar@novell.com</a>&gt;&gt; wrote:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Hi,<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; I would suggest you can use initappmap() itself again. setappmap<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; API has<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; been removed and apologies for not mentioning it in the API reference
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; page.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; I would also suggest you to take a look at remap() API -<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://gnomebangalore.org/ldtp/index.php/Remap">http://gnomebangalore.org/ldtp/index.php/Remap</a> . This would avoid the
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; need for having more than one map file.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; If you can explain your<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; requirement more clearly, we can discuss on how remap can be made<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; use of<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; in this situation if possible.
<br>&gt;<br>&gt;<br>&gt; OK. I need to open many pdf files and as you should know, gpdf opens<br>&gt; each pdf file in a separate window, so how can i handle on the newest<br>&gt; window?<br>&gt; If I open 8 pdf files (8 windows), do I have to generate a map file
<br>&gt; (using appmap) with 8 open windows?<br>&gt;<br>&gt; BR,<br>&gt;<br>&gt; Mauricio Lin.<br>&gt;<br>&gt;------------------------------------------------------------------------<br>&gt;<br>&gt;_______________________________________________
<br>&gt;Ldtp-dev mailing list<br>&gt;<a href="mailto:Ldtp-dev@lists.freedesktop.org">Ldtp-dev@lists.freedesktop.org</a><br>&gt;<a href="http://lists.freedesktop.org/mailman/listinfo/ldtp-dev">http://lists.freedesktop.org/mailman/listinfo/ldtp-dev
</a><br>&gt;<br>&gt;<br><br>_______________________________________________<br>Ldtp-dev mailing list<br><a href="mailto:Ldtp-dev@lists.freedesktop.org">Ldtp-dev@lists.freedesktop.org</a><br><a href="http://lists.freedesktop.org/mailman/listinfo/ldtp-dev">
http://lists.freedesktop.org/mailman/listinfo/ldtp-dev</a><br></blockquote></div><br>