55143681 Posted January 6, 2019 Share Posted January 6, 2019 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)); } } } Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 6, 2019 Share Posted January 6, 2019 One possible solution: Quote Link to comment Share on other sites More sharing options...
55143681 Posted January 8, 2019 Author Share Posted January 8, 2019 On 1/6/2019 at 6:43 PM, Sherzod said: One possible solution: After added that,Nothing is shown in the form,include a button. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 8, 2019 Share Posted January 8, 2019 17 minutes ago, 55143681 said: After added that,Nothing is shown in the form,include a button. Can you check again? http://forums.unigui.com/index.php?/topic/10689-unitreemenu-with-labels/&do=findComment&comment=56849 Quote Link to comment Share on other sites More sharing options...
55143681 Posted January 8, 2019 Author Share Posted January 8, 2019 46 minutes ago, Sherzod said: Can you check again? http://forums.unigui.com/index.php?/topic/10689-unitreemenu-with-labels/&do=findComment&comment=56849 Works well,thank you. function treeMenu.afterCreate(sender) { sender.el.setStyle('overflow-y', 'auto'); } Quote Link to comment Share on other sites More sharing options...
JOSE ALCANTARA Posted April 30, 2022 Share Posted April 30, 2022 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'); } Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 30, 2022 Share Posted April 30, 2022 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? Quote Link to comment Share on other sites More sharing options...
JOSE ALCANTARA Posted April 30, 2022 Share Posted April 30, 2022 V1.90.0.1555 Prefesional Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 30, 2022 Share Posted April 30, 2022 Please adjust your forum email address: Quote Link to comment Share on other sites More sharing options...
Kattes Posted July 2, 2023 Share Posted July 2, 2023 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; Quote Link to comment Share on other sites More sharing options...
aguz027 Posted February 4 Share Posted February 4 On 1/8/2019 at 3:46 PM, 55143681 said: function treeMenu.afterCreate(sender) { sender.el.setStyle('overflow-y', 'auto'); } Not working nothing appears on the screen Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 5 Share Posted February 5 11 hours ago, aguz027 said: Not working nothing appears on the screen Hello, Can you please specify which edition and build of uniGUI are you using? 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.