Bug 61 - [cwc2-widgets] textbutton background image in popups
: [cwc2-widgets] textbutton background image in popups
Status: VERIFIED FIXED
: Chameleon
Widget
: 1.0
: PC Windows 2000
: P2 normal
: ---
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2003-09-23 16:47 by
Modified: 2004-07-13 14:31 (History)


Attachments
gen_clear skin with background image (6.54 KB, application/zip)
2004-07-13 14:28, Chris Thorne
Details


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2003-09-23 16:47:02
the shared resource value for textbutton background image isn't passed to the
popup
dialogues.
------- Comment #1 From 2004-04-07 12:32:31 -------
this is fixed now.
------- Comment #2 From 2004-04-08 10:05:53 -------
I can back paul up on that claim, as he fixed it for me :)
------- Comment #3 From 2004-07-13 14:28:12 -------
Created an attachment (id=36) [details]
gen_clear skin with background image

skin to verify bug.
------- Comment #4 From 2004-07-13 14:31:42 -------
Verified on Windows using 1.99 beta 2 2004-07-09 by:

1) getting a new skin from fred (see attachment):

2) Registuring a new skin. This is done in bottom of the sample_enhanced.phtml file

$oApp =  new SampleApp();
$oApp->registerSkin( 'skins/sample'  );
$oApp->registerSkin( 'skins/gel_clear' );
$oApp->CWCInitialize( $szTemplate, $szMapFile  );
$oApp->CWCExecute();
?>

3) change the textbutton shareresource to point to a background image using
sample_enhaced.html:

<!-- defaults for Text Buttons -->
<cwc2 type="SharedResource" name="TextButtons">
    *<textbuttonbackgroundimage value="images/background_1.png"/>*
    <imagewidth value="120"/>
    <imageheight value="24"/>
    <textbuttonpadding value="0"/>
    <textbuttonnudge value="0"/>
    <labelcolor value="111111"/>
    <labelfont value="fonts/Vera.ttf"/>
    <labelalign value="left"/>
    <labelfontsize value="8"/>
    <labelantialias value="true"/>
    <usetextbuttoncache value="false"/>
    <state value="normal">
        <textbuttoncolor value="f0f0f0"/>
   
   ...

4) On load notice the butons change background
5) when popup is presented eg. Error Reporter the "close" button has also changed.