roa36 Posted December 13, 2019 Share Posted December 13, 2019 Подскажите, можно ли определить координаты ячейки в UniDBGrid. Мне необходимо при нажатии клавиши мыши на ячейку вывести некоторую форму в левом верхнем углу выделенной ячейки. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 13, 2019 Share Posted December 13, 2019 Какую версию и издание UniGUI используете? Quote Link to comment Share on other sites More sharing options...
roa36 Posted December 13, 2019 Author Share Posted December 13, 2019 uniGui 1.90.0.1505 Professional Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 13, 2019 Share Posted December 13, 2019 http://unigui.com/explore/matrix/#featurem Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 13, 2019 Share Posted December 13, 2019 1 hour ago, roa36 said: uniGui 1.90.0.1505 Professional Пожалуйста, настройте Ваш email форума: Quote Link to comment Share on other sites More sharing options...
roa36 Posted December 15, 2019 Author Share Posted December 15, 2019 Можно просто ответить на вопрос! Если нет ответа - лучше ничего не писать!!! Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 15, 2019 Share Posted December 15, 2019 3 hours ago, roa36 said: Можно просто ответить на вопрос! Если нет ответа - лучше ничего не писать!!! Простите, в чём проблема? Quote Link to comment Share on other sites More sharing options...
stas Posted December 16, 2019 Share Posted December 16, 2019 On 12/15/2019 at 1:27 PM, roa36 said: Можно просто ответить на вопрос! Если нет ответа - лучше ничего не писать!!! Кричать не обязательно, тут такие правила. Если товарищ не использует триальную версию, то спрашивается, откуда он взял не триальную. Далее property CurrRow; property CurrCol; 1 Quote Link to comment Share on other sites More sharing options...
roa36 Posted December 17, 2019 Author Share Posted December 17, 2019 Stas, спасибо за попытку, но как мне с помощью ( property CurrRow; property CurrCol) показать форму с координатами Top, Left левого верхнего угла выделенной ячейки. Quote Link to comment Share on other sites More sharing options...
roa36 Posted December 17, 2019 Author Share Posted December 17, 2019 Кое как нашел... в UniDBGrid > ExtEvents > Ext.grid.Panel событие (функция) cellmousedown function cellmousedown(sender, td, cellIndex, record, tr, rowIndex, e, eOpts) { var c = Ext.get(td).getXY(); ajaxRequest(this, 'CellXY', ['x='+c[0], 'y='+c[1]]); } Далее получаю значение левого верхнего угла ячейки, по которой был щелчок мыши procedure TMainForm.UniDBGrid1AjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); begin if EventName = 'CellXY' then begin CellLeft:= Params['x'].AsInteger; CellTop := Params['y'].AsInteger end; end; Quote Link to comment Share on other sites More sharing options...
stas Posted December 17, 2019 Share Posted December 17, 2019 Что-то мудрите, думаю хинтами проще. Quote Link to comment Share on other sites More sharing options...
roa36 Posted December 18, 2019 Author Share Posted December 18, 2019 17 hours ago, stas said: Что-то мудрите, думаю хинтами проще. Задал вопрос, самостоятельно нашел ответ по форуму - проверил, работает - выложил решение. Может кому-то пригодится. Все остальное - от лукавого. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 18, 2019 Share Posted December 18, 2019 On 12/13/2019 at 7:00 PM, roa36 said: uniGui 1.90.0.1505 Professional Пожалуйста, настройте ваш email форума, или используете триальную версию!? 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.