Español
Foro

Rechter Mausklick en Listview

 
- Página 1 -



Jörg
Sellmeyer
¿Cómo se puede Soy un Clic con el rechten (sekundären) Botón del ratón en una Listview auswerten? (Ohne el berühmte Dll uno begnadeten Programmieres! )
Und como Yo grad esta bin. Yo vermute veces, daß el Editieren de Items en Listviews una Feature besagter Dll es y Windows eigentlich sólo el erste Spalte dafür vorgesehen ha, oder?
Hiermit funktioniert lo nämlich sólo el ersten Spalte:
SendMessage(hLV&,$1017,0,0)

Dafür muß como erstes el el Listview todavía scharfgeschaltet voluntad:
SetStyle hLV&,GetStyle(hLV&) | $200
Wer weiß Rat?

Saludo
Jörg
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
02.09.2006  
 



 
- Página 1 -



Jörg
Sellmeyer
Ist el porque sooo komplieziert? Eigentlich müßte doch en %notifycode una unterschiedlicher Valor posición, je después de con welcher Botón del ratón uno klickt. Kommt aber desafortunadamente siempre el gleiche Ergebnis.

En ner Listbox passiert en Rechtsklick gar nichts. Dafür son Clicked beim Listview gar kein Ergebnis.
Mit Getfocus es el Valor siempre -121

Hier puede ser veces diferente Verhaltensweisen sehen:
KompilierenMarcaSeparación
Ist el nun Bug oder Feature? Wann kommt Roland otra vez otra vez??
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
02.09.2006  
 




Jac
de
Lad
Hm...como kann Yo dir jedenfalls no helfen...tal vez Fank.

PS: Mit el EasyVENT klappts wunderbar!

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
02.09.2006  
 




Frank
Abbing
Wenn una WM_NOTIFY Message empfangen se, es en LPARAM el Pointer en una Struktur (NMHDR). Der dritte Valor (code) en dieser Struktur es el Valor des Ereignisses, welches stattgefunden ha:


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 not complete a operation because there qué not 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, el hilft dir más.
 
03.09.2006  
 




Frank
Abbing
Yo otra vez.

Habs gerade veces ausprobiert. Folgender Code debería trabajo, macht lo pero no:


Case ((%wmNotify) and (&NotifyWnd=listview&)): Imprimir %NotifyCode


Ergebniss es siempre -121. Meiner Meinung después de una eindeutiger Profano-Bug!
Yo selber löse esta Dinge eh siempre en el Subclassing y Assemblercode. Darum fällt me algo como meisstens no en.
 
03.09.2006  
 




Jörg
Sellmeyer

Ergebniss es siempre -121. Meiner Meinung después de una eindeutiger Profano-Bug!


Exactamente! Rooooolaaaand!
Hhhm! Exactamente como en Polizei: Wenn uno ellos braucht, es ellos no como.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
03.09.2006  
 




Jörg
Sellmeyer
Irgendwie blick ego no. Nach mi Verständnis müßte lo doch así trabajo, oder?
KompilierenMarcaSeparación
 $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

Disponer NM#
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
03.09.2006  
 




RGH
Jörg Sellmeyer
Ist el porque sooo komplieziert? Eigentlich müßte doch en %notifycode una unterschiedlicher Valor posición, je después de con welcher Botón del ratón uno klickt. Kommt aber desafortunadamente siempre el gleiche Ergebnis.


Also en Deinem (unveränderten) Ejemplo hay en el Gridbox en una Botón del ratón -2 y en otro -5. Wo genau el problema es?

Saludo
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
03.09.2006  
 




Jörg
Sellmeyer
Sollte Soy un RC verpaßt haben oder hast Es usted un otro Versión???
Erster Clic con Links, zweiter con Rechts. (Listview)

Jetzt tener Yo el Listbox vergessen.
Como kommt con Rechts garnichts a. Mit Links beim ersten Klicken -150 y luego -8.

19 kB
Hochgeladen:03.09.2006
Ladeanzahl48
Descargar
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
03.09.2006  
 




RGH
¡Hola,
Usted hast el aktuelle Versión, pero yo habe lo bajo Windows 2000 getestet y no bajo XP. Und en el Notify-Geschichten hört como offensichtlich Microsofts Kompatibilität en. Yo voluntad me en el nächsten Tagen veces näher ansehen. (Vorerst könntest Usted lo veces con Messagemode 2 probieren.)

Saludo
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
03.09.2006  
 



 
- Página 2 -



Jörg
Sellmeyer
Na, wenigstens haben wir ahora veces una Ursache y una Schuldigen (BG).
Messagemode 2 nützt auch nichts. Immer -121, sólo ahora en cada Mausbewegung después de klick el LV.

Ach sí, y yo hoffe Usted había una schönen Fiesta!! Laß Usted ahora no stressen, así no el todo Erholung igual weg es!!!
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
03.09.2006  
 




Frank
Abbing
Hi.

Yo selber podría en el Beziehung keinerlei Veränderung zwischen Windows98 y XP determinar. Klar kommen mehr Messages a, aber, el gleiche Variante (WM_NOTIFY->NM_RCLICK)
en el Subclassing abgefragt funktioniert bestens. Darum glaube Yo no, dass hier una Windowsbug vorliegt.

¡Hola zurück, Roland!

P.S.: Zu diesem Thema Yo una ya bastante alten Hilo gefunden:
[...] 
 
03.09.2006  
 




Jörg
Sellmeyer
Mit así nem doch bastante wüsten Konstrukt es sólo veces:
KompilierenMarcaSeparación
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
03.09.2006  
 




Respuesta


Título del Tema, max. 100 Signo.
 

Systemprofile:

Kein Systemprofil creado. [anlegen]

XProfan:

 Contribución  Font  Smilies  ▼ 

Bitte registro en una Contribución a verfassen.
 

Tema opciones

4.501 Views

Untitledvor 0 min.
Michael W.04.07.2016
Ernst21.05.2016
Andre Rohland31.12.2014
maroro12.06.2014
Más...

Themeninformationen



Admins  |  AGB  |  Applications  |  Autores  |  Chat  |  Política de Privacidad  |  Descargar  |  Entrance  |  Ayuda  |  Merchantportal  |  Pie de imprenta  |  Mart  |  Interfaces  |  SDK  |  Services  |  Juegos  |  Búsqueda  |  Support

Ein Projekt aller XProfan, el lo son!


Mi XProfan
Privado Noticias
Eigenes Ablageforum
Temas-Merkliste
Eigene Beiträge
Eigene Temas
Zwischenablage
Cancelar
 Deutsch English Français Español Italia
Traducciones

Política de Privacidad


Wir uso Cookies sólo como Session-Cookies wegen el technischen Notwendigkeit y en uns hay no Cookies de Drittanbietern.

Wenn du hier en unsere Webseite klickst oder navigierst, stimmst du unserer Erfassung de Informationen en unseren Cookies en XProfan.Net a.

Weitere Informationen a unseren Cookies y dazu, como du el Kontrolle darüber behältst, findest du en unserer nachfolgenden Datenschutzerklärung.


einverstandenDatenschutzerklärung
Yo möchte no Cookie