Unable to give desired color to Progress_bar_widget | developer.brewmp.com Unable to give desired color to Progress_bar_widget | developer.brewmp.com

Developer

Unable to give desired color to Progress_bar_widget

Forums:

hi,

Is it possible to give different colors to moving rectangles which are inside the "progress bar". Can anyone tell me how, If possible?!

 

Thanks in advance

You can use the following to set the filled region of the progress bar: IWidget_SetFGColor()
 
Regards,
Jason 

You can use the following to set the filled region of the progress bar: IWidget_SetFGColor()
 
Regards,
Jason 

i want to draw lines, circle with the color of choise for choosing color i have used  
 
 

COLOR = MAKE_RGB(139,69,19);
 
 

 but i am trying to draw line using
 

IGRAPHICS_SetColor(pg, 0, 0, 222, NULL);  

IGRAPHICS_DrawLine(pg, &line);  

 
 

IDisplay_Update (pMe->piDisplay);
how the "COLOR" can be used to draw line of desired color????
 

 

 

 
 
 
 
 
 
 

i want to draw lines, circle with the color of choise for choosing color i have used  
 
 

COLOR = MAKE_RGB(139,69,19);
 
 

 but i am trying to draw line using
 

IGRAPHICS_SetColor(pg, 0, 0, 222, NULL);  

IGRAPHICS_DrawLine(pg, &line);  

 
 

IDisplay_Update (pMe->piDisplay);
how the "COLOR" can be used to draw line of desired color????
 

 

 

 
 
 
 
 
 
 

I'm not clear on what exctly you are looking for. If you are talking about getting the color values (r,g,b) from COLOR (RGBVAL) to use in IGRAPHICS_SetColor then you can use below method:
    RGBVAL color = MAKE_RGB(139,69,19);    r = (color >> 8) & 0xFF;    g = (color >> 16) & 0xFF;    b = (color >> 24) & 0xFF;

I'm not clear on what exctly you are looking for. If you are talking about getting the color values (r,g,b) from COLOR (RGBVAL) to use in IGRAPHICS_SetColor then you can use below method:
    RGBVAL color = MAKE_RGB(139,69,19);    r = (color >> 8) & 0xFF;    g = (color >> 16) & 0xFF;    b = (color >> 24) & 0xFF;