BIM Coordinator Program (INT) April 22, 2024
Find the next step in your career as a Graphisoft Certified BIM Coordinator!
Archicad C++ API
About Archicad add-on development using the C++ API.

Image on IconButton

Anonymous
Not applicable
Hi Guys,

I have a problem my images not appear on my IconButton, they appear on my old version with the API 17, now on the API 18 they not appear.
I have this bug on mac and windows.
All images was in "RFIX > images"
'GDLG'  32506   Modal    102   0  290  600  "Save"  {
/* [  1] */ IconButton             15  10   32   32  32100
/* [  2] */ LeftText			   65  15   200   30  LargePlain	"Survey and Demolition"

/* [  3] */ IconButton             15  45   32   32  32101
/* [  4] */ LeftText			   65  55   100   15  LargePlain	"Structure"

/* [  5] */ IconButton             15 80   32   32  32102
/* [  6] */ LeftText			   65 85   300  40  LargePlain		"External Openings Doors Windows"

/* [  7] */ IconButton             15 115   32   32  32103
/* [  8] */ LeftText			   65 120   300  40  LargePlain		"Partitions Ceilings Finishes"

/* [  9] */ IconButton             15  150   32   32  32104
/* [  10] */ LeftText			   65  155  300   40  LargePlain	"Internal Openings Doors Windows"

/* [  11] */ IconButton            15  185   32   32  32105
/* [  12] */ LeftText			   65  190  200   15  LargePlain	"MEP"

/* [  13] */ IconButton            15  220   32   32  32106
/* [  14] */ LeftText			   65  225  200   15  LargePlain	"Furnishing"

/* [  15] */ IconButton            15  255   32   32  32107
/* [  16] */ LeftText			   65  260  200   15  LargePlain	"Site Design"

/* [  17] */ IconButton            15  290  32   32  32108
/* [  18] */ LeftText			   65  295  300  30  LargePlain		"Presentation Sections Elevations"

/* [  19] */ IconButton            15  325  32   32  32109
/* [  20] */ LeftText			   65  330  200  15  LargePlain		"Area calculation"

/* [  21] */ IconButton            15 360  32   32  32110
/* [  22] */ LeftText			   65 365  200  15  LargePlain		"Detailing"

/* [  23] */ IconButton            15 395  32   32  32111
/* [  24] */ LeftText			   65 400  200  30  LargePlain		"Annotations and Dimensions"

/* [  25] */ IconButton            15 430  32   32  32111
/* [  26] */ LeftText			   65 435  300  30  LargePlain		"Annotations and Dimensions 1/4"

/* [  27] */ IconButton            15 465  32   32  32111
/* [  28] */ LeftText			   65 470  300  30  LargePlain		"Annotations and Dimensions 1/8"

/* [  29] */ IconButton            15 500  32   32  32111
/* [  30] */ LeftText			   65 505  300  30  LargePlain		"Annotations and Dimensions 1/16"

/* [  31] */ Button			       85 550  125   20  LargePlain		"Cancel"
}
Thanks in advance.
1 REPLY 1
Tibor Lorantfy
Graphisoft Alumni
Graphisoft Alumni
Hi,

Please try to re-save your images with some newer image editing app. We've updated the image handling code in AC 18 to use Window Imaging Components on Windows, and the ImagIO framework on Mac.

All images should be in "RFIX/Images" folder!

Did you get any warning while building the AddOn?
After you've successfully built the AddOn on Mac, please check that inside the AddOn's bundle in Contents/Resources folder are there any .tif file.

Interface_Functions example AddOn contains IconButtons also, which are working good.

Best,
Tibor
Learn and get certified!