FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour GRID in RPREVIEW
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
GRID in RPREVIEW
Posted: Wed Nov 19, 2008 12:09 PM
I wish create lines grid in rpreview but I not Know How make it
perhap we can init from shadow method....
I wish to create it



please can YOU help me :-)
Best Regards, Saludos



Falconi Silvio
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
GRID in RPREVIEW
Posted: Wed Nov 19, 2008 01:19 PM

Hello Silvio,
I once tried to inset a HairCross into preview. I think with this code you could also make a grid.

Regards,
Otto

HairCross Cursor is working:

Insert

oMeta1:bMMoved:={|y,x,flags|hairCross(oMeta1,y,x) }

in FUNCTION RPreview( oDevice ) in rpreview.prg.

func hairCross(oMeta1,y,x)
nCount:=nCount+1
IF nCount > 5
nCount:=0
oMeta1:refresh()
sysrefresh()
oMeta1:line (0,x,1800,x)
oMeta1:line (y,0,y,1500)
ENDIF
return nil

Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
GRID in RPREVIEW
Posted: Wed Nov 19, 2008 01:37 PM

thanks otto but I have allready try with haircross
with no success

exit a function drawgrid but I not know How run it

METHOD Grid() CLASS Tmetafile

 if !::lGrid
    return nil
 endif

 ::oWnd:GetDC()

DRAWGRID(::oWnd:hDC, 8, 8, <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) -->

  ::oWnd:ReleaseDC()

return nil

but it not run

Best Regards, Saludos



Falconi Silvio

Continue the discussion