Page 1 of 1

Tcalex : insert a bitmap

PostPosted: Mon Jan 20, 2020 6:12 pm
by Silvio.Falconi
I Need to insert Two bitmaps on each day on mounth view.
Can now how male It pls

Re: Tcalex : insert a bitmap

PostPosted: Sat Jan 25, 2020 10:21 am
by Silvio.Falconi
I need to insert a bitmap on this position sample :

Image

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

Image

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)

Re: Tcalex : insert a bitmap

PostPosted: Sat Jan 25, 2020 10:46 am
by Otto
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

Re: Tcalex : insert a bitmap

PostPosted: Sat Jan 25, 2020 10:52 am
by Silvio.Falconi
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

Re: Tcalex : insert a bitmap

PostPosted: Sat Jan 25, 2020 11:55 am
by Otto
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

Re: Tcalex : insert a bitmap

PostPosted: Sat Jan 25, 2020 12:14 pm
by Silvio.Falconi
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 :
Image

Re: Tcalex : insert a bitmap

PostPosted: Sat Jan 25, 2020 1:11 pm
by Otto
Silvio, where is the source code of Tcalex.
Best regards
Otto

Re: Tcalex : insert a bitmap

PostPosted: Sat Jan 25, 2020 4:32 pm
by Silvio.Falconi
Fwh sources