antarey Posted May 8, 2020 Share Posted May 8, 2020 I have TUniTreeMenu & TMenuItems UniTreeMenu->SourceMenu->MenuItems MenuItems have 5 UniMenuItem. UniMenuItem1..UniMenuItem4 mast is located at the top, UniMenuItem5 must is located at the bottom . How to implement it? menu is located at the bottom Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 12, 2020 Share Posted May 12, 2020 On 5/8/2020 at 1:07 PM, antarey said: How to implement it? Hello, Can you please explain in more detail? And please specify which edition and build of UniGUI are you using? Quote Link to comment Share on other sites More sharing options...
antarey Posted May 12, 2020 Author Share Posted May 12, 2020 4 hours ago, Sherzod said: And please specify which edition and build of UniGUI are you using? uniGUI Complete Trial Edition 1.90.0.1530 Quote Link to comment Share on other sites More sharing options...
x11 Posted May 18, 2020 Share Posted May 18, 2020 up I have the same question Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 18, 2020 Share Posted May 18, 2020 2 hours ago, x11 said: I have the same question Do you use a small number of nodes? Quote Link to comment Share on other sites More sharing options...
antarey Posted May 18, 2020 Author Share Posted May 18, 2020 3 minutes ago, Sherzod said: Do you use a small number of nodes? Yes Quote Link to comment Share on other sites More sharing options...
x11 Posted May 18, 2020 Share Posted May 18, 2020 more then 30 above 10 - parent other - subordinates +scroll P.S. I would like the items attached to the bottom to always be at the bottom and not scream (хотелось бы, чтобы прикрепленные к нижней части пункты всегда были снизу и не прикреплялись) Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 18, 2020 Share Posted May 18, 2020 I think you should use UnimMenu, and still need to analyze your request. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 18, 2020 Share Posted May 18, 2020 54 minutes ago, x11 said: (хотелось бы, чтобы прикрепленные к нижней части пункты всегда были снизу и не прокречиались) Еще как вариант Вы можете использовать два компонента... 1 Quote Link to comment Share on other sites More sharing options...
x11 Posted May 18, 2020 Share Posted May 18, 2020 И как? Нужно использовать TUnimContainerPanel, куда вставить 2 меню TUnimTreeMenu? А как заставить TUnimContainerPanel плавно появляться слева и потом прятаться? Quote Link to comment Share on other sites More sharing options...
x11 Posted May 18, 2020 Share Posted May 18, 2020 Ну почти получается. Не могу понять, откуда место слева, я же никаких настроек не указывал. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 18, 2020 Share Posted May 18, 2020 6 minutes ago, x11 said: Не могу понять, откуда место слева, я же никаких настроек не указывал. Для иконок. 1 Quote Link to comment Share on other sites More sharing options...
antarey Posted May 18, 2020 Author Share Posted May 18, 2020 X11 скинь пример Quote Link to comment Share on other sites More sharing options...
x11 Posted May 18, 2020 Share Posted May 18, 2020 Что именно, пример чего именно? И для чего именно пример? Quote Link to comment Share on other sites More sharing options...
antarey Posted May 18, 2020 Author Share Posted May 18, 2020 13 minutes ago, x11 said: Что именно, пример чего именно? И для чего именно пример? Реализации задачи. Меняеш размер панели при сворачивании меню? Quote Link to comment Share on other sites More sharing options...
x11 Posted May 18, 2020 Share Posted May 18, 2020 да какая там реализация? одна строка pnlMenu.Visible := not pnlMenu.Visible; Quote Link to comment Share on other sites More sharing options...
antarey Posted May 18, 2020 Author Share Posted May 18, 2020 Если я правильно понял - в pnlMenu размещено 2 TUnimTreeMenu. Тогда по идее такой код полностью скроет меню а не свернёт его. Quote Link to comment Share on other sites More sharing options...
x11 Posted May 18, 2020 Share Posted May 18, 2020 Ну хотя бы скрыть, пусть и не плавно. Может со временем кто-то подскажет, как скрыть плавно. Quote Link to comment Share on other sites More sharing options...
antarey Posted May 18, 2020 Author Share Posted May 18, 2020 Сейчас нет под руками студии. Надо посмотреть есть ли у TUnimTreeMenu событие типа OnColapsed, если нет - сворачивать первое меню, сворачивать второе, а потом задавать ширину панели, будет немного криво. Сомневаюсь что обе менюхи свернуться синхронно Quote Link to comment Share on other sites More sharing options...
x11 Posted May 18, 2020 Share Posted May 18, 2020 нету Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 18, 2020 Share Posted May 18, 2020 25 minutes ago, x11 said: Ну хотя бы скрыть Вы имеете в виду Micro свойство? Quote Link to comment Share on other sites More sharing options...
x11 Posted May 18, 2020 Share Posted May 18, 2020 Нет, просто красиво плавно скрыть полностью. Хотя и Micro тоже не помешало бы, хотя на мобильных устройствах Микро - лишнее, и так места мало на экране. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 18, 2020 Share Posted May 18, 2020 ОК, проанализируем. Quote Link to comment Share on other sites More sharing options...
antarey Posted May 19, 2020 Author Share Posted May 19, 2020 6 hours ago, x11 said: Нет, просто красиво плавно скрыть полностью. Надо выбор, или полностью или в Micro. Ведь весь прикол TreeMenu, что оно сворачивается в панель с иконками, для мобильных устройств можно и полностью скрывать, но тогда надо отдельная кнопка меню. Если просто скрывать, то можно и так как х11 предложил, только надо придумать как прикрутить анимацию, скорее всего через цсс Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 19, 2020 Share Posted May 19, 2020 7 hours ago, x11 said: Хотя и Micro тоже не помешало бы Попробуйте, UnimTreeMenu.MicroWidth = 1 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.