Dm_Ufa Posted December 30, 2020 Share Posted December 30, 2020 Почему при загрузке свойств TUniDBTreeGrid в UniPropertyGrid не видно свойство Align? И как можно исправит? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 30, 2020 Share Posted December 30, 2020 Здравствуйте, Пожалуйста, уточните версию и издание UniGUI, которую Вы используете. 7 hours ago, Dm_Ufa said: Почему при загрузке свойств TUniDBTreeGrid в UniPropertyGrid не видно свойство Align? И как можно исправит? Простите, уточните вопрос. Quote Link to comment Share on other sites More sharing options...
Dm_Ufa Posted December 30, 2020 Author Share Posted December 30, 2020 даже в демо на сайте свойство Align не видно в PropertyGrid Quote Link to comment Share on other sites More sharing options...
x11 Posted December 30, 2020 Share Posted December 30, 2020 1 hour ago, Sherzod said: Простите, уточните вопрос. Если я правильно понял, то UniPropertyGrid не отображает свойство Align. Quote Link to comment Share on other sites More sharing options...
Dm_Ufa Posted December 30, 2020 Author Share Posted December 30, 2020 31 minutes ago, x11 said: Если я правильно понял, то UniPropertyGrid не отображает свойство Align. вот мне и интересно, почему. Я вроде разобрался как добавить, теперь проблема как добавить два редактора свойств. Мне при выборе, например, компонента uniDBEdit1, в PropertyGrid надо добавить свойства Align и DataSource. Делаю так: UniPropertyGrid1.AddProperty(['DataSource', TDataSource(GetObjectProp(c, 'DataSource')).Name]); UniPropertyGrid1.AddProperty(['Align', GetEnumName(TypeInfo(TAlign), Ord(TWinControl(c).Align))]); add := #1'.sourceConfig = {DataSource: {editor: new Ext.grid.CellEditor({field: new Ext.form.field.ComboBox({editable: false, store:["None", "DS1", "DS2"]})})}};';' + #13 + #1'.sourceConfig = {Align: {editor: new Ext.grid.CellEditor({field: new Ext.form.field.ComboBox({editable: false, store:["alNone", "alTop", "alBottom", "alLeft", "alRight", "alClient", "alCustom"]})})}};'; UniPropertyGrid1.JSInterface.JSCode(add); TExPGrid(UniPropertyGrid1).PopulateGrid; При этом нормально работает только один редактор (Align), в свойстве DataSource просто имя TDataSource, т.е. нет списка. 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.