bbm Posted November 8, 2020 Share Posted November 8, 2020 Hi, How can I switch a panel collapsible on and off at runtime? Collapsible = False does not work. Best regards Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 8, 2020 Share Posted November 8, 2020 3 hours ago, bbm said: How can I switch a panel collapsible on and off at runtime? Collapsible = False does not work. Hi, Can you try this approach for now? procedure TMainForm.UniButton1Click(Sender: TObject); begin with UniPanel1 do begin Collapsible := not Collapsible; JSInterface.JSCall('setCollapsible', [Collapsible]); end; end; Quote Link to comment Share on other sites More sharing options...
bbm Posted November 9, 2020 Author Share Posted November 9, 2020 Hi Sherzod, thank you very much. It works! Best regards Quote Link to comment Share on other sites More sharing options...
bbm Posted November 12, 2020 Author Share Posted November 12, 2020 Hi Sherzod, I have another problem with the solution. When I use Collapsible := not Collapsible; JSInterface.JSCall('setCollapsible', [Collapsible]); the pager of a uniDBGrid, placed at the panel, is not visible anymore. Is there any way to bring the pager visible again? Best regards, Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 12, 2020 Share Posted November 12, 2020 Hi, 8 minutes ago, bbm said: the pager of a uniDBGrid, placed at the panel, is not visible anymore. How can I reproduce this? Quote Link to comment Share on other sites More sharing options...
bbm Posted November 12, 2020 Author Share Posted November 12, 2020 Hi, I have no idea! Is it possible to make like a refresh or realign? Best regards Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 12, 2020 Share Posted November 12, 2020 Just now, bbm said: I have no idea! Is it possible to make like a refresh or realign? Can you make a simple testcase? Quote Link to comment Share on other sites More sharing options...
bbm Posted November 12, 2020 Author Share Posted November 12, 2020 Hi, The problem is that the application has gotten pretty powerful now. It may be due to the design of the application. For this reason, a test case does not seem to me to be effective. Is it possible to switch the pager on and off via JavaScript? Best regards, Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 12, 2020 Share Posted November 12, 2020 7 minutes ago, bbm said: Is it possible to switch the pager on and off via JavaScript? What do you mean? Quote Link to comment Share on other sites More sharing options...
bbm Posted November 12, 2020 Author Share Posted November 12, 2020 Hi, I mean to make the pager visible or unvisible with JavaScript. The idea is to make a work arround to make the pager visible. Best regards, Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 12, 2020 Share Posted November 12, 2020 1 minute ago, bbm said: the pager Could you please provide a screenshot? Quote Link to comment Share on other sites More sharing options...
bbm Posted November 12, 2020 Author Share Posted November 12, 2020 Quote Link to comment Share on other sites More sharing options...
bbm Posted November 12, 2020 Author Share Posted November 12, 2020 Hi As a workaround, it would also help if I left the panel collapsible and only prevented the panel from collapsing. Is it possible to do this? Best regards, Quote Link to comment Share on other sites More sharing options...
bbm Posted November 12, 2020 Author Share Posted November 12, 2020 Hi, sorry, but I think the screenshots are a little confusing. For me it will be OK, if the arrow for collapsing a panel is visible, and the collapsing can be prevented. Is there any way? Best regards 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.