duilib duilib Concise Guide to Getting Started tutorial 18. Other

A, hyperlink button
     code is simple, see 360Demo:
     

<the Button text = "{U} {A} help {/ a} {/ u} " showhtml = "true" />

     
    here only need to add showhtml = "true" and then write the class html code in the text property to it, but duilib support only a small part of the html code, specific see Demo format and source code -

Second, support for html
    due html very convenient, so duilib also provided some support, above the hyperlink button is to use html to indicate, there are a lot of html in 360Demo inside support, please refer to Demo, the effect shown:
 

Third, change the font
    introduced in front of the Default property, belonging to the global properties, but also a global font attributes, is defined to a child node.    
    

    Numbers start with 0, the above order, the first 0 is the font name is [20] font font, so if you want to use this font, you only need to specify the font number in the properties of the control, such as:
    



four, duilib of other operations are still win32 practice
       1, exe icon set of
            import an icon resource to, follow these steps:          
 

 

 
    after running you can see the icon and the taskbar icon exe has changed ~
      
    Note: If the taskbar icon is not change, you need to call SetIcon (IDR_MAINFRAME); // set the taskbar icon (which is the icon of IDR_MAINFRAME ID)

    2, set up the company, product name, description, version, etc.
        In Task Manager you can see a lot of exe description, the description of this Demo is Duilib Tutorial.exe
 

    if you want to change it to another name, you need to add a resource Version Proceed as follows
 
 

to modify the appropriate information to the Version in
 

modified the results were as follows:
 
 

    3, set other operations tray, etc. are also win32 practice, not setting them up.

Guess you like

Origin www.cnblogs.com/blogpro/p/11427106.html