FWPPV to FW

Post Reply
User avatar
Otto
Posts: 6403
Joined: Fri Oct 07, 2005 7:07 pm
Has thanked: 24 times
Been thanked: 2 times
Contact:

FWPPV to FW

Post by Otto »

Could someone please help to convert this fivewin PPC sample to Fivewin.

Thanks in advance
Otto

Code: Select all | Expand

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

//----------------------------------------------------------------------------//
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Carles
Posts: 1149
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona
Been thanked: 7 times
Contact:

Re: FWPPV to FW

Post by Carles »

Otto,

Try to add

Code: Select all | Expand

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
Skype -> https://join.skype.com/cnzQg3Kr1dnk
User avatar
Otto
Posts: 6403
Joined: Fri Oct 07, 2005 7:07 pm
Has thanked: 24 times
Been thanked: 2 times
Contact:

Re: FWPPV to FW

Post by Otto »

Thank you. Now it is working.
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
Posts: 6403
Joined: Fri Oct 07, 2005 7:07 pm
Has thanked: 24 times
Been thanked: 2 times
Contact:

Re: FWPPV to FW

Post by Otto »

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.
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Carles
Posts: 1149
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona
Been thanked: 7 times
Contact:

Re: FWPPV to FW

Post by Carles »

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
Skype -> https://join.skype.com/cnzQg3Kr1dnk
Post Reply