| |
|
|
Jörg Sellmeyer | Hello Frank, In Your example Alle_Maustasten_abfangen.prf using You SetTimer 10 around the Listviewvariablen To fill. is the The only Possibility The Mausklicks on The Spaltenbuttons sure To nab? without goes it namely not I Have yourself too plenty rumprobiert but usually becomes the second same Click on a Column Button in the equal Control not any more registered. If in between into List view clicked becomes GEHTS again. I hope, I could me to some extent verständlich make alas Yes - it's about The left Mouse button!
The Simplicity halber same time code moreover. Greeting Jörg CompileMarkSeparation $I Listview_Funktionen.inc
Declare LVDllHdl&
Declare bereich#,status&
Declare text$,x&,y&
Dim bereich#,320
LVDllHdl&=UseDll(Listview.dll)
Declare ListView1&
Proc SetListView1
InitMessages(%hwnd)
Declare tmptxt$
tmptxt$=Spalte 1;Spalte 2;Spalte 3
IColumn(ListView1&,Addr(tmptxt$),60,0)
tmptxt$=Spalte 2
IColumn(ListView1&,Addr(tmptxt$),60,0)
tmptxt$=Spalte 3
IColumn(ListView1&,Addr(tmptxt$),60,0)
WhileLoop 0,6
AddString(ListView1&,MkStr$(Test + Format$(00,&Loop) + |,3))
Wend
ShowListView(ListView1&,1,1,Width(%hwnd) - 2,Height(%hwnd) - 200)
EndProc
Proc ExitLV
CloseMessages(%hwnd)
FreeDll LVDllHdl&
EndProc
UserMessages 16
WindowStyle $218
Window 100,100 - 620,520
ListView1&=CreateListView(%hwnd,%hinstance,0,14417146,-1,$21)
SetListView1
status&=Create(TEXT,%HWND,text$,8,364,600,72)
While 1
WaitInput
Case %umessage = 16:Break
y&=GetControlParas(bereich#)
If y&=2
text$=Der rechte Mausknopf wurde in Spalte +Str$(Long(bereich#,4))+ / +Str$(Long(bereich#,8))+ gedrückt.
ElseIf y&=1
text$=Der linke Mausknopf wurde in Spalte +Str$(Long(bereich#,4))+ / +Str$(Long(bereich#,8))+ als Doppelklick gedrückt.
ElseIf y&=3
text$=Der linke Mausknopf wurde in Spalte +Str$(Long(bereich#,4))+ / +Str$(Long(bereich#,8))+ gedrückt.
EndIf
If y&<>0
text$=text$+Dieses ereignete sich im Listview mit dem Handle +Str$(Long(bereich#,0))+.
SetText status&,text$
Endif
x&=GetVar(2)
If x&<>-1
y&=GetVar(3)
text$=Der rechte Mausknopf wurde über dem Spaltenbutton in Spalte +Str$(x&)+ gedrückt.
text$=text$+Dieses ereignete sich im Listview mit dem Handle +Str$(y&)+.
SetText status&,text$
EndIf
x&=GetVar(4)
If x&<>-1
y&=GetVar(5)
text$=Der linke Mausknopf wurde über dem Spaltenbutton in Spalte +Str$(x&)+ gedrückt.
text$=text$+Dieses ereignete sich im Listview mit dem Handle +Str$(y&)+.
SetText status&,text$
EndIf
Wend
ExitLV
|
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 03/10/07 ▲ |
|
|
|
|
Frank Abbing | you mean, that Profans WaitInput without Timer not durchbrochen becomes with one Linksklick on a Headerbutton...
then probier simply time one: User Messages $1401 and already becomes Waitinput with one Linksklick the Headers durchbrochen. Nachzulesen in the guide (integrally right supra).
so ersparst You even GetControlParas(), anyway, if you only Linksklicke interested. I try always, several Opportunities incorporate... |
|
|
| |
|
|
|
| For which standing $1401? is the one List view.Dll internal? |
|
|
| |
|
|
|
Frank Abbing | means well... statement from the List view.dll-Help:
List view.dll and User Messages:
since Version 1.9 sent The List view.dll different User Messages on the Hauptprogramm, if defined Events occur. on this place go these Messages called and declared:
$1400: determined each Tastendruck in a beliebigen List view. uwParam = List view-lever ulParam = Tastencode
$1401: left Mouse button watts on one Column Button pressed. uwParam = List view-lever ulParam = Spaltenindex (nullbasierend)
$1402: users wants straight Column change. uwParam = List view-lever ulParam = Spaltenindex (nullbasierend)
$1403: users has Column changed. uwParam = List view-lever ulParam = Spaltenindex (nullbasierend) |
|
|
| |
|
|
|
| Ah, The User Messages have I yet none registered. Have objectively since Version 1.8 not any more with the dll program. today have I first The whole middle-aged Leichen from the system geschmissen. thanks, the helps kollossal. Perhaps should You for others Klicks too User Messages benefit. These unterschiedlichen inquire for Klicks (GetControlParas/GetVar) lead already time to Verwirrung. |
|
|
| |
|
|
|
Jörg Sellmeyer | damn! now happens something like!! there becomes one at write rausgeschmissen - only because I short what nachgesehen have.
Ah, The User Messages have I yet none registered. Have objectively since Version 1.8 not any more with the dll program. today have I first The whole middle-aged Leichen from the system geschmissen. thanks, the helps kollossal. Perhaps should You for others Klicks too User Messages benefit. These unterschiedlichen inquire for Klicks (GetControlParas/GetVar) lead already time to Verwirrung. |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 03/10/07 ▲ |
|
|
|
|
Frank Abbing |
These unterschiedlichen inquire for Klicks (GetControlParas/GetVar) lead already time to Verwirrung.
I stops it for meaningfully, several types for a Solution available set To get. Each engineering has even its to- and detriments. its too happens, I afterwards a rather method found have, a problem To solve. therefore let I but the old Possibility consist, already from Kompatibilitätsgründen. |
|
|
| |
|
|
|
Jörg Sellmeyer | this is already clear but now have You for normalen Klicks in the list view GetControlParas and Headerklicks GetVar and (only for left) User Messages. If you The User Messages too yet for others Klicks einbaust is the request plainer. means z. B.: $1401 = Header Link $1402 = Header right $1403 = normal Linksklick $1404 = normal Rechtsklick $1405= Double click
|
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 03/10/07 ▲ |
|
|
|
|
Frank Abbing | I have Yes nothing degegen. the nights Update comes certainly . |
|
|
| |
|
|
|
Jörg Sellmeyer | Frank Abbing
I have Yes nothing degegen. the nights Update comes certainly .
the wished I listen! |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 03/10/07 ▲ |
|
|
|
|
Frank Abbing |
you have your profit ausprobiert, stimmts? I hörs me straight on - is Real to that piepen!
hold! The Sprachausgabe entstammt not my profit. so begot Language hears itself namely terrible on (only SAPI) and the Tool is long ago again deinstalliert. Have me Voice Reader of linguatec order, the hears itself circa Lengths rather on... the anyway is my opinion. |
|
|
| |
|
|
|
| @Hi Frank
the anyway is my opinion.
...my too ! |
|
|
| |
|
|