Hi everyone, I'm "new" to Lazarus... i used to program pascal at a time it wasn't OO... And played with Delphi quite a long time ago, so i Consider myself as a new Noob
I'm on windows 10, and so far, don't think my app will be used elsewhere. It's quite simple, i create text files in wich are stored Scores et Team fouls... Nothing new, but it fits my needs. With the buttons, i can go up and down the scores, so no trouble. I'd like to use Hotkeys (and if possible personnalized hotkeys).
I've checked at the TactionList and it dosen't fit because all the hotkeys are Shift+xxx or ctrl+xxx (but anyway, the real problem is not there, the real thing is that i don't know how to "click" the button with the actionlist)
I've also tried the shortcut property of my form. With this (it's quite dirty...) i've written someting like that :
if (msg.CharCode=65) then begin
Add 1 to score, update label.caption and write the file
end;
But the problem is that the score is not score +1 but score +2... as if the button was clicked twice....
And I don't know how to use the button.click property to make it work as if it was clicked by the mouse...
I've searched the forum, but didn't see something clear/simple enough
My buttons are called B_Score_Local_Plus for example... and don't know if i can, or how i can use the B_Score_Local.Plus.click
Any help is welcome, and sorry if i missed a topic in this forum
Regards
S.