| |
|
|
- Page 1 - |
|
Jörg Sellmeyer | How can I a Click with the rechten (sekundären) Mouse button on one List view evaluate? (without The berühmte Dll one begnadeten Programmieres! ) and I strain thereby be. I suspect time, that the edit of Items in Listviews one feature besagter Dll is and Windows really only The first slot for vorgesehen has, or? herewith functions it namely only with the first slot: SendMessage(hLV&,$1017,0,0)
For this must first thing The the List view yet scharfgeschaltet go: SetStyle hLV&,GetStyle(hLV&) | $200 who can tell council?
Greeting Jörg |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 09/02/06 ▲ |
|
|
|
|
| |
|
- Page 1 - |
|
Jörg Sellmeyer | is the because sooo komplieziert? really should still in %notifycode one unterschiedlicher worth stand, depending on with which Mouse button one clicking. comes but unfortunately always the same Result.
with Ner Listbox happens with Rechtsklick quite nothing. For this gives Clicked at List view quite no Result. with Getfocus is the worth always -121
here can time different behaviors see: CompileMarkSeparationCls
Declare lv&,lb&
lv&=Create(Gridbox,%hwnd,Test;0;100;Test1;0;100,0,210,10,210,400)
lb&=Create(Listbox,%hwnd,0,430,10,150,400)
WhileLoop 10
AddString(lv&,test)
AddString(lb&,test)
Wend
Declare ende%
WhileNot ende%
WaitInput
IF Equ(%key,2)
Let ende%=1
ElseIf GetFocus(lv&)
print %notifycode
ElseIf GetFocus(lb&)
print %notifycode
Alternativ mal damit:
ElseIf Clicked(lv&)
print %notifycode
ElseIf Clicked(lb&)
print %notifycode
EndIf
Wend
is the now bow or feature? when comes Roland again again?? |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 09/02/06 ▲ |
|
|
|
|
Jac de Lad | Hm...there can I you anyway not help...Perhaps Fank.
PS: with the EasyVENT works wonderful!
Jac |
|
|
| Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE) Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP | 09/02/06 ▲ |
|
|
|
|
Frank Abbing | If a WM_NOTIFY Message receive becomes, standing in LPARAM the Pointer on a structure (NMHDR). The dritte worth (code) in this structure is the worth the Ereignisses, which stattgefunden has:
NM_CLICKThe user has clicked the left mouse button within the control. NM_DBLCLKThe user has double-clicked the left mouse button within the control. NM_KILLFOCUSThe control has lost the input focus. NM_OUTOFMEMORYThe control could hardship complete on operation because there what hardship enough memory available. NM_RCLICKThe user has clicked the right mouse button within the control. NM_RDBLCLKThe user has double-clicked the right mouse button within the control. NM_RETURNThe control has the input focus, and the user has pressed the ENTER key. NM_SETFOCUSThe control has received the input focus.
Hollfe, the helps you moreover. |
|
|
| |
|
|
|
Frank Abbing | I again.
Habs straight time ausprobiert. Folgender code ought to functions, power But not:
Case ((%wmNotify) and (&NotifyWnd=listview&)): Print %NotifyCode
Ergebniss is always -121. of my opinion after a eindeutiger Profan-bow! I yourself resolve these items eh always in the Subclassing and Assemblercode. therefore falls me something like meisstens not. |
|
|
| |
|
|
|
Jörg Sellmeyer |
Ergebniss is always -121. of my opinion after a eindeutiger Profan-bow!
very! Rooooolaaaand! Hhhm! very How with the police: If one tappt im dunkeln need, is tappt im dunkeln not there. |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 09/03/06 ▲ |
|
|
|
|
Jörg Sellmeyer | somehow look ichs not. After my understanding should it still so functions, or? CompileMarkSeparation $H Structs.ph
Struct Notify = ~NMHDR
Declare NM#
Dim NM#,Notify
Cls
Declare Lv&,Lb&
Lv&=Create(Gridbox,%Hwnd,Test;0;100;Test1;0;100,0,210,10,210,400)
Lb&=Create(Listbox,%Hwnd,0,430,10,150,400)
Whileloop 10
Addstring(Lv&,test)
Addstring(Lb&,test)
Wend
Declare Ende%
Whilenot Ende%
Waitinput
If %wmnotify
NM# = &LPARAM
With NM#
Print .hwndFrom&,.idFrom&,.code&,&LPARAM,NM#
EndWith
EndIf
Locate 1,1
If Equ(%Key,2)
Let Ende%=1
Endif
Wend
Dispose NM#
|
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 09/03/06 ▲ |
|
|
|
|
RGH | Jörg Sellmeyer
is the because sooo komplieziert? really should still in %notifycode one unterschiedlicher worth stand, depending on with which Mouse button one clicking. comes but unfortunately always the same Result.
means with Your (unchanged) example there in the GridBOX with the a Mouse button -2 and with the others -5. where exactly the trouble?
Greeting Roland |
|
|
| Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 09/03/06 ▲ |
|
|
|
|
Jörg Sellmeyer | ought to I a RC verpaßt having or have You another Version??? first Click with left, zweiter with right. (List view)
now Have I The Listbox forget. there comes with right garnichts on. with left at first clicking -150 and then -8. |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 09/03/06 ▲ |
|
|
|
|
RGH | Hi, you have The actually Version, but I have it under windows 2000 tested and not XP. and with whom Notify-stories hears there evident Microsofts compatibility on. i'll me the into next Meet time hither standing. (for the time being could You it time with Messagemode 2 try.)
Greeting Roland |
|
|
| Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 09/03/06 ▲ |
|
|
|
| |
|
- Page 2 - |
|
|
Jörg Sellmeyer | well, at least having we now time a cause and a blameful (BG). Messagemode 2 nützt too nothing. always -121, only now with eachone Mausbewegung to klick the LV.
alas Yes, what about me hope you had a lovely leave!! red you now not stressen, lest The whole pickup same lane is!!! |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 09/03/06 ▲ |
|
|
|
|
Frank Abbing | Hi.
I yourself could in the relationship no Veränderung between windows98 and XP check. clear come More Messages on, but, The same Variante (WM_NOTIFY->NM_RCLICK) in the Subclassing quizzed functions fine. therefore faith I do not, that here Windowsbug vorliegt.
Hello back, Roland!
P.s.: To this Topic have I a already right middle-aged Thread found: [...] |
|
|
| |
|
|
|
Jörg Sellmeyer | with so nem still right wüsten Konstrukt goes it first time: CompileMarkSeparationH Windows.ph
Struct CursorPos = X&,Y&
Declare CP#
Dim CP#,CursorPos
Cls
Declare Lv&,Lb&
Lv&=Create(Gridbox,%Hwnd,Test;0;100;Test1;0;100,0,210,10,210,400)
Lb&=Create(Listbox,%Hwnd,0,430,10,150,400)
Whileloop 10
Addstring(Lv&,Format$(Test 00,&Loop))
Addstring(Lb&,test)
Wend
Declare Ende%
Whilenot Ende%
If Getfocus(Lv&)
GetMessage
Else
Waitinput
EndIf
If Equ(%Key,2)
Let Ende%=1
ElseIf And(~Getasynckeystate(2),Getfocus(Lv&))
~GetCursorPos(CP#)
~ScreenToClient(%hwnd,CP#)
CreateMenu
AppendMenu 100,GetText$(LV&,GetCurSel(LV&),0)
AppendMenu 101,Test1
Separator
AppendMenu 200,Abbruch
TrackMenu CP#.X&,CP#.Y&
Endif
Wend
Dispose CP#
|
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 09/03/06 ▲ |
|
|
|