Jump to content

How to have a UniListBox or UniTreeView to display a Horizontal scrollbox


ana.rodrigues

Recommended Posts

27 minutes ago, ana.rodrigues said:

I have this problem. I want to have a horizontal scrollbox to appear in a UniListBox and UniTreeView. I only have Vertically.

When my items have a caption longer than the width of the UniListBox or UniTreeView it doesn't show it tottally.

Hello,

Try this approach for now (UniTreeView):

procedure TMainForm.UniFormCreate(Sender: TObject);
begin
  UniTreeView1.JSInterface.JSAddListener('afterlayout', 'function(){this.getEl().down(".x-tree-view").setStyle("overflowX", "auto")}');
end;

 

  • Like 1
Link to comment
Share on other sites

16 hours ago, Sherzod said:

Hello,

Try this approach for now (UniTreeView):


procedure TMainForm.UniFormCreate(Sender: TObject);
begin
  UniTreeView1.JSInterface.JSAddListener('afterlayout', 'function(){this.getEl().down(".x-tree-view").setStyle("overflowX", "auto")}');
end;

 

Thank you so much. It worked!!!

Is there a similar way for TUniListboxes also?

Best Regards

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...