FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour FWPPV to FW
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
FWPPV to FW
Posted: Mon Jul 25, 2011 10:06 AM
Could someone please help to convert this fivewin PPC sample to Fivewin.

Thanks in advance
Otto

Code (fw): Select all Collapse
// FiveWin for Pocket PC - Capturing a signature

//#include "FWCE.ch"
#include "FiveWin.ch"

static oWnd, oSay

//----------------------------------------------------------------------------//

function Main()

   local hDC, lPaint := .f.

   DEFINE WINDOW oWnd TITLE "Please sign" //;
    //  MENU BuildMenu()

   @ 40, 5 SAY oSay PROMPT "" SIZE 230, 150 PIXEL BORDER 

   hDC = oSay:GetDC()

   oSay:bLClicked  = { | nRow, nCol | lPaint := .t., MoveTo( hDC, nCol, nRow ) }
   oSay:bLButtonUp = { | nRow, nCol | LineTo( hDC, nCol, nRow ), lPaint := .f. }
   oSay:bMMoved    = { | nRow, nCol | If( lPaint, LineTo( hDC, nCol, nRow ),) }

   ACTIVATE WINDOW oWnd ;
      VALID ( oSay:ReleaseDC(), .t. )
      
return nil

//----------------------------------------------------------------------------//
Posts: 1283
Joined: Fri Feb 10, 2006 02:34 PM
Re: FWPPV to FW
Posted: Mon Jul 25, 2011 10:21 AM
Otto,

Try to add
Code (fw): Select all Collapse
oSay:lWantClick := .t.
Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
HIX -> https://github.com/carles9000/hix
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: FWPPV to FW
Posted: Mon Jul 25, 2011 10:42 AM

Thank you. Now it is working.
Best regards,
Otto

Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: FWPPV to FW
Posted: Mon Jul 25, 2011 01:55 PM

Hello Carles,
do you know if lWantClick also works with resource files?

Thanks in advance
Otto

I had somewhere else an error.
Yes it is working.

Posts: 1283
Joined: Fri Feb 10, 2006 02:34 PM
Re: FWPPV to FW
Posted: Mon Jul 25, 2011 05:27 PM

Otto,

It should work also

Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
HIX -> https://github.com/carles9000/hix

Continue the discussion