TWBrowse right click
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
TWBrowse right click
ON RIGHT CLICK clause doesn't work.
EMG
EMG
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
I solve with a work around :
this is a sample for the wbrowse.prg but it is possible to use in every control :
oBrwArt:bTimer := {|| MsgInfo("Hello") }
//-------------------------------------------------------
//1 - ADD this variable
DATA oTimer
DATA nTimer
DATA bTimer
// ------------------------------------------------------
// 2 Method LButtonDown
METHOD LButtonDown( nRow, nCol, nKeyFlags ) CLASS TWBrowse
local nClickRow, nSkipped
local nColPos := 0, nColInit := ::nColPos - 1
local nAtCol
//----- my_modi
IF ::bTimer != nil
::nTimer := 1
::oTimer := TTimer():New( 1000, ;
{||(::nTimer++,;
IIF( ::nTimer > 1 , ( ::nTimer := 0 ,::oTimer:End() , eval(::bTimer) ), ) )})
::oTimer:Activate()
ENDIF
// -----------------------------------------------------
// 2 Method LButtonUp
METHOD LButtonUp( nRow, nCol, nFlags ) CLASS TWBrowse
//----- my_modi
IF ::bTimer != nil
IF ::nTimer > 0
::oTimer:End()
ENDIF
::nTimer := 0
ENDIF
this is a sample for the wbrowse.prg but it is possible to use in every control :
oBrwArt:bTimer := {|| MsgInfo("Hello") }
//-------------------------------------------------------
//1 - ADD this variable
DATA oTimer
DATA nTimer
DATA bTimer
// ------------------------------------------------------
// 2 Method LButtonDown
METHOD LButtonDown( nRow, nCol, nKeyFlags ) CLASS TWBrowse
local nClickRow, nSkipped
local nColPos := 0, nColInit := ::nColPos - 1
local nAtCol
//----- my_modi
IF ::bTimer != nil
::nTimer := 1
::oTimer := TTimer():New( 1000, ;
{||(::nTimer++,;
IIF( ::nTimer > 1 , ( ::nTimer := 0 ,::oTimer:End() , eval(::bTimer) ), ) )})
::oTimer:Activate()
ENDIF
// -----------------------------------------------------
// 2 Method LButtonUp
METHOD LButtonUp( nRow, nCol, nFlags ) CLASS TWBrowse
//----- my_modi
IF ::bTimer != nil
IF ::nTimer > 0
::oTimer:End()
ENDIF
::nTimer := 0
ENDIF
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
-
- Posts: 42
- Joined: Wed Oct 26, 2005 1:20 pm
- Location: Marshall, Virginia, USA
- Contact:
Does this help?
Hi, I too am interested in "right click" support in WBrowse. I found this article in the MSDN knowledgebase. Perhaps this can help. Unfortaunately, I am not talented enough to understand the "SHRecognizeGesture function".
http://msdn.microsoft.com/library/defau ... 2_noxa.asp
My specific interest is in popping up a menu. This example on MSDN shows specifics...
http://msdn.microsoft.com/library/defau ... isting.asp
Thanks for any help!
http://msdn.microsoft.com/library/defau ... 2_noxa.asp
My specific interest is in popping up a menu. This example on MSDN shows specifics...
http://msdn.microsoft.com/library/defau ... isting.asp
Thanks for any help!
Bill Simmeth
Merchant Software Corp
Marshall, Virginia USA
Merchant Software Corp
Marshall, Virginia USA
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Bill,
Thanks for your feedback.
We have just published a new FWPPC build that includes the function SHRecognizeGesture(). Please review samples\TapHold.prg for a working sample detecting the tap and hold event.
Please notice that on such sample we are not showing a popup menu yet, just a MsgInfo(). Also we have detected that sometimes it makes crash the application, we still don't know why.
Thanks for your feedback.
We have just published a new FWPPC build that includes the function SHRecognizeGesture(). Please review samples\TapHold.prg for a working sample detecting the tap and hold event.
Please notice that on such sample we are not showing a popup menu yet, just a MsgInfo(). Also we have detected that sometimes it makes crash the application, we still don't know why.
Last edited by Antonio Linares on Sat Jun 03, 2006 9:33 am, edited 1 time in total.
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
This sample already shows a POPUP, when tap & hold, though the actions are not managed yet:
http://hyperupload.com/download/017c2df ... d.prg.html
http://hyperupload.com/download/017c2df ... d.prg.html
-
- Posts: 42
- Joined: Wed Oct 26, 2005 1:20 pm
- Location: Marshall, Virginia, USA
- Contact: