English
Forum

Rechtsklick List view ?

 

Jac
de
Lad
thanks Rolf, now is everything clear (or everything mci .....time see).

@iF: You must me help: I wars no funktionsfähiges example there, where one Rechtsklick in a GridBOX abgefangen becomes. but lass you Time, I go same in that bed and be tommorrow on Ner funeral and saturday with of my girl-friend, means probably first sunday evening again drin.

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/14/06  
 



I gugs me on!
 
09/14/06  
 




Jac
de
Lad
Thank you!
 
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/14/06  
 



Hm no trouble works still wonderful:
CompileMarkSeparation
 {$cleq}
 $U on.pcu = on.
Def GetSysColor(1) !User32,GetSysColor
declare lb&,dlg&
//unsichtbares Hauptfenster damit lecker messages angekommen
windowstyle 80 | 1024
window 0,0 - 0,0
showwindow(%hwnd,0)
//
windowstyle 512+8
dlg&:=createdialog(0,MyDlg,100,100,640,480)
lb& = create(GridBox,dlg&,0;0;340;0;2;100,0,0,0,300,300)
on.event close	,dlg&	,12344
on.event ldklick	,lb&	,12345
on.event rklick	,lb&	,12346

while 1

    waitinput
    case %umessage==12344 : break
    case %umessage==12345 : settext dlg&,dblklick +str$(&gettickcount)
    case %umessage==12346 : .trackmenu

wend

on.delevent close	,dlg&	,12344
on.delevent ldklick	,lb&	,12345
on.delevent rklick	,lb&	,12346
on.close
end

proc .trackmenu

    declare mx&,my&
    my&:=hiword(&ulparam)
    mx&:=loword(&ulparam)
    createmenu
    appendmenu 100,ll
    Trackmenu_byxy_bydialog mx&,my&,dlg&

endproc

Proc Trackmenu_byxy

    Parameters X&,Y&
    Declare Gmp#,Dx&,Dy&
    Dim Gmp#,8
    External(user32,ClientToScreen,%Hwnd,Gmp#)
    Dx&=Long(Gmp#,0)
    Dy&=Long(Gmp#,4)
    Trackmenu (X&-Dx&),(Y&-Dy&)
    Dispose Gmp#

Endproc

Proc Trackmenu_byxy_bydialog

    Parameters X&,Y&,H&
    Declare Gmp#,Dx&,Dy&
    Dim Gmp#,8
    External(user32,ClientToScreen,H&,Gmp#)
    Dx&=Long(Gmp#,0)
    Dy&=Long(Gmp#,4)
    Trackmenu_byxy X&+Dx&,Y&+Dy&
    Dispose Gmp
class=s4 href='./../../function-references/XProfan/endproc/'>Endproc
 
09/14/06  
 



And then having Roland in the Phorum ebend yet something other written - I must time Quote:

so becomes it ex RC5 - comes today evening - functions:
CompileMarkSeparation one mind the new Systemvariable %ChildMessage! Also go %MouseX and %MouseY now too with Rechtsklick on one Dialogeleent correctly staid. but not %ChildMessage could one now too %MousePressed = 2 inquire.

GrußRoland
 
09/14/06  
 




Jac
de
Lad
Öhhm, I look something by me wrong runs.
 
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/14/06  
 




Jörg
Sellmeyer
have You Perhaps again The LV on one other Control staid?
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
09/14/06  
 



[quote:2f0666031a=Jörg Sellmeyer]have You Perhaps again The LV on one other Control staid?[/quote:2f0666031a]
Hm the should eigendlich alike his!
 
09/15/06  
 



its alike:
CompileMarkSeparation
 {$cleq}
 $U on.pcu = on.
Def GetSysColor(1) !User32,GetSysColor
declare lb&,dlg&,st&
window 0,0 - 640,480
dlg&:=%hwnd
st&:=create(Text,dlg&,,50,50,300,300)
lb& = create(GridBox,st&,0;0;340;0;2;100,0,0,0,300,300)
on.event close	,dlg&	,12344
on.event ldklick	,lb&	,12345
on.event rklick	,lb&	,12346

while 1

    waitinput
    case %umessage==12344 : break
    case %umessage==12345 : settext dlg&,dblklick +str$(&gettickcount)
    case %umessage==12346 : .trackmenu

wend

on.delevent close	,dlg&	,12344
on.delevent ldklick	,lb&	,12345
on.delevent rklick	,lb&	,12346
on.close
end

proc .trackmenu

    declare mx&,my&
    my&:=hiword(&ulparam)
    mx&:=loword(&ulparam)
    createmenu
    appendmenu 100,ll
    Trackmenu_bymousepos

endproc

Proc Trackmenu_bymousepos

    Declare Gmp#,Dx&,Dy&
    Dim Gmp#,8
    External(user32,ClientToScreen,%Hwnd,Gmp#)
    Dx&=Long(Gmp#,0)
    Dy&=Long(Gmp#,4)
    External(user32,GetCursorPos,Gmp#)
    Trackmenu (Long(Gmp#,0)-Dx&),(Long(Gmp#,4)-Dy&)
    Dispose Gmp#

../../function-references/XProfan/endproc/'>Endproc

 
09/15/06  
 




Jac
de
Lad
the List view lying on the %HWnd. I schaus me tonight at times!
 
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/15/06  
 




Jac
de
Lad
means your example works, but by me in the Digicam-Assistenten works komischerweise not. I custom sure yet while To I found out have, Why...

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/15/06  
 



Hm ok i'm tensely to know Why it lying!
 
09/15/06  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.191 Views

Untitledvor 0 min.
Gast.081510/12/24
Michael W.07/04/16
rquindt11/23/15
GDL04/03/14
More...

Themeninformationen

this Topic has 3 subscriber:

iF (8x)
Jac de Lad (5x)
Jörg Sellmeyer (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie