likemike Posted March 22, 2021 Share Posted March 22, 2021 Hello! I've tried it with css, but still doesn't work. Thanks in advance Mike Link to comment Share on other sites More sharing options...
Sherzod Posted March 22, 2021 Share Posted March 22, 2021 29 minutes ago, likemike said: I've tried it with css, but still doesn't work. Hello, Try this approach. 1. CustomCSS: .borderImg img { border: green; border-style: solid; border-width: 2px; } 2. procedure TMainmForm.UnimFormCreate(Sender: TObject); begin with UnimImage1.JSInterface do JSConfig('cls', ['borderImg']); end; Link to comment Share on other sites More sharing options...
likemike Posted March 22, 2021 Author Share Posted March 22, 2021 Thanks a lot! Link to comment Share on other sites More sharing options...
55143681 Posted June 18, 2021 Share Posted June 18, 2021 On 3/23/2021 at 3:18 AM, likemike said: Thanks a lot! Only the Top and Left border,why? Link to comment Share on other sites More sharing options...
55143681 Posted June 18, 2021 Share Posted June 18, 2021 On 3/23/2021 at 1:07 AM, Sherzod said: Hello, Try this approach. 1. CustomCSS: .borderImg img { border: green; border-style: solid; border-width: 2px; } 2. procedure TMainmForm.UnimFormCreate(Sender: TObject); begin with UnimImage1.JSInterface do JSConfig('cls', ['borderImg']); end; void __fastcall TMainmForm::UnimFormCreate(TObject *Sender) { UnimImage1->JSInterface->JSConfig("cls","['borderImg']"); } Link to comment Share on other sites More sharing options...
Recommended Posts