[v8i SS3 C++] Setting active color

Hi,

I am trying to set active color to index 0.

I was using below line but it does not show active color on menu bar properly. Directly setting system variable may not be safe too.

#define AK_WALL_COLORID 0

tcb->symbology.color = AK_WALL_COLORID;

So I tried below code but it sets color to 48.

#define AK_WALL_COLORID 0

UInt32 color=(UInt32)AK_WALL_COLORID;

mdlParams_setActive ((void *)&color,ACTIVEPARAM_COLOR);
mdlParams_getActive ((void *)&color,ACTIVEPARAM_COLOR); //color returned is 2683184 // 2683184 mod 256 is 48

Any idea?

Parents Reply Children
No Data