Autor Beitrag
derDoc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 623

Win Vista Prof
D2007 Prof
BeitragVerfasst: So 03.10.04 11:56 
Ich habe folgendes Problem:

In einem meiner Programme benutze ich eine ListView. Nun will ich davor CheckBoxen setzen, damit der Benutzer auswählen kann, mit welchen Datensätzen er arbeiten will.
Bis hierhin ist es noch recht einfach, aber Folgendes passiert:
Wenn ich mit OnMouseUp versuche das Klicken auf eine der CheckBoxen zu verarbeiten, muss ich feststellen, dass zuerst ein OnMouseUp trotz gedrückter Maustaste zustandekommt.

Ich verstand OnMouseUp bisher immer so, dass bei gedrückter Maustaste OnMouseDown ausgelöst wird, und wenn ich sie dann loslasse erst OnMouseUp.

Vielleicht hat ja jemand schonmal dieses Problem erlebt, bzw. eine Idee, wie ich es umgehen oder lösen kann.

_________________
MfG derDoc
There are only 10 types of people: those who understand binary and those who don't.
simplex3
Hält's aus hier
Beiträge: 14

Win 98, Win 2000, Linux
D7.1 Prof, D8 Prof
BeitragVerfasst: Do 07.10.04 21:08 
Bin mir nicht ganz sicher, wo das Problem ist.
Warum nimmst du nicht einfach OnClick ?

_________________
Ceterum censeo, microsoftem esse delendam.
derDoc Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 623

Win Vista Prof
D2007 Prof
BeitragVerfasst: Fr 08.10.04 05:54 
Nun, ich möchte bei OnMouseDown, bzw. OnMouseUp prüfen, ob der Benutzer auch wirklich auf das Kästchen gedrückt hat. Das ist prinzipiell kein Problem.
Jetzt musste ich aber feststellen, dass beim Drücken (gedrückte Maustaste links) auf das Kästchen merkwürdigerweise erst OnMouseUp ausgelöst wird.

Das Problem ist jetzt, dass ich nirgendwo eine Erklärung dafür gefunden habe, in welcher beschrieben wird, warum bei gedrückter Maustaste OnMouseUp ausgelöst wird.

_________________
MfG derDoc
There are only 10 types of people: those who understand binary and those who don't.