[Chameleon] waitimage and button width - SOLVED

Godwin, Liz Godwinl at AGR.GC.CA
Tue Jun 15 14:48:17 EDT 2004


Ok.  I found the imagewidth parameter.  I solved my own problem.

I had tried adding a "width" parameter" and it hadn't worked, so I
posted.  

I think we should all start posting docs to the wiki :-)

Liz

-----Original Message-----
From: chameleon-bounces at lists.maptools.org
[mailto:chameleon-bounces at lists.maptools.org] On Behalf Of Godwin, Liz
Sent: June 15, 2004 1:55 PM
To: pagameba at magma.ca; bartvde at xs4all.nl
Cc: chameleon at lists.maptools.org
Subject: RE: [Chameleon] waitimage and button width


I'd like to revisit this...  

I have two templates English and French in my case.  In the french one I
have included a shared resource for a separate french text button
styling, to account for longer button labels (I'm using skinned
buttons).  However, these shared resources are not used when the page is
drawn, only the original shared resource is.  What is going on here?
What else is being cached?

Liz Godwin

-----Original Message-----
From: pagameba at magma.ca [mailto:pagameba at magma.ca] 
Sent: May 10, 2004 7:52 AM
To: pagameba at magma.ca; bartvde at xs4all.nl
Cc: chameleon at lists.maptools.org
Subject: Re: [Chameleon] waitimage and button width


Bart,

bartvde at xs4all.nl wrote:

> Hi Paul (cc list),
> 
> -- 1 --
> I found one difference between Chameleon 1.1 and 1.99 with regard to
> the WaitImage.
> 
> This is what I used to use:
> <waitimage language="nl-NL"
> waitimage="/chameleon_images/spinner_nl.gif"
> waitimagewidth="246" waitimageheight="50"/>
> 
> chameleon_images was an alias to chameleon/htdocs/images
> 
> Now I have to use:
> <waitimage language="nl-NL" waitimage="images/spinner_nl.gif"
> waitimagewidth="246" waitimageheight="50"/>
> 
> Probably the same kind of change as with the popup.css ...

yes this is probably the same problem.

> 
> -- 2 --
> I have one issue with the button width, but this is not specific for
> version 1.99 of Chameleon.
> 
> When internationalizing a Chameleon application, some texts on the
> buttons become significantly larger than in the English version, which

> means I have to change the source code to provide a different width in

> the MakeButton function.
> 
> It would be great if something automagically could be arranged in
> which buttons would estimate their width needed. But I know this will 
> be difficult if not impossible to implement because of font 
> differences etc. and it could mess up HTML layouts etc.
> 
> But maybe something else could be invented so that this would not
> involve changing source code. This makes things difficult to maintain.
> 
> Any thoughts?

we talked about this already, we were thinking of having a mechanism for

wildcarding the widget (and posssibly height) to allow the button to 
stretch.  The current thoughts are:

width="*" - button is drawn just wide enough to accomodate the icon and 
text and padding

width="100*" - the button is drawn at least 100 px wide but will be 
stretched to allow for longer text if required

width="100" - the button is exactly 100 px regardless of text

Same logic could probably be used for height

I haven't investigated this yet.

Cheers,

Paul

> 
> Best regards,
> Bart
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
> 

-- 
  -----------------------------------------------------------------
|Paul Spencer                           pspencer at dmsolutions.ca   |
|-----------------------------------------------------------------|
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
  -----------------------------------------------------------------

_______________________________________________
Chameleon mailing list
Chameleon at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/chameleon

_______________________________________________
Chameleon mailing list
Chameleon at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/chameleon



More information about the Chameleon mailing list