I would like to use icons from fontawesome as icon on button, is that possible ?
I managed to show fontawesome icons on labels with the following code:
1) In servercontroller event on create the following is executed
- Code: Select all
HTMLHeaders.Add('<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">');
2) Configure label
- Code: Select all
Label.caption := '<i class="fas fa-mobile-alt"></i> Mobile'
Label.RawText := True;
Button does not have RawText property so tekst <i class="fas fa-mobile-alt"></i> is not shown as picture but as regular text.
Regards,
Tomaž