Page 1 of 1

MONTHCALENDAR under HMG and MiniGUI.

Posted: Sat Oct 30, 2021 5:27 am
by AUGE_OHR
hi,

i use MONTHCALENDAR under HMG and MiniGUI.
after create i re-size to

Code: Select all

   SetProperty( "BigCalendar", "MONTHCALENDAR_1", "WIDTH", 600 )
   SetProperty( "BigCalendar", "MONTHCALENDAR_1", "HEIGHT", 600 )
CAL_Diff.JPG
CAL_Diff.JPG (158.09 KiB) Viewed 4235 times
using HMG i got 12 Month and with MiniGUI 9 Month :o
how can it be different :?:

p.s. both Image have same Size

---

under MiniGUI i can "set Color" to MONTHCALENDAR but how under HMG :idea:

Code: Select all

    hDPick := GetControlHandle( "MONTHCALENDAR_1", "BigCalendar" )
    SetMonthCalendarColor(hDPick, MCSC_BACKGROUND , BLACK)           // in SOURCE\h_monthcal.prg
    SendMessage( hDPick, MCM_SETCOLOR, MCSC_BACKGROUND , {56, 56, 56 })
but i get no Color :(

Re: MONTHCALENDAR under HMG and MiniGUI.

Posted: Sat Oct 30, 2021 1:11 pm
by srvet_claudio
Hi Jimmy,
Maybe:
SendMessage( hDPick, MCM_SETCOLOR, MCSC_BACKGROUND , RGB(56, 56, 56 ))

Re: MONTHCALENDAR under HMG and MiniGUI.

Posted: Sat Oct 30, 2021 11:41 pm
by AUGE_OHR
hi Claudio,
srvet_claudio wrote: Sat Oct 30, 2021 1:11 pm Maybe:
SendMessage( hDPick, MCM_SETCOLOR, MCSC_BACKGROUND , RGB(56, 56, 56 ))
Thx for Answer.
i have try it and it crash with "Application Internal Error"

p.s. i have "disable Theme" to get Color

Re: MONTHCALENDAR under HMG and MiniGUI.

Posted: Sun Oct 31, 2021 2:50 am
by AUGE_OHR
hi,

have made Sample to "show" Problem with HMG
TESTMCAL.ZIP
(1.16 KiB) Downloaded 100 times