<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content=text/html;charset=iso-8859-1>
<META content="MSHTML 6.00.6001.18294" name=GENERATOR></HEAD>
<BODY id=MailContainerBody
style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-TOP: 15px" leftMargin=0
topMargin=0 CanvasTabStop="true" name="Compose message area">
<DIV><FONT face=Arial size=2>do you have a global variable named 'mappanel'? If
not then you would actually need to find the map panel</FONT></DIV>
<DIV><FONT face=Arial size=2>for example:</FONT></DIV>
<DIV><FONT face=Arial size=2>assuming you have some access to the viewport or
overall layout container component, we will call it 'layout' here</FONT></DIV>
<DIV><FONT face=Arial size=2>var mappanel =
layout.findByType('gx_mappanel')</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>if you set an 'id' property in the mappanel config
(ex:'map_panel') then you can easily get back to it by</FONT></DIV>
<DIV><FONT face=Arial size=2>var mappanel = Ext.getCmp('map_panel')</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>then the below code will work</FONT></DIV>
<DIV><FONT face=Arial size=2>Matt</FONT></DIV>
<DIV style="FONT: 10pt Tahoma">
<DIV><FONT face=Arial></FONT><BR></DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A
title="mailto:Steve.Toutant@inspq.qc.ca CTRL + Click to follow link"
href="mailto:Steve.Toutant@inspq.qc.ca">Steve.Toutant@inspq.qc.ca</A> </DIV>
<DIV><B>Sent:</B> Friday, September 11, 2009 11:32 AM</DIV>
<DIV><B>To:</B> <A
title="mailto:pierre.giraud@camptocamp.com CTRL + Click to follow link"
href="mailto:pierre.giraud@camptocamp.com">Pierre Giraud</A> </DIV>
<DIV><B>Cc:</B> <A title=users@geoext.org
href="mailto:users@geoext.org">users@geoext.org</A> </DIV>
<DIV><B>Subject:</B> Re: [Users] add a "sliding msg box" to the
mappanel</DIV></DIV></DIV>
<DIV><FONT face=Arial size=2></FONT><BR></DIV><BR><FONT face=sans-serif
size=2>Pierre,</FONT> <BR><FONT face=sans-serif size=2>This gives an error
"mappanel is not defined"</FONT> <BR><FONT face=sans-serif size=2>msgCt =
Ext.DomHelper.insertFirst(mappanel.body, {id:'msg-div'}, true);</FONT>
<BR><BR><FONT face=sans-serif size=2>In Firebug I don't see a DOM element
related to the mappanel.</FONT> <BR><FONT face=sans-serif size=2>Here is how I
create the mapPanel, it might help...to help me ;-)</FONT> <BR><FONT
face=sans-serif size=2>...</FONT> <BR><FONT face=sans-serif size=2>{</FONT>
<BR><FONT face=sans-serif size=2> region: 'center',</FONT> <BR><FONT
face=sans-serif size=2> layout: 'fit',</FONT> <BR><FONT face=sans-serif
size=2> frame: false,</FONT> <BR><FONT face=sans-serif size=2>border:
true,</FONT> <BR><FONT face=sans-serif size=2>margins: '5 5 5 5',</FONT>
<BR><FONT face=sans-serif size=2>items: </FONT><BR><FONT face=sans-serif
size=2>[{</FONT> <BR><FONT face=sans-serif size=2>xtype: 'gx_mappanel',</FONT>
<BR><FONT face=sans-serif size=2>map: map,</FONT> <BR><FONT face=sans-serif
size=2>tbar: toolbar,</FONT> <BR><FONT face=sans-serif size=2>border:
false,</FONT> <BR><FONT face=sans-serif size=2>center: new
OpenLayers.LonLat(point.x, point.y),</FONT> <BR><FONT face=sans-serif
size=2>zoom: myzoom2</FONT> <BR><FONT face=sans-serif size=2>}]</FONT> <BR><FONT
face=sans-serif size=2>}</FONT> <BR><BR><FONT face=sans-serif size=2>toolbar is
an array of GeoExt.Action</FONT> <BR><FONT face=sans-serif
size=2><BR></FONT><FONT color=#0066ff size=3><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
color=blue size=3><U><BR></U></FONT><A
href="mailto:steve.toutant@inspq.qc.ca"><FONT color=blue
size=3><U>steve.toutant@inspq.qc.ca</U></FONT></A><FONT color=blue
size=3><U><BR></U></FONT><A href="http://www.inspq.qc.ca/"><FONT color=blue
size=3><U>http://www.inspq.qc.ca</U></FONT></A>
<P><FONT size=3> </FONT>
<P><BR><BR><BR>
<TABLE width="100%">
<TBODY>
<TR vAlign=top>
<TD width="40%"><FONT face=sans-serif size=1><B>Pierre Giraud
<pierre.giraud@camptocamp.com></B> </FONT>
<P><FONT face=sans-serif size=1>11/09/2009 12:00 PM</FONT> </P>
<TD width="59%">
<TABLE width="100%">
<TBODY>
<TR vAlign=top>
<TD>
<DIV align=right><FONT face=sans-serif size=1>A</FONT></DIV>
<TD><FONT face=sans-serif size=1>Steve.Toutant@inspq.qc.ca</FONT>
<TR vAlign=top>
<TD>
<DIV align=right><FONT face=sans-serif size=1>cc</FONT></DIV>
<TD><FONT face=sans-serif size=1>users@geoext.org</FONT>
<TR vAlign=top>
<TD>
<DIV align=right><FONT face=sans-serif size=1>Objet</FONT></DIV>
<TD><FONT face=sans-serif size=1>Re: [Users] add a "sliding msg box"
to the mappanel</FONT></TD></TR></TBODY></TABLE><BR>
<TABLE>
<TBODY>
<TR vAlign=top>
<TD>
<TD></TD></TR></TBODY></TABLE><BR></TD></TR></TBODY></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 color=blue
size=3><U>Steve.Toutant@inspq.qc.ca</U></FONT></A><FONT size=3>>
wrote:</FONT> <BR><FONT face=sans-serif size=2>Hello,</FONT><FONT size=3>
</FONT>
<P><FONT face=sans-serif size=2>I use the xtype: 'gx_mappanel' in an Ext
viewport.</FONT><FONT size=3> </FONT>
<P><FONT face=sans-serif size=2>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 face=sans-serif color=blue
size=2><U><BR></U></FONT><A
href="http://www.extjs.com/deploy/dev/examples/menu/menus.html"
target=_blank><FONT face=sans-serif color=blue
size=2><U>http://www.extjs.com/deploy/dev/examples/menu/menus.html</U></FONT></A><FONT
size=3> <BR></FONT><FONT face=sans-serif size=2><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 face=sans-serif size=2><BR>How can I accomplish that
please?</FONT><FONT size=3> <BR></FONT><FONT face=sans-serif
size=2><BR>thanks</FONT><FONT size=3> </FONT><FONT face=sans-serif
size=2><BR>Steve</FONT><FONT size=3> <BR></FONT><BR><FONT
size=3><BR>_______________________________________________<BR>Users mailing
list</FONT><FONT color=blue size=3><U><BR></U></FONT><A
href="mailto:Users@geoext.org"><FONT color=blue
size=3><U>Users@geoext.org</U></FONT></A><FONT color=blue
size=3><U><BR></U></FONT><A
href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target=_blank><FONT
color=blue
size=3><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
color=blue size=3><U>pierre.giraud@camptocamp.com</U></FONT></A><FONT color=blue
size=3><U><BR></U></FONT><A href="http://www.camptocamp.com/"><FONT color=blue
size=3><U>http://www.camptocamp.com</U></FONT></A><FONT size=3> </FONT>
<BR><BR><BR>
<P>
<HR>
<P></P>_______________________________________________<BR>Users mailing
list<BR>Users@geoext.org<BR>http://www.geoext.org/cgi-bin/mailman/listinfo/users<BR></BODY></HTML>