Set Font color

Source: Internet
Author: User

 

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);

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.