Autor Beitrag
lexmy3
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 140

WIN 2000 Prof. + Office 2000
Delphi 5 Enterprise
BeitragVerfasst: Di 21.02.06 16:30 
Hallo, wie oben erwähnt möchte ich alle Einträge in der CheckListBox per einen Check mit der CheckBox1 abchecken.

Habt ihr es gecheckt?? :D

Kann mir einer helfen diesen Befehl zu vervollständigen?
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure TFormGeneral.CheckBox1Click(Sender: TObject);
begin
if CheckBox1.Checked then
begin CheckListBoxGeneral.Items....
end;
end;


mfg

Lexmy3
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Di 21.02.06 16:33 
Ich habe noch nie mit einer CheckListBox gearbeitet, aber nimm doch einfach eine for-Schleife und checke jede einzelne Box.

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
lexmy3 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 140

WIN 2000 Prof. + Office 2000
Delphi 5 Enterprise
BeitragVerfasst: Di 21.02.06 16:38 
Oder vieleicht diesen ???

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
procedure TFormGeneral.CheckBox1Click(Sender: TObject);
var
  lCounter: integer;
begin
if CheckBox1.Checked then
begin
    for lCounter := CheckListBoxGeneral.Items.Count-1 downto 0
     do begin
        CheckListBoxGeneral.Items.?????(lCounter);
         end;
           end;

Konnte selbst nix auf die Schnelle finden!!!
mfg

Lexmy
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Di 21.02.06 17:01 
Hallo,

ersetz mal die Zeile:
ausblenden Delphi-Quelltext
1:
2:
//CheckListBoxGeneral.Items.?????(lCounter);
CheckListBoxGeneral.Checked[lCounter] := False;//True je nach dem

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )