x11 Posted April 16, 2021 Author Share Posted April 16, 2021 я сейчас попытаюсь создать testcase 1 Quote Link to comment Share on other sites More sharing options...
x11 Posted April 16, 2021 Author Share Posted April 16, 2021 21 minutes ago, Sherzod said: Выводится? я добавил ShowMessage в событие TMainForm.pnlPhotosAjaxEvent и оно не срабатывает приложил testcase uniGUI_AddImages.zip Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 16, 2021 Share Posted April 16, 2021 10 minutes ago, x11 said: uniGUI_AddImages.zip 31.35 kB · 1 download Я проверю. Да, здесь другой случай. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 16, 2021 Share Posted April 16, 2021 8 hours ago, x11 said: и оно не срабатывает Попробуйте использовать следующий код: 1. pnlPhotos -> ClientEvents -> UniEvents -> function beforeInit(sender, config) { config.defaults = { listeners: { beforeexpand: function() { ajaxRequest(sender, "_expandorcollapse", ["uname="+sender.layout.getExpanded()[0].uname]); } } }; } 2. // pnlPhotos.ClientEvents.ExtEvents.Values['afterrender'] := // ... 1 Quote Link to comment Share on other sites More sharing options...
x11 Posted April 18, 2021 Author Share Posted April 18, 2021 On 4/16/2021 at 7:20 PM, Sherzod said: Попробуйте использовать следующий код: К сожалению, код работает неправильно. Отправляется имя панели, которая сворачивается. А хотелось бы получить имя панели активной, т.е. которая развернулась. Может кроме beforeexpand есть другие события? Обратите внимание на снимок, видно, что приходит имя свернутой панели Quote Link to comment Share on other sites More sharing options...
x11 Posted April 18, 2021 Author Share Posted April 18, 2021 В общем, я поставил expand вместо beforeexpand. Вроде то, что надо, судя по первым тестам. Посмотрим... Спасибо большое! 1 Quote Link to comment Share on other sites More sharing options...
x11 Posted April 19, 2021 Author Share Posted April 19, 2021 On 4/14/2021 at 2:24 PM, x11 said: а layout типа accordion можно заставить разворачиваться по горизонтали, а не по вертикали? Т.е. с лева на право. если можно, то как это реализовать в uniGUI? Я так подозреваю, что возможно https://docs.sencha.com/extjs/6.5.3/classic/Ext.layout.container.Accordion.html#cfg-vertical но как это реализовать средствами uniGUI? 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.