Search found 19 matches: drawgrid

Return to advanced search

Re: design.prg from FW samples

... testprn2.prg and it draw a grid into printer not screen perhaps for the screen you can use this ( I coied it from forum many year ago ) It is as DrawGrid( oDlg:hWnd, hDC, cPS, 8, 8 ) //----------------------------------------------------------------------------//#pragma BEGINDUMP#include <Windows.h>#include ...
by Silvio.Falconi
Sun Mar 20, 2022 3:32 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: design.prg from FW samples
Replies: 9
Views: 1363

Re: grid printing

José,

Do you mean to print it on a window or dialog ?

If so, then please try:

oWnd:bPainted = { | hDC, cPS | DrawGrid( oWnd:hWnd, hDC, cPS, 5, 5 ) }

There is an example of use in FWH\visual\design.prg
by Antonio Linares
Sat Sep 01, 2018 11:37 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: grid printing
Replies: 3
Views: 597

Re: design.prg from FW samples

Otto,

In design.prg please make this change:

ACTIVATE DIALOG oDlg CENTERED ;
ON INIT ( oDlg:nOpacity := 150, PlaceControl( oDlg ) ) ;
ON PAINT If( lDesign, DrawGrid( oDlg:hWnd, hDC, cPS, 8, 8 ),) ;
ON RIGHT CLICK EditDialog( nRow, nCol, oDlg )
by Antonio Linares
Wed Jul 27, 2016 8:49 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: design.prg from FW samples
Replies: 9
Views: 1363

Re: cPS in bPainted

... "B"         uVal = Eval( ::bPainted, ::hDC, ::cPS, Self )      endif It looks correct, thank you. Any ideas on how to speed up DrawGrid() function? EMG
by Enrico Maria Giordano
Sun Aug 25, 2013 1:11 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: cPS in bPainted
Replies: 20
Views: 2479

Re: cPS in bPainted

Antonio,

Antonio Linares wrote:Enrico,

Have you tried to modify DrawGrid() this way ?


Yes, but ps.rcPaint.top and ps.rcPaint.left are always zero, unless I'm missing something.

EMG
by Enrico Maria Giordano
Sat Aug 24, 2013 9:51 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: cPS in bPainted
Replies: 20
Views: 2479

Re: cPS in bPainted

Enrico, Have you tried to modify DrawGrid() this way ? HB_FUNC( DRAWGRID ) // hWnd, hDC, @cPS, wGridX, wGridY{   WORD wRow, wCol;   #ifdef _WIN64      HDC hDC   = ( HDC ) hb_parnll( ...
by Antonio Linares
Sat Aug 24, 2013 9:34 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: cPS in bPainted
Replies: 20
Views: 2479

Re: cPS in bPainted

Antonio,

Antonio Linares wrote:Enrico,

There is a working example managing cPS at FWH\samples\formdes.prg


That's exactly what I was trying to do but unfortunately DrawGrid() makes no use of cPS parameter. :-(

EMG
by Enrico Maria Giordano
Sat Aug 24, 2013 9:19 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: cPS in bPainted
Replies: 20
Views: 2479

Re: How can recompile FW libraries?

... that is never used in function dbl2flt Warning W8004 dbl2flt.c 30: 'ui' is assigned a value that is never used in function dbl2flt Warning W8004 drawgrid.c 24: 'ps' is assigned a value that is never used in function DRAWGRID Warning W8004 drawicon.c 112: 'szMsg' is assigned a value that is never ...
by mosh1
Mon Oct 10, 2011 11:14 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How can recompile FW libraries?
Replies: 23
Views: 5581

Re: BITMAP NO TRANSPARENT

Silvio it isn't strange... With the fivewin power why not we cannot move a bitmap transparent into a window with drawgrid ? yes, and already you do that, but with the Windows OS standar features FiveWin uses standard windows OS controls and other controls themselves, all controls ...
by Daniel Garcia-Gil
Thu Feb 25, 2010 11:47 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: BITMAP NO TRANSPARENT
Replies: 6
Views: 1560

Re: BITMAP NO TRANSPARENT

this is strange....

With the fivewin power why not we cannot move a bitmap transparent into a window with drawgrid ?

I think we Not Know how make but i think and believe it can be done with the fivewin power language
by Silvio
Thu Feb 25, 2010 7:49 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: BITMAP NO TRANSPARENT
Replies: 6
Views: 1560

BITMAP NO TRANSPARENT

I HAVE A BITMAP @ 10,10 BITMAP filename "test.bmp" SIZE 64,64 DESIGN i MUST MOVE THIS BITMAP ON A WINDOW WITH DRAWGRID FUNCTION THIS BITMAP IS NOT TRANSPARENT AND WHEN i MOVE IT COPY THE BACKGROUND ON NEW POSITION HOW i CAN TO MOVE THIS BITMAP ON MODE TRANSPARENT ON THIS ...
by Silvio
Wed Feb 24, 2010 4:34 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: BITMAP NO TRANSPARENT
Replies: 6
Views: 1560

Re: Se necesita ayuda en el wiki !

... DlgFindText() Dotsadjust() DPToLP() Draftmode() DragAcceptFiles() Dragfinish() DragqueryPoint() DrawBitmap() DrawfocusRect() DrawGrayed() Drawgrid() DrawIcon() DrawMasked() DrawMenuBar() DrawMsgItem() DrawText() DupRecord() Un abrazo, Carlos Gallego
by Cgallegoa
Sat Feb 20, 2010 8:13 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Se necesita ayuda en el wiki !
Replies: 12
Views: 5502

Re: GRID ON RPREVIEW

buT ON XHARBOUR MAKE ERRORS Progetto: TEST, Ambiente: xFiveWin: [1]:Harbour.Exe TEST.PRG /m /n /es2 /iC:\work\FWH\include /ic:\work\xHarbour\Include /iinclude;c:\work\fwh\include;c:\work\xHarbour\include /oObj\TEST.c xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406) Copyright 1999-2009, http://ww...
by Silvio
Fri Jan 15, 2010 7:38 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: GRID ON RPREVIEW
Replies: 11
Views: 2620

GRID ON RPREVIEW

... rpreview as that is on Fadst Report you can see in this picture http://img22.imageshack.us/img22/2815/gridfastrep.jpg I try with DrawGrid( ::hWnd, ::hDC,10, 10, 10 ) but it design a grid with point and not with rectangule as fastreport http://img22.imageshack.us/img22/4869/miogrid.jpg ...
by Silvio
Thu Jan 14, 2010 9:42 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: GRID ON RPREVIEW
Replies: 11
Views: 2620

Re: fwh\samples\RE.prg - FiveWin Resources Editor underrated

... end    DEFINE DIALOG oDlg            oDlg:cResData = cResource    ACTIVATE DIALOG oDlg ;       ON INIT InitControls( oDlg ) ;       ON PAINT DrawGrid( oDlg:hWnd, hDC, cPS, 8, 8 ) return nil //----------------------------------------------------------------------------// function ParseDlgStyle( ...
by Otto
Sun Aug 30, 2009 6:09 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: fwh\samples\RE.prg - FiveWin Resources Editor underrated
Replies: 38
Views: 11657
Next

Return to advanced search