Jump to content

UniTreeMenu can not scroll


55143681

Recommended Posts

I create a uniTreeMenu,with many subitems,when the subitems come out,the window do not have scroll bar,

It should have.

void __fastcall TMainForm::UniBitBtn1Click(TObject *Sender)
{
TUniTreeNode * pos;
int i,j;
for(int i=1;i<5;i++)
    {
    pos=UniTreeMenu1->Items->Add(NULL,"mainMenu_"+String(i));
    for(int j=1;j<20;j++)
        {
        UniTreeMenu1->Items->Add(pos,"subMenu_"+String(j));
        }

    }

}

 

 

2019-01-06_162812.png

Link to comment
Share on other sites

  • 3 years later...

 

Greetings, I have the same problem with the UniTreeMenu, at runtime the Vertical Scroll is not activated,

in the forum it says that the following function is the solution, but I don't know how to use this function. Can someone enlighten me?

 


 treeMenu.afterCreate(sender)
{
    sender.el.setStyle('overflow-y', 'auto');
}
Link to comment
Share on other sites

25 minutes ago, JOSE ALCANTARA said:

I have the same problem with the UniTreeMenu, at runtime the Vertical Scroll is not activated,

in the forum it says that the following function is the solution, but I don't know how to use this function.

Hello,

Please specify which edition and build of UniGUI are you using?

Link to comment
Share on other sites

  • 1 year later...

Hello,
I am running 1.90.0.1565 and the previous solution no longer works. Does anyone have a proper solution for scrolling the uniTreeMenue vertically?

 

For the solution, please look here;

 

Link to comment
Share on other sites

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