change Color of MONTHCALENDAR ?

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 2117
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

change Color of MONTHCALENDAR ?

Post by AUGE_OHR »

hi,

i Want to change Color from MONTHCALENDAR. how under HMG
i found in c:\hmg.3.4.4\SOURCE\h_monthcal.prg

Code: Select all

FUNCTION SetMonthCalendarColor( cControlName, cParentName, nIndexColor, aRGBcolor )
so i try

Code: Select all

   SetProperty( "BigCalendar", "MONTHCALENDAR_1", "WIDTH", 600 )
   SetProperty( "BigCalendar", "MONTHCALENDAR_1", "HEIGHT", 600 )

   SetMonthCalendarColor("MONTHCALENDAR_1", "BigCalendar", MCSC_BACKGROUND   , BLACK)
   SetMonthCalendarColor("MONTHCALENDAR_1", "BigCalendar", MCSC_TEXT         , CYAN )
   SetMonthCalendarColor("MONTHCALENDAR_1", "BigCalendar", MCSC_TITLEBK      , BLACK)
   SetMonthCalendarColor("MONTHCALENDAR_1", "BigCalendar", MCSC_TITLETEXT    , CYAN )
   SetMonthCalendarColor("MONTHCALENDAR_1", "BigCalendar", MCSC_MONTHBK      , BLACK)
   SetMonthCalendarColor("MONTHCALENDAR_1", "BigCalendar", MCSC_TRAILINGTEXT , CYAN )
but it does not change Color :(
what i´m donin wrong ... need Idea :idea:
have fun
Jimmy
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: change Color of MONTHCALENDAR ?

Post by andyglezl »

Andrés González López
Desde Guadalajara, Jalisco. México.
Post Reply