<br><font size=2 face="sans-serif">Pierre,</font>
<br><font size=2 face="sans-serif">This gives an error "mappanel is
not defined"</font>
<br><font size=2 face="sans-serif">msgCt = Ext.DomHelper.insertFirst(mappanel.body,
{id:'msg-div'}, true);</font>
<br>
<br><font size=2 face="sans-serif">In Firebug I don't see a DOM element
related to the mappanel.</font>
<br><font size=2 face="sans-serif">Here is how I create the mapPanel, it
might help...to help me ;-)</font>
<br><font size=2 face="sans-serif">...</font>
<br><font size=2 face="sans-serif">{</font>
<br><font size=2 face="sans-serif"> region: 'center',</font>
<br><font size=2 face="sans-serif"> layout: 'fit',</font>
<br><font size=2 face="sans-serif"> frame: false,</font>
<br><font size=2 face="sans-serif">border: true,</font>
<br><font size=2 face="sans-serif">margins: '5 5 5 5',</font>
<br><font size=2 face="sans-serif">items: </font>
<br><font size=2 face="sans-serif">[{</font>
<br><font size=2 face="sans-serif">xtype: 'gx_mappanel',</font>
<br><font size=2 face="sans-serif">map: map,</font>
<br><font size=2 face="sans-serif">tbar: toolbar,</font>
<br><font size=2 face="sans-serif">border: false,</font>
<br><font size=2 face="sans-serif">center: new OpenLayers.LonLat(point.x,
point.y),</font>
<br><font size=2 face="sans-serif">zoom: myzoom2</font>
<br><font size=2 face="sans-serif">}]</font>
<br><font size=2 face="sans-serif">}</font>
<br>
<br><font size=2 face="sans-serif">toolbar is an array of GeoExt.Action</font>
<br><font size=2 face="sans-serif"><br>
</font><font size=3 color=#0066ff><i>Steve Toutant, M. Sc.</i></font><font size=3><br>
Analyste en géomatique<br>
Secteur environnement<br>
Direction des risques biologiques, environnementaux et occupationnels<br>
Institut national de santé publique du Québec<br>
945, avenue Wolfe<br>
Québec, Qc G1V 5B3 </font>
<p><font size=3>Tél.: (418) 650-5115 #5281<br>
Fax.: (418) 654-3144</font><font size=3 color=blue><u><br>
</u></font><a href=mailto:steve.toutant@inspq.qc.ca><font size=3 color=blue><u>steve.toutant@inspq.qc.ca</u></font></a><font size=3 color=blue><u><br>
</u></font><a href=http://www.inspq.qc.ca/><font size=3 color=blue><u>http://www.inspq.qc.ca</u></font></a>
<p><font size=3> </font>
<p>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Pierre Giraud <pierre.giraud@camptocamp.com></b>
</font>
<p><font size=1 face="sans-serif">11/09/2009 12:00 PM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">Steve.Toutant@inspq.qc.ca</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">users@geoext.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">Re: [Users] add a "sliding msg
box" to the mappanel</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br>
<br>
<br><font size=3>What I would do is change the example.js code in 26 like
the following :<br>
<br>
msgCt.alignTo(theElementToAlignTo, 't-t');<br>
<br>
In the menu example, I got it working by replacing theElementToAlignTo
by "toolbar".<br>
In your case, replace it by mappanel.body and you should be done.<br>
<br>
And what about using a StatusBar ? It probably has the same results and
is less intrusive.<br>
<br>
Regards,<br>
Pierre<br>
<br>
<br>
</font>
<br><font size=3>On Fri, Sep 11, 2009 at 4:40 PM, <</font><a href=mailto:Steve.Toutant@inspq.qc.ca><font size=3 color=blue><u>Steve.Toutant@inspq.qc.ca</u></font></a><font size=3>>
wrote:</font>
<br><font size=2 face="sans-serif">Hello,</font><font size=3> </font>
<p><font size=2 face="sans-serif">I use the xtype: 'gx_mappanel' in an
Ext viewport.</font><font size=3> </font>
<p><font size=2 face="sans-serif">I would like to use the "sliding
message box" from this extJS sample. You can see this box When you
click on the "Toggle Me" button.</font><font size=3> </font><font size=2 color=blue face="sans-serif"><u><br>
</u></font><a href=http://www.extjs.com/deploy/dev/examples/menu/menus.html target=_blank><font size=2 color=blue face="sans-serif"><u>http://www.extjs.com/deploy/dev/examples/menu/menus.html</u></font></a><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
But in this example the message box appears in the document body, which
is behind the mappanel. I would like this message box to appear on the
mappanel below the toolbar.</font><font size=3> </font><font size=2 face="sans-serif"><br>
How can I accomplish that please?</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
thanks</font><font size=3> </font><font size=2 face="sans-serif"><br>
Steve</font><font size=3> <br>
</font>
<br><font size=3><br>
_______________________________________________<br>
Users mailing list</font><font size=3 color=blue><u><br>
</u></font><a href=mailto:Users@geoext.org><font size=3 color=blue><u>Users@geoext.org</u></font></a><font size=3 color=blue><u><br>
</u></font><a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target=_blank><font size=3 color=blue><u>http://www.geoext.org/cgi-bin/mailman/listinfo/users</u></font></a><font size=3><br>
</font>
<br><font size=3><br>
<br>
<br>
-- <br>
Pierre GIRAUD<br>
Géomaticien, Analyste<br>
<br>
Camptocamp France SAS<br>
Savoie Technolac, BP 352<br>
73377 Le Bourget du Lac, Cedex <br>
<br>
Tel : 00 33 4 79 44 44 93<br>
Mail : </font><a href=mailto:pierre.giraud@camptocamp.com><font size=3 color=blue><u>pierre.giraud@camptocamp.com</u></font></a><font size=3 color=blue><u><br>
</u></font><a href=http://www.camptocamp.com/><font size=3 color=blue><u>http://www.camptocamp.com</u></font></a><font size=3>
</font>
<br>
<br>
<br>