Thema: Delphi TCategoryButtons Problem

Einzelnen Beitrag anzeigen

Benutzerbild von Rastaman
Rastaman

Registriert seit: 6. Jan 2005
Ort: Lübbecke
575 Beiträge
 
Turbo C++
 
#3

Re: TCategoryButtons Problem

  Alt 30. Mai 2005, 16:10
Naja und der Witz is auch ausgelutscht
Auf jeden Fall hatte ich danach nich gespeichert aber so ähnlich hats ausgesehn.

Delphi-Quellcode:
procedure TfrmMain.ctbMainCategoryCollapase(Sender: TObject;
  const Category: TButtonCategory);
begin

  If Category.Caption = 'kategorie 1then
  begin

    ctbMain.Categories[0].Collapsed := False;
    ctbMain.Categories[1].Collapsed := True;
    ctbMain.Categories[2].Collapsed := True;
    ctbMain.Categories[3].Collapsed := True;

  end;

  If Category.Caption = 'kategorie 2then
  begin

    ctbMain.Categories[0].Collapsed := True;
    ctbMain.Categories[1].Collapsed := False;
    ctbMain.Categories[2].Collapsed := True;
    ctbMain.Categories[3].Collapsed := True;

  end;

  If Category.Caption = 'kategorie 3then
  begin

    ctbMain.Categories[0].Collapsed := True;
    ctbMain.Categories[1].Collapsed := True;
    ctbMain.Categories[2].Collapsed := False;
    ctbMain.Categories[3].Collapsed := True;

  end;

  If Category.Caption = 'kategorie 4then
  begin

    ctbMain.Categories[0].Collapsed := True;
    ctbMain.Categories[1].Collapsed := True;
    ctbMain.Categories[2].Collapsed := True;
    ctbMain.Categories[3].Collapsed := False;

  end;

end;
Chuck Norris has counted to infinity ... twice!
  Mit Zitat antworten Zitat