JamesP Posted July 12, 2022 Share Posted July 12, 2022 Hello, Could you please advise how to remove border for Panel Title? The border appears when Panel Title is focused (when I clicked on it). Without clicking on title it shows OK. Thank you in advance Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 12, 2022 Share Posted July 12, 2022 Hello, This post may help you: Quote Link to comment Share on other sites More sharing options...
JamesP Posted July 13, 2022 Author Share Posted July 13, 2022 Hi Sherzod, 15 hours ago, Sherzod said: Hello, This post may help you: Thank you for looking at it. I have looked at post you suggested, but everybody said in that post that it's not resolved the issue panel title still had a border/focus border around the title. I have tried it by myself and it did not work for me: TMainForm.UniFormCreate(Sender: TObject); beginUniPanel1.JSInterface.JSConfigObject('header', 'focusCls', ['']); end; You have mention that you didn't understand my case, let me please to explain what I try to achieve here: I have got a frame which has "accordion" layout where in runtime 3 panels are created with titles: "Applications", "Maintenance" and "System". those panels have "background: SlateGray;" and "accordion" layout as well and they have children panels with "background: LightBlue;". If you look at screens I have provided earlier or below, it's expanded Panel "Maintenance" and inside panel with title "Panel Title" (obviously. I called it "Panel Title" only to provide those screens). You can see the panel with title "Panel Title" has a border around title as I clicked on panel title. If I click somewhere inside this panel the border disappears. Also the border doesn't appear if I expand/collapse panels by using "+" / "-", it only happens when I click on panel title. if we look at the uniGUI demo Layout Management -> Accordion Layout we won't see that kind of border as themes have the same colour for background colour and border around panel title text (I mean title label/caption) The same happens for Parent panels as well Also, I have tried your suggestion for panel created in design time as well and it didn't work either. I have changed the background colour for whole title using CSS, but couldn't manage to change border colour around Title text. Could you please help me out this that as it looks awkward? Kind Regards Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 13, 2022 Share Posted July 13, 2022 5 hours ago, JamesP said: I have tried it by myself and it did not work for me Okay, also try this approach, OnReady event: procedure TMainForm.UniFormReady(Sender: TObject); begin UniPanel1.JSInterface.JSAssign('header.titleCmp.focusCls', ['']); end; Quote Link to comment Share on other sites More sharing options...
JamesP Posted July 13, 2022 Author Share Posted July 13, 2022 1 hour ago, Sherzod said: Okay, also try this approach, OnReady event: procedure TMainForm.UniFormReady(Sender: TObject); begin UniPanel1.JSInterface.JSAssign('header.titleCmp.focusCls', ['']); end; I have just tried your solutions and it worked as I needed for panel that has been created at design time and for panels that are created at runtime. It's perfect. Thank you very much for your help. Kind Regards 1 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.