Code: Select all
FOR nM := 1 TO 12
cM := str0(nM,2)
dDay := ctod('01.'+cM+"."+cYear)
FOR nD := 1 TO 31
aKolor := aKol(nD,cKld&cM)
IF month(dDay)==nM
oBtn1:=tBtnBmp():Redefine((nM*1000)+nD,,,,,,{|| msgInfo(KardSay(focused_button_id))},oDlg,,,,KardSay(focused_button_id),str(nD,2)+":"+aTab[dow(dDay)],oFont)
oBtn1:SetColor(aKolor[1],aKolor[2])
ENDIF
dDay++
NEXT
NEXT
aKol return different array of color fo every day of a weak
I wish display info by using tooltip and msgInfo. How can i get id number of focused btnBmp?
regards Eugeniusz