Hi Mauricio,<br>
<br>
I got the point. But I am puzzled as why setcontext does not work (!!?!).<br>
<br>
Also I am worried that you will have to send the
advanced-linux-programming.pdf file along with your map file for things
to work as your map file expects that file to be opened initially. I
dont think it is such a good idea. An alternative solution would be to
generate the map file with none of the files open and use remap() at
runtime. This would make the map file look logical and simple.<br>
<br>
Regards<br>
Premkumar<br>
<br><br><div><span class="gmail_quote">On 11/10/05, <b class="gmail_sendername">Mauricio Lin</b> &lt;<a href="mailto:mauriciolin@gmail.com">mauriciolin@gmail.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 Premkumar,<br><br><div><span class="q"><span class="gmail_quote">On 11/10/05, <b class="gmail_sendername">Premkumar Jothimani</b> &lt;<a href="mailto:prem.jothimani@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
prem.jothimani@gmail.com</a>&gt; wrote:</span></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>
<span class="q"><br>
Assuming that you use the map file that you sent me, I think your setcontext() call should look like<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; setcontext ('PDF Viewer', 'python.pdf')<br>The
point to note here is that the first parameter should always be the
value of the &quot;label&quot; field for that window name in the map file.</span></blockquote><div><br>
OK. But there is a small detail here. The map file I generated starts as:<br>
<br>
[frmadvanced-linux-programming]<br>
frmadvanced-linux-programming={class=frame,parent=gpdf,child_index=0,label=advanced-linux-programming.pdf}<br>
...<br>
<br>
Look the label field, it is not 'PDF Viewer'.&nbsp; The 'PDF Viewer'
just exists if you generated a map file from a gpdf with no pdf file
loaded.<br>
This map file was generated based on an open pdf file in the gpdf window.<br>
<br>
The reason I am generating the map file in this way is because a gpdf
application with a pdf file loaded displays more graphical components
(buttons, menu, menu options) that I want to manipulate.<br>
<br>
You can check that when you open a pdf file in gpdf, more buttons are displayed as well as more options in menu are created.<br>
Open the gpd application and afterward open a pdf file, you can notice that more buttons and menu options are displayed.<br>
<br>
BR,<br>
<br>
Mauricio Lin.<br>
</div></div><br>

</blockquote></div><br>