Autor Beitrag
ssb-blume
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 375
Erhaltene Danke: 7

XP, W7, W8
Deutschland
BeitragVerfasst: Mi 11.05.11 11:10 
Hallo,
habe keine Ahnung, warum in einer CheckListBox bei gesetztem MulitSelect := false trotzdem in der Anwendung mehrere Einträge markiert werden können?
Was kann da falsch bzw. was muss ich machen? (Delphi 6)

_________________
Brain: an apparatus with which we think we think.
Martok
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 3661
Erhaltene Danke: 604

Win 8.1, Win 10 x64
Pascal: Lazarus Snapshot, Delphi 7,2007; PHP, JS: WebStorm
BeitragVerfasst: Mi 11.05.11 11:26 
MultiSelect meint tatsächlich nur die Selection, nicht die Checks.

Das müsstest du dann mit eigenem Code selber machen... Irgendwas in der Gegend von OnCheckClick.

_________________
"The phoenix's price isn't inevitable. It's not part of some deep balance built into the universe. It's just the parts of the game where you haven't figured out yet how to cheat."
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mi 11.05.11 11:36 
Wenn nur einer gecheckt sein soll, warum dann nicht lieber eine Radiogroup, eine einfach Listbox oder Dropdownliste, etc, verwenden?
ssb-blume Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 375
Erhaltene Danke: 7

XP, W7, W8
Deutschland
BeitragVerfasst: Mi 11.05.11 12:38 
Habe eine Listbox genommen, geht auch.

Zitat:
Wenn nur einer gecheckt sein soll, warum dann nicht lieber eine Radiogroup, eine einfach Listbox oder Dropdownliste, etc, verwenden?


weil es sehr viele werden könnten? Anzahl beim Entwurf unbekannt

Sonst vielen Dank.

_________________
Brain: an apparatus with which we think we think.
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 11.05.11 12:50 
Eine Listbox mit Checkboxen impliziert nun mal, dass man mehrere Einträge auswählen kann. Jedes andere Verhalten würde den Benutzer nur verwirren. Deswegen ist hier eine Listbox mit Mehrfachauswahl die beste Lösung.