Jump to content
uniGUI Discussion Forums

Recommended Posts

Hi,

 

I am creating an accordion style menu using panel. 

I can have multiple panels with title bar.

Inside each I can have multiple buttons. Therefore, it needs to be scroll-able.

I used UniSimplePanel with AutoScroll set to true.

 

The issue is that UniSimplePanel shows an empty title bar.

I dont need this extra title bar (See attached image and Project).

 

My question is, is there a way to remove title bar from UniSimplePanel? 

Alternatively, is there a way to make UniPanel scroll-able?

 

Unigui:1.10.0.1469

 

Thanks.

post-4608-0-52939600-1530817728_thumb.png

ScrollableAccordionLayout.zip

Link to post
Share on other sites

Hi,

 

The issue is that UniSimplePanel shows an empty title bar.

I dont need this extra title bar (See attached image and Project).

 

My question is, is there a way to remove title bar from UniSimplePanel?

 

Need to analyze, but in this case you can try to use this approach:

procedure TMainForm.UniFormReady(Sender: TObject);
begin
  UniSimplePanel1.JSInterface.JSCall('header.hide', []);
  UniSimplePanel2.JSInterface.JSCall('header.hide', []);
end;
Alternatively, is there a way to make UniPanel scroll-able?
 
For example, for UniPanel4
 
1.
post-906-0-19425200-1530819646_thumb.png
 
2. UniPanel4
 
  Layout -> column
function beforeInit(sender, config)
{
    config.scrollable=true;
}
Try...
 
  • Upvote 1
Link to post
Share on other sites
  • 9 months later...

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...