FWPPV to FW

FWPPV to FW

Postby Otto » Mon Jul 25, 2011 10:06 am

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

Thanks in advance
Otto

Code: Select all  Expand view  RUN
// 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
Otto
 
Posts: 6335
Joined: Fri Oct 07, 2005 7:07 pm

Re: FWPPV to FW

Postby Carles » Mon Jul 25, 2011 10:21 am

Otto,

Try to add
Code: Select all  Expand view  RUN
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
Carles
 
Posts: 1137
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona

Re: FWPPV to FW

Postby Otto » Mon Jul 25, 2011 10:42 am

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: 6335
Joined: Fri Oct 07, 2005 7:07 pm

Re: FWPPV to FW

Postby Otto » Mon Jul 25, 2011 1: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.
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6335
Joined: Fri Oct 07, 2005 7:07 pm

Re: FWPPV to FW

Postby Carles » Mon Jul 25, 2011 5: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
Skype -> https://join.skype.com/cnzQg3Kr1dnk
User avatar
Carles
 
Posts: 1137
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 69 guests