A6.40.2 Button bug

Posted By: vlau

A6.40.2 Button bug - 03/18/06 16:00

panel myButtons
{
...
...
button 500,30,NULL,<btnNormal.tga>,<btnOver.tga>,NULL,NULL,NULL;
}

Error(137): Bitmap unknown NULL
while the manual said each of the bitmaps and functions can be replaced by NULL.
Posted By: HeelX

Re: A6.40.2 Button bug - 03/18/06 16:18

try this:

bmap btnNormal = <btnNormal.tga>;
bmap btnOver = <btnOver.tga>;

panel myButtons
{
...
...
button 500,30,btnNormal,btnNormal,btnOver,NULL,NULL,NULL;
}
Posted By: FRAJO

Re: A6.40.2 Button bug - 03/18/06 17:03

panel myButtons
{
...
...
button 500,30,NULL,"btnNormal.tga",btnNormal_tga,NULL,NULL,NULL;
}

define bmaps in button defs with "" the point gets replaced by an underscore
Posted By: vlau

Re: A6.40.2 Button bug - 03/18/06 17:38

Thanks Heelx and FRAJO.

but this line :
button 500,30,<btnClick.tga>,<btnNormal.tga>,<btnOver.tga>,NULL,NULL,NULL;

also work without error, only NULL doesn't, and the manual said both bitmap
and function can be replaced by NULL.

PS : FRAJO, have you got my email
Posted By: jcl

Re: A6.40.2 Button bug - 03/20/06 08:37

This is what the manual says:

"Except for bmapOn, which determines the size of the button, each of the bitmaps and functions can be replaced by NULL."
Posted By: vlau

Re: A6.40.2 Button bug - 03/20/06 12:11

Ah, Sorry for that, but could it be implement
in the future?
© 2024 lite-C Forums