Bug 359 - [Chameleon] button.php - does not handle less than 8 border images
: [Chameleon] button.php - does not handle less than 8 border images
Status: CLOSED FIXED
: Chameleon
Core
: 1.99
: All All
: P2 normal
: 1.99 beta 2
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2004-04-20 10:17 by
Modified: 2004-06-24 14:41 (History)


Attachments


Note

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


Description From 2004-04-20 10:17:26
Currently if you specify one border image, buttonizer expects 7 more and reports
errors if ther are none specified.

It should be able to handle any number of borders < 8 and draw nothing where
borders have not been defined.

an example is a tab, which does not have the bottom 3 borders.  those bottom 3
should be left undrawn because they have not been defined.
------- Comment #1 From 2004-04-21 11:33:27 -------
cannot reproduce ... it works for me with the latest cvs to specify only one
image (in my example I set just the left image).

do the errors appear in popups or the main app page ... and do they appear
through the error manager or in the page as php errors/warnings?
------- Comment #2 From 2004-04-21 16:06:24 -------
the errors appeared int the main page of the application, but only occur if you
do not provide the bottom right image.

the errors are as follows.

Notice: Undefined index: TEXTBUTTONBORDER_BOTTOMRIGHT_IMAGE in
C:\DMSG\msapps\chameleon1.1\chameleon\htdocs\widgets\Button.php on line 618

Warning:
imagecreatefrompng(C:\\DMSG\\msapps\\chameleon1.1\\chameleon_sample_fred\\htdocs//):
failed to open stream: Permission denied in
C:\DMSG\msapps\chameleon1.1\chameleon\htdocs\common\buttonizer\buttonizer.php on
line 660

Warning: imagesx(): supplied argument is not a valid Image resource in
C:\DMSG\msapps\chameleon1.1\chameleon\htdocs\common\buttonizer\buttonizer.php on
line 661

Warning: imagesy(): supplied argument is not a valid Image resource in
C:\DMSG\msapps\chameleon1.1\chameleon\htdocs\common\buttonizer\buttonizer.php on
line 662
------- Comment #3 From 2004-04-21 17:56:09 -------
fixed.  There was a copy/paste error that caused this.
------- Comment #4 From 2004-06-24 14:41:02 -------
verified using beta 2 2004-06-20 and closing