MapTools.org

[Chameleon] TextButton SharedResource Problem

Rene Teniere TENIERER@gov.ns.ca
Fri, 09 Jan 2004 11:03:56 -0400
Ok all,

Finally got it working. All of the paths had to be absolute for the
images and font files. I think one of my font files were corrupted,
because I reinstalled them in the ETC directory, and it worked fine.
Also, setting the usetextbuttoncache value to false works from the start
as long as everything else is set correctly (i.e. paths). Thanks to Paul
who guided me through this, I appreciate it.

Later,
  Rene

>>> "Rene  Teniere " <TENIERER@gov.ns.ca> 2004-01-09 10:53:09 AM >>>
Paul,

I've been fooling around with this and I believe that we are very
close
to figuring this out. I decided to change the image SRC's to absolute
paths, then delete all temp buttons and set the cache to false. When I
did this, it would not load the site, however, when I set the cache
back
to true, the site came back up with the image in the button loaded.
This
seems to work, but I'll have to fool with it some more. Hopefully
you'll
have some ideas.

Rene

>>> pagameba@magma.ca 2004-01-09 9:59:58 AM >>>
Rene,
you have the value of usetextbuttoncache set to true, which means that

the buttons will never be regenerated.  Try setting this to false. 
You

can also try manually deleting all the button images.  If you are
using

MS4W then this directory would be /ms4w/tmp/ms_tmp/buttons/ - delete 
everything in it.  If you are not, then you would have set a value for

the button cache path in the cwc2.xml file

Cheers,

Paul

Rene Teniere wrote:

> 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 
_______________________________________________
Chameleon mailing list
Chameleon@lists.maptools.org 
http://lists.maptools.org/mailman/listinfo/chameleon


This archive was generated by Pipermail.