Autor Beitrag
majolo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 334

Ubuntu 8.04, WinXP Prof.
D1, D6Pers, D7 Prof., D8 Prof., D2005 Pers
BeitragVerfasst: Sa 29.03.03 13:05 
Hallo,

habe heute mal die Kompo TCheckListBox ausprobiert. Nun stehe ich vor einem Problem. Woher weiß ich welcher Item gehackt ist. Die Delphihilfe hat mich irgendwie nicht weiter gebracht.
Danke

Gruss
majolo
LCS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1305
Erhaltene Danke: 1

WIN 7, WIN 8
Delphi XE5, Delphi XE, Delphi 2007
BeitragVerfasst: Sa 29.03.03 14:53 
Hi
Es gibt die Eigenschaft State[Index] die auskunft darüber gibt, ob der Eintrag Index gwählt ist oder nicht.

Gruss Lothar

_________________
Der BH ist für die Brust, der Plan ist für'n Ar...
majolo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 334

Ubuntu 8.04, WinXP Prof.
D1, D6Pers, D7 Prof., D8 Prof., D2005 Pers
BeitragVerfasst: Sa 29.03.03 18:53 
also mit State komme ich da nicht dran. :cry:
Raphael O.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1596


VS 2013
BeitragVerfasst: Sa 29.03.03 23:22 
versuchs mal damit ;)
ausblenden Quelltext
1:
checklistbox1.Checked[Zeilennummer]					
majolo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 334

Ubuntu 8.04, WinXP Prof.
D1, D6Pers, D7 Prof., D8 Prof., D2005 Pers
BeitragVerfasst: So 30.03.03 11:51 
So hatte ich es als erstes auch, hatte aber nicht funktioniert. Wahrscheinlich hat der Compiler wieder gesponnen, macht er auch, wenn ich Code per Copy and Paste einfüge.
na ja, brauch die Compo jetzt doch nicht.
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Mo 31.03.03 09:23 
majolo hat folgendes geschrieben:
So hatte ich es als erstes auch, hatte aber nicht funktioniert.

Also bei mir funktioniert es.

majolo hat folgendes geschrieben:
Wahrscheinlich hat der Compiler wieder gesponnen [...]

Das glaube ich kaum. Wahrscheinlich hast Du einen Fehler im Code gehabt.

majolo hat folgendes geschrieben:
[...] macht er auch, wenn ich Code per Copy and Paste einfüge.

Der Code von Fiji-Fighter war ja auch nur als Beispiel. Und "Copy and Paste" wird in den meisten Fällen auch nicht funktionieren. Zeig doch mal den Code der nicht funktioniert. Dann können wir Dir besser helfen.

Gruß
Tino
majolo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 334

Ubuntu 8.04, WinXP Prof.
D1, D6Pers, D7 Prof., D8 Prof., D2005 Pers
BeitragVerfasst: Mo 31.03.03 18:30 
Der Code klappt. Einmal neugestartet und es geht. Da war kein Fehler im Code. Manchmal spinnt Delphi.Ich weiß nicht warum. Habe aber keine Lust neuzuinstallieren.Momentan zu viel Arbeit.

Gruss
majolo
madigeMade
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 24



BeitragVerfasst: Mo 31.03.03 18:46 
Hi

mit State kommst du so ran:
ausblenden Quelltext
1:
if checklistbox1.State[0]=cbChecked then showmessage('Ja');					


Gruß de Made

_________________
Ich kam, sah und schrieb ein Prog.