Jump to content

Panel collapsible yes/no at runtime


bbm

Recommended Posts

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;

 

Link to comment
Share on other sites

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,

Link to comment
Share on other sites

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,

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...