Thanks for you reply Manos
I've got the O'Reilly book 'Creating applications with Mozilla' and
I've looked throught the flex and spacer stuff. It's good but it
seems to be more like what Motif used to have - attachments -
essentially telling one component to coordinate its layout with
another component. In the test page
(http://www.landstore.net/testIF8a.html is a better example of this) I
using the mouse wheel to recalculate a scaleFactor variable. As the
width, height, left and top of the graphics container is linked to
this scaleFactor variable with an expression - eg
<div id="dvContainer" style="position:absolute;
width:expression(ntx*px*scaleFactor);
height:expression(nty*py*scaleFactor);
left:expression(dvGraphics.style.posWidth/2-dvContainer.style.posWidth*ox+panx);
top:expression(dvGraphics.style.posHeight/2-dvContainer.style.posHeight*oy+pany);">
</div>
just changing the scaleFactor variable will cause the whole image to
grow or shrink while keeping the display correctly centered. I would
LOVE to be able to do this with Mozilla (and I would love not to have
to rely on IE) but I don't see how I can do this with XUL/XBL etc.
Help me Obi Wan...
Peter
PS: If Mozilla can't do it - I would recommend it as something to
consider adding in a future release.
"Emmanuil Batsis (Manos)" <[EMAIL PROTECTED]> wrote in message
news:<aricrg$[EMAIL PROTECTED]>...
> Peter B ayley wrote:
>
> > How do I do this sort of thing in Mozilla - XUL/XBL/XPConnect?
>
> You don't need CSS expressions in XUL to achieve this, since the XUL box
> model supports this nativelly using flex attributes, spacer elements
> etc. This also works faster than IE's implementation - trust me, I used
> to develop IE specific intranets using every IE specific technology that
> exists. I'm with the good guys now.
>
> Cheers,
>
> Manos