x11 Posted January 6, 2021 Share Posted January 6, 2021 There are pop-up buttons in gmail when you move the mouse cursor to the edge of the table. Is it possible to do something similar in the TuniDBrid column? 1 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 7, 2021 Share Posted January 7, 2021 11 hours ago, x11 said: There are pop-up buttons in gmail when you move the mouse cursor to the edge of the table. Is it possible to do something similar in the TuniDBrid column? Hello, Need to check. What selection model are you using (CellModel, RowModel)? Quote Link to comment Share on other sites More sharing options...
irigsoft Posted January 7, 2021 Share Posted January 7, 2021 Hi, I did my own procedure for this. When you click on the row of the table, the system displays a panel with action buttons for the row. My problem with this is only how to get mouse coordinates to show panel under cursor, but i ignore that and i show panel of top begining of grid or row Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 7, 2021 Share Posted January 7, 2021 Also possible to manipulate the actioncolumn I guess. Quote Link to comment Share on other sites More sharing options...
x11 Posted January 7, 2021 Author Share Posted January 7, 2021 1 hour ago, Sherzod said: What selection model are you using (CellModel, RowModel)? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 7, 2021 Share Posted January 7, 2021 51 minutes ago, x11 said: An approximate view of the grid using ActionColumn (buttons appear on hover): Quote Link to comment Share on other sites More sharing options...
irigsoft Posted January 7, 2021 Share Posted January 7, 2021 1 hour ago, Sherzod said: Also possible to manipulate the actioncolumn I guess. Yes, it depends on the needs of the user. I also made a panel that looks like the Xtamplates Grid and now I have options to design my grid design. So, If user need: 1. Make actioncolumns 2. Make flow panel with action buttons 3. Listgrid with action buttons and html data from row of dbgrid I am a happy user of UNIGUI ! 1 Quote Link to comment Share on other sites More sharing options...
x11 Posted January 7, 2021 Author Share Posted January 7, 2021 В то-то и дело, что дополнительной колонки не должно быть, т.к. теряется весь смысл удобства. The fact of the matter is that there should not be an additional column, the whole sense of convenience is lost. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 7, 2021 Share Posted January 7, 2021 21 minutes ago, x11 said: The fact of the matter is that there should not be an additional column, the whole sense of convenience is lost. 21 minutes ago, x11 said: Let's say you are using actionColumn. If the buttons are displayed on the left side, is this acceptable for you? Quote Link to comment Share on other sites More sharing options...
x11 Posted January 7, 2021 Author Share Posted January 7, 2021 Just now, Sherzod said: is this acceptable for you Yes. The main idea is that buttons appear only when you hover the mouse cursor. (Основная идея - это появление кнопок только при наведении курсора мышки.) Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 7, 2021 Share Posted January 7, 2021 13 minutes ago, x11 said: Yes. The main idea is that buttons appear only when you hover the mouse cursor. OK. 1. Add ActionColumn, Width = 0 2. CustomCSS .customGrid .x-action-col-icon { display: none; } .customGrid .x-grid-item-over .x-action-col-icon { display: initial; } .customGrid .x-grid-cell-inner-action-col { left: 0; position: absolute; } 3. UniDBGrid -> LayoutConfig -> Cls = customGrid Quote Link to comment Share on other sites More sharing options...
x11 Posted January 7, 2021 Author Share Posted January 7, 2021 The buttons appear, but there is no reaction to clicking the mouse. (Кнопки появляются, но реакции на нажатие мышкой нет) Quote Link to comment Share on other sites More sharing options...
x11 Posted January 7, 2021 Author Share Posted January 7, 2021 no effect procedure TfrdRefUsersRights.dbgRefColumnActionClick(Column: TUniDBGridColumn; ButtonId: Integer); begin TUniGridActionColumn(Column).Buttons[ButtonId].Action.Execute; end; Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 7, 2021 Share Posted January 7, 2021 7 minutes ago, x11 said: The buttons appear, but there is no reaction to clicking the mouse. procedure TMainForm.UniDBGrid1ColumnActionClick(Column: TUniDBGridColumn; ButtonId: Integer); begin case ButtonId of 0 : ... end; ? Quote Link to comment Share on other sites More sharing options...
x11 Posted January 7, 2021 Author Share Posted January 7, 2021 when I press on Edit button then checkbox pressed and breakpoint not work (Когда я нажимаю на (первую) кнопку Редактировать, то нажимается не кнопка, а чекбокс под кнопкой, как будто кнопка просто нарисована, но ее нет и точка останова не работает). Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 7, 2021 Share Posted January 7, 2021 Just now, x11 said: when I press on Edit button then checkbox pressed and breakpoint not work Then try to set .customGrid .x-grid-cell-inner-action-col { left: 20px; // checkbox column width + xx position: absolute; } Quote Link to comment Share on other sites More sharing options...
x11 Posted January 7, 2021 Author Share Posted January 7, 2021 press on any button, but log is empty procedure TfrdRefUsersRights.dbgRefColumnActionClick(Column: TUniDBGridColumn; ButtonId: Integer); begin unisession.Log(ButtonId.ToString); TUniGridActionColumn(Column).Buttons[ButtonId].Action.Execute; end; Event OnColumnActionClick not work Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 7, 2021 Share Posted January 7, 2021 1 hour ago, irigsoft said: 2. Make flow panel with action buttons Hello, Can you share your solution? Quote Link to comment Share on other sites More sharing options...
x11 Posted January 7, 2021 Author Share Posted January 7, 2021 test case problem: in grid visible only one button actEdit (button 0 ) is not visible uniGUI_ActionColumn.zip Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 7, 2021 Share Posted January 7, 2021 11 minutes ago, x11 said: And another error - ERROR_1? Quote Link to comment Share on other sites More sharing options...
x11 Posted January 7, 2021 Author Share Posted January 7, 2021 1 minute ago, Sherzod said: And another error - ERROR_1? I don't know yet where this error comes from (я пока не знаю, откуда эта ошибка) Quote Link to comment Share on other sites More sharing options...
irigsoft Posted January 7, 2021 Share Posted January 7, 2021 On 1/7/2021 at 12:53 PM, Sherzod said: Hello, Can you share your solution? Yes. 1. Its serverside solution 2. I create procedure for loading sql for selected uniDBGrid, like this: 1. load sql file from serverlocated directory 2. in file I have settings for action panel , like what width of panel, how many columns must show , top/left possition of childrens frames with labels, Images, buttons and so on. 3. after on server load and read from file all data, start panel component creation, 1. Create master Frame with caption panel (and some master buttons) ScrollBox - parent of all child frames with component for user 2. from file with settings read how components must have every child panel, for every one read width, height, color, name and so on. 3. Show Master panel with all chield panels. Now I have control of ActionButtons position, Image and so on. Quote Link to comment Share on other sites More sharing options...
x11 Posted January 7, 2021 Author Share Posted January 7, 2021 21 minutes ago, Sherzod said: And another error - ERROR_1? dgCheckSelected OFF Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 7, 2021 Share Posted January 7, 2021 6 minutes ago, x11 said: dgCheckSelected OFF We will check this issue? Which build are you using? Quote Link to comment Share on other sites More sharing options...
x11 Posted January 7, 2021 Author Share Posted January 7, 2021 1.90.0.1543 and delphi sydney 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.