Uwe,
With printer class also I was able to print the stars...
I asked to print with Report Class !!!!!
as ..
COLUMN TITLE "Disegno" DATA ....... SIZE 10 IMAGE IMGDATA ....... HEIGHT 1.2 ALPHALEVEL 128
stars on xbrowse
- Silvio.Falconi
- Posts: 7136
- Joined: Thu Oct 18, 2012 7:17 pm
- Been thanked: 1 time
Re: stars on xbrowse
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
- Silvio.Falconi
- Posts: 7136
- Joined: Thu Oct 18, 2012 7:17 pm
- Been thanked: 1 time
Re: stars on xbrowse
thanks to Manual Alvarez ( Mastintin )
We can create a bitmap from another two bitmaps from GdiPlus library
![Image](http://www.iispascalcomiforti.it/wp-content/uploads/2017/02/rating_report.jpg)
test.prg
the functions are disponible from next fwh package
FUNCTION cBmponoffArray( cBmpOn, cbmpOff, totalRango, nRango ) by Mastintin
FUNCTION cBmponoffArrayresources( cResOn, cResOff, totalRango, nRango ) by Mastintin
then there is an error on GdiPlus.cpp GDIPLUSIMAGESAVE correct by Alvarez
We can create a bitmap from another two bitmaps from GdiPlus library
![Image](http://www.iispascalcomiforti.it/wp-content/uploads/2017/02/rating_report.jpg)
test.prg
Code: Select all | Expand
#include "fivewin.ch"
#include "report.ch"
STATIC oReport
Function Rep01()
Local aSTAR
lOCAL cDir:=".\BITMAPS\"
USE INTERNET ALIAS IN
REPORT oReport TITLE "*** Report Rating***" PREVIEW
// from resources
COLUMN TITLE "Design" DATA IN->INDISENO SIZE 10 IMAGE IMGDATA cBmponoffArrayresources( "STARFULL", "STAREMPTY", 5, IN->INDISENO ) HEIGHT 1.2 ALPHALEVEL 128
COLUMN TITLE "Contenuti" DATA IN->INCONTENI SIZE 10 IMAGE IMGDATA cBmponoffArrayresources( "STARFULL", "STAREMPTY", 5, IN->INCONTENI ) HEIGHT 1.2 ALPHALEVEL 128
COLUMN TITLE "Global" DATA IN->INVALORAC SIZE 10 IMAGE IMGDATA cBmponoffArrayresources( "STARFULL", "STAREMPTY", 5, IN->INVALORAC ) HEIGHT 1.2 ALPHALEVEL 128
// from file
COLUMN TITLE "Design" DATA IN->INDISENO SIZE 10 IMAGE IMGDATA cBmponoffArray( cDir+"full.bmp", cDir+"empty.bmp", 5, IN->INDISENO ) HEIGHT 1.2 ALPHALEVEL 128
COLUMN TITLE "Contenuti" DATA IN->INCONTENI SIZE 10 IMAGE IMGDATA cBmponoffArray( cDir+"full.bmp", cDir+"empty.bmp", 5, IN->INCONTENI ) HEIGHT 1.2 ALPHALEVEL 128
COLUMN TITLE "Global" DATA IN->INVALORAC SIZE 10 IMAGE IMGDATA cBmponoffArray( cDir+"full.bmp", cDir+"empty.bmp", 5, IN->INVALORAC ) HEIGHT 1.2 ALPHALEVEL 128
END REPORT
ACTIVATE REPORT oReport
// nuevo para borrar imágenes
FOR i=1 TO 5
FErase( AllTrim(Str(i))+ ".bmp" )
NEXT
RETURN NIL
the functions are disponible from next fwh package
FUNCTION cBmponoffArray( cBmpOn, cbmpOff, totalRango, nRango ) by Mastintin
FUNCTION cBmponoffArrayresources( cResOn, cResOff, totalRango, nRango ) by Mastintin
then there is an error on GdiPlus.cpp GDIPLUSIMAGESAVE correct by Alvarez
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com