Home > Back-end >  Why don't I use Button component occasionally Onclick time response, because the Button click t
Why don't I use Button component occasionally Onclick time response, because the Button click t

Time:09-17

Why don't I use Button component occasionally Onclick time response, because the Button click the borders will change color, so make sure is clicked, but occasionally into don't go to the Onclick event

CodePudding user response:

Cut a figure about ~

CodePudding user response:

reference 1st floor u010165006 response:
cut a figure to see ~


Void __fastcall TGroupFrame: : Button1Click (TObject * Sender)
{
//button;
WORD ADDr=Frame_Parameter - & gt; Addr.
A.Q ueneData [2]=((ADDr> 8) & amp; 0 XFF);//address
A.Q ueneData [3]=(ADDr & amp; 0 XFF);
WORD Connect=Frame_Parameter - & gt; VDef;
A.Q ueneData [4]=((Connect> 8) & amp; 0 XFF);
A.Q ueneData [5]=(Connect & amp; 0 XFF);
SendCirQuene1 - & gt; The EnQueue (a);
For the - & gt; The Font - & gt; Color=clLime;

}

CodePudding user response:

Button1Click function start adding a most:
Static int I=0;
Caption=IntToStr (+ + I);
Try to see if the function is executed,
  • Related