picyka Posted February 2, 2022 Share Posted February 2, 2022 Good afternoon, would I be able to open and close when I click on the title of the panel? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 2, 2022 Share Posted February 2, 2022 Hi, Yes. 1 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 2, 2022 Share Posted February 2, 2022 12 minutes ago, picyka said: Good afternoon, would I be able to open and close when I click on the title of the panel? procedure TMainForm.UniFormCreate(Sender: TObject); begin UniPanel1.JSInterface.JSConfig('titleCollapse', [True]); end; Quote Link to comment Share on other sites More sharing options...
picyka Posted February 2, 2022 Author Share Posted February 2, 2022 6 minutes ago, Sherzod said: procedure TMainForm.UniFormCreate(Sender: TObject); begin UniPanel1.JSInterface.JSConfig('titleCollapse', [True]); end; faster than an arrow, it really works, now to get a 10, it would be nice if the mouse pointer stayed the same on the icon, then it would be beautiful... Quote Link to comment Share on other sites More sharing options...
picyka Posted February 2, 2022 Author Share Posted February 2, 2022 I'm here thinking, so many hidden properties, right, the components can be more complete (just an idea) Quote Link to comment Share on other sites More sharing options...
picyka Posted February 2, 2022 Author Share Posted February 2, 2022 5 minutos atrás, picyka disse: mais rápido do que uma seta, ele realmente funciona, agora para obter um 10, seria bom se o ponteiro do mouse permanecesse o mesmo no ícone, então seria lindo... I changed the cursor directly in the panel, that's fine. thank you sooo much Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 2, 2022 Share Posted February 2, 2022 5 minutes ago, picyka said: faster than an arrow, it really works, now to get a 10, it would be nice if the mouse pointer stayed the same on the icon, then it would be beautiful... 1. CustomCSS: .customHeaderOverCls { cursor: pointer; } 2. procedure TMainForm.UniFormCreate(Sender: TObject); begin UniPanel1.JSInterface.JSConfig('titleCollapse', [True]); UniPanel1.JSInterface.JSConfigObject('header', 'overCls', ['customHeaderOverCls']); end; Quote Link to comment Share on other sites More sharing options...
picyka Posted February 2, 2022 Author Share Posted February 2, 2022 3 minutos atrás, Sherzod disse: 1. Customcss: .customHeaderOverCls { cursor: pointer; } 2. procedure TMainForm.UniFormCreate(Sender: TObject); begin UniPanel1.JSInterface.JSConfig('titleCollapse', [True]); UniPanel1.JSInterface.JSConfigObject('header', 'overCls', ['customHeaderOverCls']); end; I just wanted to know 10% of what you know unigui hahahahaha got top Big hug Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 2, 2022 Share Posted February 2, 2022 You know much more than you think, I'm sure of it. 2 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.