Typograph

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Toggle button #47757
    Typograph
    Participant

      procedure TEq.EqOnOffbutClick(Sender: TObject);

      Const

      Cap : array[0..1] Of String =('Off',On');

      begin

      TsSpeedButton(Sender).Down := Not TsSpeedButton(Sender).Down

      TsSpeedButton(Sender).Caption := Cap[TsSpeedButton(Sender).Down]

      end;

      Thats it….

      in reply to: Toggle button #47756
      Typograph
      Participant

        1. Put a SpeedButton on the form

        2. Set Property GroupIndex to a value higher than 0

        3. Set allowUp to TRUE

        In Code

        TsSpeedButton(Sander).Down := Not TsSpeedButton(Sander).Down

      Viewing 2 posts - 1 through 2 (of 2 total)