GDL
About building parametric objects with GDL.

Menu icon - Windows

Anonymous
Not applicable
Hello all !
I try to put icons on button...
In the file .grc i have :
'GDLG' 32400  Palette | leftCaption | close    0    0 678  42  "" {
/* [  1] */ IconButton          6    1   40   40    32100								
/* [  2] */ IconButton         48    1   40   40    32101
My icons are in RFIX/images, the project build. When i test on archicad,there country flags instead of my icon...

If anyone can help me

Thanks
5 REPLIES 5
Tibor Lorantfy
Graphisoft Alumni
Graphisoft Alumni
Hi,

did you define the icons in the grc too?
You should have something like this:
'GICN' <ID_used_with_IconButton> "Set Import" {  
	"<Name_of_the_image_file>"  
	192 192 192  
}

Regards,
Tibor
Anonymous
Not applicable
In my files i have :

-The xxx.grc
...
/* [  9] */ IconButton        342    1   40   40    32108									
/* [  10] */ IconButton        384    1   40   40   32109	 								
/* [  11] */ IconButton        426    1   40   40    32110	
...
-The xxxFix.grc
...
'GICN' 32108 "AD090" {
			"AD090"
			255  255  255
}


'GICN' 32109 "AD100" {
			"AD100"
			255 255  255
}



'GICN' 32110 "AD110" {
			"AD110"
			255  255  255
}
...
Visual studio 2010 return this error :
C:/RFIX\Automate_Functions.grc (68) : An error was occured during converrsion of icon RFIX\Images\AD100.bmp (ResID: 32109)
Write_Error: An error was occured during conversion of icon RFIX\Images\AD100.bmp (RedID: 32109)
Images that is before 'AD100.bmp' are convert. All images are .bmp.
Tibor Lorantfy
Graphisoft Alumni
Graphisoft Alumni
Hi,

Can you show me your bmp images please?
It seems like your AD100.bmp is wrong (maybe too big).

Best Regards,
Tibor
Anonymous
Not applicable
2.11 Ko for this picture.
In my all picture the largest is 4 Ko/
Anonymous
Not applicable
I have resolv this problem, indeed pictures was on a Mac. I think the properties of this image creates a conflict when my project compiling.
So, i create an other image on Windows.
Thank you for all !