View Single Post
  #288  
Old 05-08-2023, 00:41
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 688
Thanks: 481
Thanked 2,547 Times in 561 Posts
BLACKFIRE69 is on a distinguished road
Quote:
Originally Posted by audiofeel View Post
#BLACKFIRE69
You have added a check for "OnClick" in "FToggleCheckBox". I guess it doesn't work properly. I want to create a "FToggleCheckBox" as a "FRadioButton" (so that each time I don't pick up a style file, but just paint "FToggleCheckBox"). I can not. In my opinion, the check for "OnClick" does not work.

sorry, my mistake.

furthermore, comment out the following lines.

Code:
procedure CommonOnClick(Sender: TObject);
begin
  case Sender of
    TObject(Chck[1].GetObject):
    if Chck[1].IsChecked then
    begin
      //Chck[1].SetChecked(False);
      Chck[2].SetChecked(True);
    end else
    begin
      //Chck[1].SetChecked(True);
      Chck[2].SetChecked(False);
    end;

    TObject(Chck[2].GetObject):
    if Chck[2].IsChecked then
    begin
      //Chck[2].SetChecked(False);
      Chck[1].SetChecked(True);
    end else
    begin
      //Chck[2].SetChecked(True);
      Chck[1].SetChecked(False);
    end;
  end;
end;

.

Last edited by BLACKFIRE69; 14-07-2024 at 02:01.
Reply With Quote
The Following 5 Users Say Thank You to BLACKFIRE69 For This Useful Post:
audiofeel (05-08-2023), crachlow (07-08-2023), ffmla (08-08-2023), hitman797 (05-08-2023), Tihiy_Don (06-08-2023)