SergioFeitoza Posted March 9, 2021 Share Posted March 9, 2021 How to show a border in Tunicontainerpanel ? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 9, 2021 Share Posted March 9, 2021 1 hour ago, SergioFeitoza said: How to show a border in Tunicontainerpanel ? Hello, One possible solution: procedure TMainForm.UniFormCreate(Sender: TObject); begin with UniContainerPanel1.JSInterface do begin JSConfig('border', [1]); JSAddListener('afterrender', 'function(){this.setStyle("border-color", "green"); this.setStyle("border-style", "solid")}'); end; end; Quote Link to comment Share on other sites More sharing options...
alfr Posted March 9, 2021 Share Posted March 9, 2021 Or use another of the unipanel components...? Tunipanel tunisimplepanel Quote Link to comment Share on other sites More sharing options...
SergioFeitoza Posted March 9, 2021 Author Share Posted March 9, 2021 5 hours ago, Sherzod said: Hello, One possible solution: procedure TMainForm.UniFormCreate(Sender: TObject); begin with UniContainerPanel1.JSInterface do begin JSConfig('border', [1]); JSAddListener('afterrender', 'function(){this.setStyle("border-color", "green"); this.setStyle("border-style", "solid")}'); end; end; Thank you vey much Sherzod . It worked well Quote Link to comment Share on other sites More sharing options...
SergioFeitoza Posted March 9, 2021 Author Share Posted March 9, 2021 3 hours ago, alfr said: Or use another of the unipanel components...? Tunipanel tunisimplepanel Thank you alfr. It is another possibilty but worked well with solution above Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.