setcmdicon("macros(_K75t_code)", "blocks.png[0]", 16, 16, "blocks.png[1]", "blocks.png[2]" );
setcmdicon("macros(_K75t_code)", "blocks.png[0]", 16, 16);
Quote
Dorian
Instead of: setcmdicon("macros(_K75t_code)", "blocks.png[0]", 16, 16, "blocks.png[1]", "blocks.png[2]" ); You should use: setcmdicon("macros(_K75t_code)", "blocks.png[0]", 16, 16); Kmeleon will pick hot and disabled icons automatically
Quote
Dorian
Quotes around numbers do nothing except adding an extra string to number conversion.
Quote
siria
The only question mark left is now the size.
Is there still only 1 size possible for ALL buttons created by the new methods?
Or what if mixed methods are used, traditional and new macro commands, would that allow mixed button sizes?
Quote
siria
Oh and this: is it correct that this new version command always needs multi-row images to show hot/cold/dead icons?
Not possible to use separate images anymore like privcold/privhot, or side-by-side pics like ABPlus?
$_K75t_face == 1 ? $_K75t_face = 0 :$_K75t_face = 1 ; setcmdicon("macros(_K75twice_code)", "miscB3".$_K75t_face.".png", 16, 16, "miscB3".$_K75t_face+2.".png" );
setcmdicon("macros(_K75t_code)", "JS_Flag.bmp[0]", 16, 16, "JS_Flag.bmp[3]", "JS_Flag.bmp[2]" );
Quote
siria
The only question mark left is now the size.
Is there still only 1 size possible for ALL buttons created by the new methods?
Or what if mixed methods are used, traditional and new macro commands, would that allow mixed button sizes?
Quote
JamesD
I still have one method to find/explore. I am sure Dorian posted a method to point to an individual part of a multi-part png file. I just have not had time to find that post. By multi-part I mean a file with an array of more the one in both directions.
Quote
Dorian
You can still have different different toolbar size, but I may have to fix at least the height in the future.
Quote
Dorian
You will have to change it again because I think I'll change the syntax
addbutton(toolbarname, command, menu, tooltip)