RgbvalIdisplay_setcolor
(
Idisplay * Po,
AeeclritemItem,
RgbvalRGB
)
Parameters:
Po: [in]: pointer to the idisplay interface object used to change the color of a user Project
Items: [in]: Specifies the color item to change or obtain the color.
RGB: [in]: Specifies the new color associated with the item mentioned in the "item" parameter. It can be an index of the item in the aeeclritem enumeration or an RGB value. You can use the value of rgb_none to obtain the color without changing it.
Example:
aechar pbuff [11] = {0 }; <br/> rgbval textcolor; </P> <p> ishell_loadresstring <br/> (<br/> PME->. m_pishell, <br/> lessonappsres_file, <br/> ids_string_hello, <br/> pbuff, <br/> 22 <br/> ); </P> <p> textcolor = idisplay_setcolor <br/> (<br/> PME->. m_pidisplay, <br/> clr_user_text, <br/> make_rgb (250,0, 0) <br/> ); </P> <p> idisplay_drawtext <br/> (PME->. m_pidisplay, <br/> aee_font_normal, <br/> pbuff, <br/>-1, <br/> 60, <br/> 100, <br/> null, <br/> null <br/>); </P> <p> idisplay_update (PME->. m_pidisplay);