eduardosuruagy Posted October 8, 2019 Share Posted October 8, 2019 When I select the dbgrid row it performs the first column click, see the video I show the problem. Can you avoid this? Another thing, I wanted to click on the line that it shows which line is selected, it only shows when I mark some dbgrid line. Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted October 8, 2019 Share Posted October 8, 2019 Hello Can you create a simple test case? I can't reproduce issue Link to comment Share on other sites More sharing options...
eduardosuruagy Posted October 8, 2019 Author Share Posted October 8, 2019 3 hours ago, Hayri ASLAN said: Olá Você pode criar um caso de teste simples? Não consigo reproduzir o problema test case UniGui - DBGridMemo.rar Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted October 8, 2019 Share Posted October 8, 2019 Hello Please change H_OnCellClick in UniBasicGrid.pas to below code for now. We will add this to new build. procedure TUniBasicGrid.H_OnCellClick(This: TJSObject; EventName: string; Params: TUniStrings); begin if Assigned(OnClick) then begin if CheckBoxSelect and (Params['c'].AsInteger=0) then Exit; FSelectionInvalid := True; try if Clickable(FCurrCol, FCurrRow) then OnClick(Self); finally FSelectionInvalid := False; end; end; end; Link to comment Share on other sites More sharing options...
eduardosuruagy Posted October 8, 2019 Author Share Posted October 8, 2019 17 minutes ago, Hayri ASLAN said: Hello Please change H_OnCellClick in UniBasicGrid.pas to below code for now. We will add this to new build. procedure TUniBasicGrid.H_OnCellClick(This: TJSObject; EventName: string; Params: TUniStrings); begin if Assigned(OnClick) then begin if CheckBoxSelect and (Params['c'].AsInteger=0) then Exit; FSelectionInvalid := True; try if Clickable(FCurrCol, FCurrRow) then OnClick(Self); finally FSelectionInvalid := False; end; end; end; Worked, thank you!! As for the line selection, how can the line be selected without me having to register? Note that dbgrid only selects the line if the record is marked, I would like to know which line the cursor is positioned on without having to mark. Link to comment Share on other sites More sharing options...
eduardosuruagy Posted March 19, 2020 Author Share Posted March 19, 2020 On 10/8/2019 at 2:08 PM, Hayri ASLAN said: Hello Please change H_OnCellClick in UniBasicGrid.pas to below code for now. We will add this to new build. procedure TUniBasicGrid.H_OnCellClick(This: TJSObject; EventName: string; Params: TUniStrings); begin if Assigned(OnClick) then begin if CheckBoxSelect and (Params['c'].AsInteger=0) then Exit; FSelectionInvalid := True; try if Clickable(FCurrCol, FCurrRow) then OnClick(Self); finally FSelectionInvalid := False; end; end; end; Hasn't that been adjusted yet? I have to adjust it in all versions that I update from Unigui. How can I leave it fixed? Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 19, 2020 Administrators Share Posted March 19, 2020 I added this to the code base. Thanks Link to comment Share on other sites More sharing options...
eduardosuruagy Posted March 19, 2020 Author Share Posted March 19, 2020 1 minute ago, Farshad Mohajeri said: Eu adicionei isso à base de código. obrigado Thank you and congratulations for the excellent work 1 Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 19, 2020 Administrators Share Posted March 19, 2020 Just now, eduardosuruagy said: Thank you and congratulations for the excellent work Thank you! Link to comment Share on other sites More sharing options...
eduardosuruagy Posted October 27, 2020 Author Share Posted October 27, 2020 On 10/8/2019 at 2:08 PM, Hayri ASLAN said: Hello Please change H_OnCellClick in UniBasicGrid.pas to below code for now. We will add this to new build. procedure TUniBasicGrid.H_OnCellClick(This: TJSObject; EventName: string; Params: TUniStrings); begin if Assigned(OnClick) then begin if CheckBoxSelect and (Params['c'].AsInteger=0) then Exit; FSelectionInvalid := True; try if Clickable(FCurrCol, FCurrRow) then OnClick(Self); finally FSelectionInvalid := False; end; end; end; I have a similar problem, this time when I click on the grid's plus button to expand the line using dbgrid_RowExpand Gravar_2020_10_26_22_22_38_71.mp4 Link to comment Share on other sites More sharing options...
eduardosuruagy Posted October 28, 2020 Author Share Posted October 28, 2020 Good morning, could someone help me please? Link to comment Share on other sites More sharing options...
Sherzod Posted October 28, 2020 Share Posted October 28, 2020 3 hours ago, eduardosuruagy said: could someone help me please? Hello, I will try to reproduce your issue. If you have a test case, please attach. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted October 28, 2020 Administrators Share Posted October 28, 2020 Do you handle OnClick event of the grid? Why don't you use Action Columns with OnColumnActionClick event? It will be more accurate and won't cause such issues. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted October 28, 2020 Administrators Share Posted October 28, 2020 2 hours ago, Farshad Mohajeri said: Do you handle OnClick event of the grid? Why don't you use Action Columns with OnColumnActionClick event? It will be more accurate and won't cause such issues. A fix implemented. Link to comment Share on other sites More sharing options...
eduardosuruagy Posted October 29, 2020 Author Share Posted October 29, 2020 16 hours ago, Farshad Mohajeri said: Uma correção implementada. 18 hours ago, Farshad Mohajeri said: Você lida com o evento OnClick da grade? Por que você não usa colunas de ação com evento OnColumnActionClick? Será mais preciso e não causará tais problemas. I'm using the grid's onClick, how can I use the OnColumnActionClick? Link to comment Share on other sites More sharing options...
Sherzod Posted October 29, 2020 Share Posted October 29, 2020 15 minutes ago, eduardosuruagy said: I'm using the grid's onClick, how can I use the OnColumnActionClick? Hello, Please see this demo: \FMSoft\Framework\uniGUI\Demos\Desktop\Grid - ActionColumn Grid -> OnColumnActionClick event Link to comment Share on other sites More sharing options...
eduardosuruagy Posted October 29, 2020 Author Share Posted October 29, 2020 6 minutes ago, Sherzod said: Hello, Please see this demo: \FMSoft\Framework\uniGUI\Demos\Desktop\Grid - ActionColumn Grid -> OnColumnActionClick event Thank you! Link to comment Share on other sites More sharing options...
eduardosuruagy Posted October 29, 2020 Author Share Posted October 29, 2020 9 hours ago, Sherzod said: Olá, Por favor, veja esta demonstração: Grid -> evento OnColumnActionClick Is it possible to make any button invisible? According to the user profile Link to comment Share on other sites More sharing options...
Sherzod Posted October 30, 2020 Share Posted October 30, 2020 This post may help you: Link to comment Share on other sites More sharing options...
eduardosuruagy Posted October 30, 2020 Author Share Posted October 30, 2020 12 hours ago, Sherzod said: Esta postagem pode ajudá-lo: Thank you, I'll put my doubt there ok !! Link to comment Share on other sites More sharing options...
eduardosuruagy Posted December 3, 2020 Author Share Posted December 3, 2020 On 28/10/2020 at 16:34, Farshad Mohajeri said: Uma correção implementada. Will this problem be solved in the first version? Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted December 3, 2020 Administrators Share Posted December 3, 2020 1 hour ago, eduardosuruagy said: Will this problem be solved in the first version? Yes Link to comment Share on other sites More sharing options...
eduardosuruagy Posted December 3, 2020 Author Share Posted December 3, 2020 11 minutes ago, Farshad Mohajeri said: sim Thank you!! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now