Forum > LCL

[SOLVED] TBitBtn On Click not triggered

<< < (2/7) > >>

incendio:

--- Quote from: derek.john.evans on June 20, 2022, 05:03:47 am ---How do you know the OnClick is not triggered? Try adding a fresh TBitBtn with a new OnClick event and confirm using ShowMessage('Clicked');

Have you tried a standard TButton? Again, try a fresh instance.

It looks looks like focus shifting is cancelling the append state for the TDataSet. Which is standard.

Without an example project, I can't offer much more, but, often if strange things are happening, I start commenting out code to bring some visible sanity back to a project.

--- End quote ---

Added a fresh TBitbtn

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---procedure TFrm.BitBtn1Click(Sender: TObject);begin  ShowMessage('Hi');end; 
Message not showed, happen just like post # 1.

TButton also didn't work, but TEdit and TLabel worked fine.

wp:
Please prepare a small, simplified project which shows the issue, and upload it here. Without it we can only guess wildly.

incendio:

--- Quote from: wp on June 20, 2022, 09:38:20 am ---Please prepare a small, simplified project which shows the issue, and upload it here. Without it we can only guess wildly.

--- End quote ---
I tried to create simply project, but have a problem, posted on here :
https://forum.lazarus.freepascal.org/index.php/topic,59690.0.html

Handoko:
I tested the project your posted on that thread. No problem found. My guess is you're having problem with your Lazarus installation or your Windows or your hardware.

jipété:

--- Quote from: incendio on June 21, 2022, 06:42:11 am ---
--- Quote from: wp on June 20, 2022, 09:38:20 am ---Please prepare a small, simplified project which shows the issue, and upload it here. Without it we can only guess wildly.

--- End quote ---
I tried to create simply project, but have a problem, posted on here :
https://forum.lazarus.freepascal.org/index.php/topic,59690.0.html

--- End quote ---
The project you're talking about doesn't use TBitBtn... 
We need a small, simplified project which shows the issue

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version