FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Tcalex : insert a bitmap
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Tcalex : insert a bitmap
Posted: Mon Jan 20, 2020 06:12 PM

I Need to insert Two bitmaps on each day on mounth view.
Can now how male It pls

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 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
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Tcalex : insert a bitmap
Posted: Sat Jan 25, 2020 10:21 AM
I need to insert a bitmap on this position sample :



I need this change because we do the differential collection for urban garbage and I wanted to insert the symbol linked to the day

Someone can help me please ?

Necesito este cambio porque hacemos la recolección diferencial para la basura urbana y quería insertar el símbolo vinculado al día


for a sample I tried to insert a text "Raccolta Carta" on header days
I not modified Tcalex.prg But I call an override



perhaps I can change it call a function to set the text for each day but my customer want a bitmap with the symbol of type of urban garbage ( generally are 4)
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 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
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: Tcalex : insert a bitmap
Posted: Sat Jan 25, 2020 10:46 AM

Hello Silvio,
same problem here: MO paper, Fr plastic and on We the rest of garbage. :-)
Do you have the icons ready.

In my software I use

   @ 0,0 ;

BUTTONBMP ;
PROMPT "FW" ;
BITMAP here my icon
with no ACTION.

Maybe you can try this.
Where in source are the dates painted..

Best regards
Otto

Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Tcalex : insert a bitmap
Posted: Sat Jan 25, 2020 10:52 AM
Otto wrote:Hello Silvio,
same problem here: MO paper, Fr plastic and on We the rest of garbage. :-)
Do you have the icons ready.

In my software I use

@ 0,0 ;
BUTTONBMP ;
PROMPT "FW" ;
BITMAP here my icon
with no ACTION.

Maybe you can try this.
Where in source are the dates painted..


Best regards
Otto


Otto I update my message
I wish insert the bitmap instead of the text on tcalex app
I Know How make a "BUTTONBMP" but this not is my problem, I asked another question
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 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
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: Tcalex : insert a bitmap
Posted: Sat Jan 25, 2020 11:55 AM

Silvio,
can you post the lines of TCalex where the date is painted.
And is the source of TCalex in the Fivewin samples.
Then I try what I suggested.
Best regards
Otto

Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Tcalex : insert a bitmap
Posted: Sat Jan 25, 2020 12:14 PM
class Tcalex
Method Paintcell

dNextDay = ::dStart + ( ( nRow - 1 ) * 7 ) + nCol - 1

I add
cTypeGarbage:= LoadGarbage( dNextDay )

this return me a text ( it load on my calendar archive and return me the type of garbage)

then I add this cTypeGarbage .....sample

cText = " " + Str( Day( dNextDay ), 2 ) +cTypeGarbage

sample :
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 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
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: Tcalex : insert a bitmap
Posted: Sat Jan 25, 2020 01:11 PM

Silvio, where is the source code of Tcalex.
Best regards
Otto

Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Tcalex : insert a bitmap
Posted: Sat Jan 25, 2020 04:32 PM

Fwh sources

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 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

Continue the discussion