MapTools.org

[Chameleon] TextButton SharedResource Problem

Rene Teniere TENIERER@gov.ns.ca
Fri, 09 Jan 2004 09:33:51 -0400
Hey Paul,

Sorry, but that didn't work. Like I say, it's weird that only the
Cancel buttons in the popup menus work correctly. At one point they just
started to work!?! All of the other buttons in the popup menus only have
the image working, no border or text, while the others in the main page
only have the size and background colour working.  Really bloody
strange. Any other ideas up your sleeve?

Rene

>>> pagameba@magma.ca 2004-01-08 6:16:14 PM >>>
Rene,

I think your labelfont is incorrect.  Try putting the full filesystem 
path to the font file in here.

The code that uses the font file tries to determine its full path 
relative to its location in CWC2, for instance the default value is 
"../etc/arialbd.ttf"

Cheers,

Paul

Rene Teniere wrote:

> Hi all,
> 
> Has anyone figured out why the TextButton SharedResource tag will
not
> display the text label, and textbuttonborder and image images? If
so,
> can you let me know? I am including the code for the TextButton
> SharedResource:
> 
> Rene
> 
> <cwc2 type="SharedResource" name="TextButton">
>     <textbuttoncolor value="d9d9d9"/>
>     <textbuttonwidth value="90"/>
>     <textbuttonheight value="24"/>
>     <textbuttonbackgroundimage value=""/>
>     <textbuttonborder_topleft_image
> value="/chameleon_sites/test/images/tl_2.png"/>
>     <textbuttonborder_top_image
> value="/chameleon_sites/test/images/t_2.png"/>
>     <textbuttonborder_topright_image
> value="/chameleon_sites/test/images/tr_2.png"/>
>     <textbuttonborder_right_image
> value="/chameleon_sites/test/images/r_2.png"/>
>     <textbuttonborder_bottomright_image
> value="/chameleon_sites/test/images/br_2.png"/>
>     <textbuttonborder_bottom_image
> value="/chameleon_sites/test/images/b_2.png"/>
>     <textbuttonborder_bottomleft_image
> value="/chameleon_sites/test/images/bl_2.png"/>
>     <textbuttonborder_left_image
> value="/chameleon_sites/test/images/l_2.png"/>
>     <textbuttonpadding value="2"/>
>     <textbuttonnudge value="0"/>
>     <labelcolor value="000000"/>
>     <labelfont value="/chameleon_sites/test/arialbd.ttf"/>
>     <labelalign value="left"/>
>     <labelfontsize value="8"/>
>     <labelantialias value="true"/>
>     <usetextbuttoncache value="true"/>
> </cwc2>
> 
> 
> Rene J.R. Teniere - BSc., D.GIS
> GIS Technician
> Nova Scotia Department of Natural Resources
> Forestry Division (GIS) - Truro
> 
> Phone: (902) 893-5655
> Mobile: (902) 209-8956
> _______________________________________________
> Chameleon mailing list
> Chameleon@lists.maptools.org 
> http://lists.maptools.org/mailman/listinfo/chameleon 
> 

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

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


This archive was generated by Pipermail.