146:
Can I include the month's number in the date header

Dim oCalendar as P
Dim var_Appearance as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.BeginUpdate()
oCalendar.Appearance = 0
oCalendar.Template = "Background(8) = BackColor" // oCalendar.Background(8) = oCalendar.BackColor
oCalendar.FirstDay = 2
oCalendar.DrawGridLine = 0
oCalendar.WeekDays = "Su Mo Tu We Th Fr Sa"
oCalendar.MarkToday = .t.
oCalendar.AutoSize = 0
oCalendar.AlignmentDay = 1
oCalendar.FixedCellHeight = 32
oCalendar.FixedCellWidth = 32
oCalendar.DateHeaderFormat = "1,(\"\"[b=0],(\"\"[b=0]/24;2[b=0][bg=0x01000000]/\"\"[b=0]):24,\"\"[b=0]):32,(\"\"[b=0],(\"\"[b=0]/24;3[b=0][bg=0x01000000]/\"\"[b=0]):24,\"\"[b=0]):32"
oCalendar.Template = "DateHeaderField(1) = ```<c><%month%> (`` + (dateF(value) left 2) + ``) <r><off -6><font ;6><%year%>```" // oCalendar.DateHeaderField(1) = "`<c><%month%> (` + (dateF(value) left 2) + `) <r><off -6><font ;6><%year%>`"
var_Appearance = oCalendar.VisualAppearance
	var_Appearance.Add(1,"gBFLBCJwBAEHhEJAAEhABFgDg6AADACAxSDEMQBQKAAzQFAYbhgHCGAAGQaBUgmFgAQhFcZQSKUOQTDKMIziYBYfgkMIgSbJUgDGAkRRdDSOYIkWA5AiKEYoThCIxzTJ8aw3CKbYRAKCXfoUAJFP7Fc6ABJMBx3EyhZ89NDYEwTIKBahoehqIheEQyDSJNb2DCIahhMSEbKtCooDhGFpUWzLdxTJJVawHJoABjkS45PjEAJ+SBPUZVRRlFyfO7BKSjMKKXgkG4zABWVa1bC1FzxQ6mKykKQLQADDIDVZAeL3JTNCS5IyLLDtO77EqmZ5la7cUgRDj4AY7Ua+MzubBZaovOqDYzAey7TDWLRXFDNIzzTgQAyHHrETZHGqwJxMAEapYGqYpVi2HwzDuQ5oHKIQgggSSUGMOgdE4RhYDwJBVAwIQTH2UYhjQJBRAmZxuCEHZ3icJp5EgKxgAIVgCCQSQSEIBQkCAYhCAIJYKmKNIuFcTBIESPYEk6GBUm+BZOmOPgZgWYRTiYEwvEwaIEAAK4KnKOJrgmTpDjCbYJmKSI2CoOxihOLglCuAACioNg8COA4gmcOZOiidg+g+Dh4moOA8CMYokNmCoyiycQ8E8A4iE6D4OjOMgng8ZJjiITA8CSEouEcKwKkkLJyhQIoIkYU9LjORhcCsAAIACLQ8iaSJ6FKC5jJoaobA8KYoACCRKnmMJzhuDpZnSboMCKGJ4nMPIPDmYAACwKIDk6CoLCeU40m6I5oliMoKDyaICokLIpgoThviOKJoGYf4KmUKhMjMLJLCAAojCyaYoiYGoGmqM46CkOwPEoKonAACxKlSdItmiWBeBeDgrioNo3D0KxSlAAAtgsUpYnUPRPEoco8hCa+T40SxbBRj5tEsHJ1i6JhbGYS4ug8awelQLZAAKZI5C4DxrhYQ9ehmUppWiA48nAPRuFKYpiAAC47laZQ9iuKZSgOPotkuFI7C6C4gACPJAm8eQOhOQZoikDp3kCS5AACPoEk8fBGnqQgpDOSppD2TxjlyPZD6CfwekQTx5lKP5ImseZTCAL5MAMAAAkoTADmMLpIjISp+HSS4PgyMAADBzAHDSIoPCOUpWjObIKE8NJOHKIwPEaTprBsHpdjWLB9AieQ+DQYwQAAMR1EOZxWi+bx7HcWQ8msfRYnnDZQACRwxgwc5rGaMZPE0ZxqjWNZtgyRwAAyTZEnuXJzEyAx2kQcxNkye5cEy3cYAcANrGAIH4OAhx3gNGGPAfgIR8jBA4McBMARVhnH4HQOYmxuCpF2MsecEQVBvGQCcIQug6itGQBoARAQ=")
oCalendar.EndUpdate()

145:
How can I display the previously/next month in the date header

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.BeginUpdate()
oCalendar.Appearance = 0
oCalendar.Template = "Background(8) = BackColor" // oCalendar.Background(8) = oCalendar.BackColor
oCalendar.FirstDay = 2
oCalendar.MaxMonthX = 1
oCalendar.MaxMonthY = 1
oCalendar.DrawGridLine = 0
oCalendar.WeekDays = "Su Mo Tu We Th Fr Sa"
oCalendar.MarkToday = .t.
oCalendar.AutoSize = 0
oCalendar.AlignmentDay = 1
oCalendar.FixedCellHeight = 32
oCalendar.FixedCellWidth = 32
oCalendar.DateHeaderFormat = "2[b=0][bg=RGB(240,240,240)]:32,1,3[b=0][bg=RGB(240,240,240)]:32"
oCalendar.Template = "DateHeaderField(2) = ```<c>`` + ( ( ((0:=((month(value) - 1) - 1) ) < 0 ? 11 : =:0 ) array ``January February March April May June July August September October November December`` split `` `` ) left 3 ) `" // oCalendar.DateHeaderField(2) = "`<c>` + ( ( ((0:=((month(value) - 1) - 1) ) < 0 ? 11 : =:0 ) array `January February March April May June July August September October November December` split ` ` ) left 3 ) "
oCalendar.Template = "DateHeaderField(3) = ```<c>`` + ( ( ((0:=((month(value) - 1) + 1) ) = 12 ? 0 : =:0 ) array ``January February March April May June July August September October November December`` split `` `` ) left 3 ) `" // oCalendar.DateHeaderField(3) = "`<c>` + ( ( ((0:=((month(value) - 1) + 1) ) = 12 ? 0 : =:0 ) array `January February March April May June July August September October November December` split ` ` ) left 3 ) "
oCalendar.EndUpdate()

144:
How can I display the year to a different position

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.BeginUpdate()
oCalendar.Appearance = 0
oCalendar.Template = "Background(8) = BackColor" // oCalendar.Background(8) = oCalendar.BackColor
oCalendar.FirstDay = 2
oCalendar.MaxMonthX = 1
oCalendar.MaxMonthY = 1
oCalendar.DrawGridLine = 0
oCalendar.WeekDays = "Su Mo Tu We Th Fr Sa"
oCalendar.MarkToday = .t.
oCalendar.AutoSize = 0
oCalendar.AlignmentDay = 1
oCalendar.FixedCellHeight = 32
oCalendar.FixedCellWidth = 32
oCalendar.DateHeaderFormat = "6/(1,2[bg=RGB(196,196,196)]:32,3[bg=RGB(196,196,196)]:32)"
oCalendar.Template = "HTMLPicture(`up`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJZJJEIJUPDaMZkUAQGAOP4DRShOgvHIGQA0U5CbKzOIZYRIICzCaUX4PS4hRgEGg/QaKJLhGSESIIZoMfAMMIkKQzJxDDBJaCMaoQSABVhAXgQRBLRFdNhIB4QY4PfyUJB7AYAFo+DIWOb7LDdiIAJJFJxEVxCMCCgIA=`" // oCalendar.HTMLPicture("up") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJZJJEIJUPDaMZkUAQGAOP4DRShOgvHIGQA0U5CbKzOIZYRIICzCaUX4PS4hRgEGg/QaKJLhGSESIIZoMfAMMIkKQzJxDDBJaCMaoQSABVhAXgQRBLRFdNhIB4QY4PfyUJB7AYAFo+DIWOb7LDdiIAJJFJxEVxCMCCgIA="
oCalendar.Template = "HTMLPicture(`down`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIEM5BJpBhSxR4LfhhAsRKZJIhBKg4J7tRjJBIAEAMAjzWIJba0E5rWQcWaBAoFR7oK4HewRZCMPiMUDLXRoS4PfjCQJrEhdaJ5ET4YIvTgOJ5kFSTKpkFaTKLEFqTGxyFgTIyuMgCeJaPwDSIKEhlCT5ZoWFT4iIAJJFJxEVxCMCCgIA=`" // oCalendar.HTMLPicture("down") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIEM5BJpBhSxR4LfhhAsRKZJIhBKg4J7tRjJBIAEAMAjzWIJba0E5rWQcWaBAoFR7oK4HewRZCMPiMUDLXRoS4PfjCQJrEhdaJ5ET4YIvTgOJ5kFSTKpkFaTKLEFqTGxyFgTIyuMgCeJaPwDSIKEhlCT5ZoWFT4iIAJJFJxEVxCMCCgIA="
oCalendar.Template = "DateHeaderField(2) = `<c><img>up</img>`" // oCalendar.DateHeaderField(2) = "<c><img>up</img>"
oCalendar.Template = "DateHeaderField(3) = `<c><img>down</img>`" // oCalendar.DateHeaderField(3) = "<c><img>down</img>"
oCalendar.Template = "DateHeaderField(1) = `<c><%month%>`" // oCalendar.DateHeaderField(1) = "<c><%month%>"
oCalendar.Template = "DateHeaderField(6) = `<r><b><%year%>`" // oCalendar.DateHeaderField(6 'exHeaderPrevYear + exHeaderPrevMonth) = "<r><b><%year%>"
oCalendar.EndUpdate()

143:
Can I display some extra text/caption on the month's header

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.BeginUpdate()
oCalendar.Appearance = 0
oCalendar.Template = "Background(8) = BackColor" // oCalendar.Background(8) = oCalendar.BackColor
oCalendar.FirstDay = 2
oCalendar.MaxMonthX = 1
oCalendar.MaxMonthY = 1
oCalendar.DrawGridLine = 0
oCalendar.WeekDays = "Su Mo Tu We Th Fr Sa"
oCalendar.MarkToday = .t.
oCalendar.AutoSize = 0
oCalendar.AlignmentDay = 1
oCalendar.FixedCellHeight = 32
oCalendar.FixedCellWidth = 32
oCalendar.DateHeaderFormat = "(\"<sha ;;0>calendar\"[a=17]/1),2:32,3:32"
oCalendar.Template = "HTMLPicture(`up`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJZJJEIJUPDaMZkUAQGAOP4DRShOgvHIGQA0U5CbKzOIZYRIICzCaUX4PS4hRgEGg/QaKJLhGSESIIZoMfAMMIkKQzJxDDBJaCMaoQSABVhAXgQRBLRFdNhIB4QY4PfyUJB7AYAFo+DIWOb7LDdiIAJJFJxEVxCMCCgIA=`" // oCalendar.HTMLPicture("up") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJZJJEIJUPDaMZkUAQGAOP4DRShOgvHIGQA0U5CbKzOIZYRIICzCaUX4PS4hRgEGg/QaKJLhGSESIIZoMfAMMIkKQzJxDDBJaCMaoQSABVhAXgQRBLRFdNhIB4QY4PfyUJB7AYAFo+DIWOb7LDdiIAJJFJxEVxCMCCgIA="
oCalendar.Template = "HTMLPicture(`down`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIEM5BJpBhSxR4LfhhAsRKZJIhBKg4J7tRjJBIAEAMAjzWIJba0E5rWQcWaBAoFR7oK4HewRZCMPiMUDLXRoS4PfjCQJrEhdaJ5ET4YIvTgOJ5kFSTKpkFaTKLEFqTGxyFgTIyuMgCeJaPwDSIKEhlCT5ZoWFT4iIAJJFJxEVxCMCCgIA=`" // oCalendar.HTMLPicture("down") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIEM5BJpBhSxR4LfhhAsRKZJIhBKg4J7tRjJBIAEAMAjzWIJba0E5rWQcWaBAoFR7oK4HewRZCMPiMUDLXRoS4PfjCQJrEhdaJ5ET4YIvTgOJ5kFSTKpkFaTKLEFqTGxyFgTIyuMgCeJaPwDSIKEhlCT5ZoWFT4iIAJJFJxEVxCMCCgIA="
oCalendar.Template = "DateHeaderField(2) = `<c><img>up</img>`" // oCalendar.DateHeaderField(2) = "<c><img>up</img>"
oCalendar.Template = "DateHeaderField(3) = `<c><img>down</img>`" // oCalendar.DateHeaderField(3) = "<c><img>down</img>"
oCalendar.Template = "DateHeaderField(1) = `<c><b><%month%>`" // oCalendar.DateHeaderField(1) = "<c><b><%month%>"
oCalendar.EndUpdate()

142:
How can I display no year on th month's header

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.BeginUpdate()
oCalendar.Appearance = 0
oCalendar.Template = "Background(8) = BackColor" // oCalendar.Background(8) = oCalendar.BackColor
oCalendar.FirstDay = 2
oCalendar.MaxMonthX = 2
oCalendar.MaxMonthY = 2
oCalendar.DrawGridLine = 0
oCalendar.WeekDays = "Su Mo Tu We Th Fr Sa"
oCalendar.MarkToday = .t.
oCalendar.AutoSize = 0
oCalendar.AlignmentDay = 1
oCalendar.FixedCellHeight = 32
oCalendar.FixedCellWidth = 32
oCalendar.DateHeaderFormat = "1,2:32,3:32"
oCalendar.Template = "HTMLPicture(`up`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJZJJEIJUPDaMZkUAQGAOP4DRShOgvHIGQA0U5CbKzOIZYRIICzCaUX4PS4hRgEGg/QaKJLhGSESIIZoMfAMMIkKQzJxDDBJaCMaoQSABVhAXgQRBLRFdNhIB4QY4PfyUJB7AYAFo+DIWOb7LDdiIAJJFJxEVxCMCCgIA=`" // oCalendar.HTMLPicture("up") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJZJJEIJUPDaMZkUAQGAOP4DRShOgvHIGQA0U5CbKzOIZYRIICzCaUX4PS4hRgEGg/QaKJLhGSESIIZoMfAMMIkKQzJxDDBJaCMaoQSABVhAXgQRBLRFdNhIB4QY4PfyUJB7AYAFo+DIWOb7LDdiIAJJFJxEVxCMCCgIA="
oCalendar.Template = "HTMLPicture(`down`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIEM5BJpBhSxR4LfhhAsRKZJIhBKg4J7tRjJBIAEAMAjzWIJba0E5rWQcWaBAoFR7oK4HewRZCMPiMUDLXRoS4PfjCQJrEhdaJ5ET4YIvTgOJ5kFSTKpkFaTKLEFqTGxyFgTIyuMgCeJaPwDSIKEhlCT5ZoWFT4iIAJJFJxEVxCMCCgIA=`" // oCalendar.HTMLPicture("down") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIEM5BJpBhSxR4LfhhAsRKZJIhBKg4J7tRjJBIAEAMAjzWIJba0E5rWQcWaBAoFR7oK4HewRZCMPiMUDLXRoS4PfjCQJrEhdaJ5ET4YIvTgOJ5kFSTKpkFaTKLEFqTGxyFgTIyuMgCeJaPwDSIKEhlCT5ZoWFT4iIAJJFJxEVxCMCCgIA="
oCalendar.Template = "DateHeaderField(2) = `<c><img>up</img>`" // oCalendar.DateHeaderField(2) = "<c><img>up</img>"
oCalendar.Template = "DateHeaderField(3) = `<c><img>down</img>`" // oCalendar.DateHeaderField(3) = "<c><img>down</img>"
oCalendar.Template = "DateHeaderField(1) = `<c><b><%month%>`" // oCalendar.DateHeaderField(1) = "<c><b><%month%>"
oCalendar.EndUpdate()

141:
How can I arrange the month's header ( first and last month only, prev month, next, prev year, picture, ebn, expression)

Dim oCalendar as P
Dim var_Appearance as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.BeginUpdate()
oCalendar.Appearance = 0
oCalendar.Template = "Background(8) = BackColor" // oCalendar.Background(8) = oCalendar.BackColor
oCalendar.FirstDay = 2
oCalendar.MaxMonthX = 2
oCalendar.MaxMonthY = 2
oCalendar.DrawGridLine = 0
oCalendar.WeekDays = "Su Mo Tu We Th Fr Sa"
oCalendar.MarkToday = .t.
oCalendar.AutoSize = 0
oCalendar.AlignmentDay = 1
oCalendar.FixedCellHeight = 32
oCalendar.FixedCellWidth = 32
oCalendar.DateHeaderFormat = " (( xmax * ymax ) = 1 ) ? `2[b=0][bg=0x01000000]:32,1,3[b=0][bg=0x01000000]:32` : ( ( x = 0 and y = 0 ) ? `2[b=0][bg=0x01000000]:32,1`: ( ( x = xmax - 1 and y = ymax - 1 ) ? `1,3[b=0][bg=0x01000000]:32`: `1` ) )"
oCalendar.Template = "DateHeaderField(1) = ` ( ( ( month(value) = month(date(````) ) and ( year(value) = year(date(````) ) ) ) ) ? ``<b><fgcolor=0000FF>`` : ```` ) + ``<c><%month%></b> <off -6><font ;7><%year%>```" // oCalendar.DateHeaderField(1) = " ( ( ( month(value) = month(date(``) ) and ( year(value) = year(date(``) ) ) ) ) ? `<b><fgcolor=0000FF>` : `` ) + `<c><%month%></b> <off -6><font ;7><%year%>`"
oCalendar.Template = "HTMLPicture(`up`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJZJJEIJUPDaMZkUAQGAOP4DRShOgvHIGQA0U5CbKzOIZYRIICzCaUX4PS4hRgEGg/QaKJLhGSESIIZoMfAMMIkKQzJxDDBJaCMaoQSABVhAXgQRBLRFdNhIB4QY4PfyUJB7AYAFo+DIWOb7LDdiIAJJFJxEVxCMCCgIA=`" // oCalendar.HTMLPicture("up") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJZJJEIJUPDaMZkUAQGAOP4DRShOgvHIGQA0U5CbKzOIZYRIICzCaUX4PS4hRgEGg/QaKJLhGSESIIZoMfAMMIkKQzJxDDBJaCMaoQSABVhAXgQRBLRFdNhIB4QY4PfyUJB7AYAFo+DIWOb7LDdiIAJJFJxEVxCMCCgIA="
oCalendar.Template = "HTMLPicture(`down`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIEM5BJpBhSxR4LfhhAsRKZJIhBKg4J7tRjJBIAEAMAjzWIJba0E5rWQcWaBAoFR7oK4HewRZCMPiMUDLXRoS4PfjCQJrEhdaJ5ET4YIvTgOJ5kFSTKpkFaTKLEFqTGxyFgTIyuMgCeJaPwDSIKEhlCT5ZoWFT4iIAJJFJxEVxCMCCgIA=`" // oCalendar.HTMLPicture("down") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIEM5BJpBhSxR4LfhhAsRKZJIhBKg4J7tRjJBIAEAMAjzWIJba0E5rWQcWaBAoFR7oK4HewRZCMPiMUDLXRoS4PfjCQJrEhdaJ5ET4YIvTgOJ5kFSTKpkFaTKLEFqTGxyFgTIyuMgCeJaPwDSIKEhlCT5ZoWFT4iIAJJFJxEVxCMCCgIA="
oCalendar.Template = "HTMLPicture(`left`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJUJJEIJUPDaMZkEANWACeJvMgBIwSGgXAaxGIQI6RMYAJBzFQQHYBeIzKQNYCpTIYAbwNQmMgAILNfAMEBKGYuAaIaxMGYDFD2ARVASRNBDNCeSAIDRCW7MAgDDDZDIAKbADgRVrfUCNiIAJJFJxEVxCMCCgI`" // oCalendar.HTMLPicture("left") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJUJJEIJUPDaMZkEANWACeJvMgBIwSGgXAaxGIQI6RMYAJBzFQQHYBeIzKQNYCpTIYAbwNQmMgAILNfAMEBKGYuAaIaxMGYDFD2ARVASRNBDNCeSAIDRCW7MAgDDDZDIAKbADgRVrfUCNiIAJJFJxEVxCMCCgI"
oCalendar.Template = "HTMLPicture(`right`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIBOZSI5CACuZwcdMRAhnIJNIMKWKPBb8MIFiIJOBILJzhQOYc7YYBY5vVBkiJEJJEIJUHBPMbAARYUI0KKADJKEaDEpAVgAYjHYI8GSACgQb4AcRiGCPJgwNQIEzANIICaUUwpUDIBYjKIzBAsAZiWQ1QYABLZTKBAIATL2CUxXJdV8RABJIpOIiuIRgQUBA=`" // oCalendar.HTMLPicture("right") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIBOZSI5CACuZwcdMRAhnIJNIMKWKPBb8MIFiIJOBILJzhQOYc7YYBY5vVBkiJEJJEIJUHBPMbAARYUI0KKADJKEaDEpAVgAYjHYI8GSACgQb4AcRiGCPJgwNQIEzANIICaUUwpUDIBYjKIzBAsAZiWQ1QYABLZTKBAIATL2CUxXJdV8RABJIpOIiuIRgQUBA="
oCalendar.Template = "DateHeaderField(2) = `<c><img>up</img>`" // oCalendar.DateHeaderField(2) = "<c><img>up</img>"
oCalendar.Template = "DateHeaderField(3) = `<c><img>down</img>`" // oCalendar.DateHeaderField(3) = "<c><img>down</img>"
oCalendar.Template = "DateHeaderField(4) = `<c><img>left</img>`" // oCalendar.DateHeaderField(4) = "<c><img>left</img>"
oCalendar.Template = "DateHeaderField(5) = `<c><img>right</img>`" // oCalendar.DateHeaderField(5) = "<c><img>right</img>"
var_Appearance = oCalendar.VisualAppearance
	var_Appearance.Add(1,"gBFLBCJwBAEHhEJAAEhABFgDg6AADACAxSDEMQBQKAAzQFAYbhgHCGAAGQaBUgmFgAQhFcZQSKUOQTDKMIziYBYfgkMIgSbJUgDGAkRRdDSOYIkWA5AiKEYoThCIxzTJ8aw3CKbYRAKCXfoUAJFP7Fc6ABJMBx3EyhZ89NDYEwTIKBahoehqIheEQyDSJNb2DCIahhMSEbKtCooDhGFpUWzLdxTJJVawHJoABjkS45PjEAJ+SBPUZVRRlFyfO7BKSjMKKXgkG4zABWVa1bC1FzxQ6mKykKQLQADDIDVZAeL3JTNCS5IyLLDtO77EqmZ5la7cUgRDj4AY7Ua+MzubBZaovOqDYzAey7TDWLRXFDNIzzTgQAyHHrETZHGqwJxMAEapYGqYpVi2HwzDuQ5oHKIQgggSSUGMOgdE4RhYDwJBVAwIQTH2UYhjQJBRAmZxuCEHZ3icJp5EgKxgAIVgCCQSQSEIBQkCAYhCAIJYKmKNIuFcTBIESPYEk6GBUm+BZOmOPgZgWYRTiYEwvEwaIEAAK4KnKOJrgmTpDjCbYJmKSI2CoOxihOLglCuAACioNg8COA4gmcOZOiidg+g+Dh4moOA8CMYokNmCoyiycQ8E8A4iE6D4OjOMgng8ZJjiITA8CSEouEcKwKkkLJyhQIoIkYU9LjORhcCsAAIACLQ8iaSJ6FKC5jJoaobA8KYoACCRKnmMJzhuDpZnSboMCKGJ4nMPIPDmYAACwKIDk6CoLCeU40m6I5oliMoKDyaICokLIpgoThviOKJoGYf4KmUKhMjMLJLCAAojCyaYoiYGoGmqM46CkOwPEoKonAACxKlSdItmiWBeBeDgrioNo3D0KxSlAAAtgsUpYnUPRPEoco8hCa+T40SxbBRj5tEsHJ1i6JhbGYS4ug8awelQLZAAKZI5C4DxrhYQ9ehmUppWiA48nAPRuFKYpiAAC47laZQ9iuKZSgOPotkuFI7C6C4gACPJAm8eQOhOQZoikDp3kCS5AACPoEk8fBGnqQgpDOSppD2TxjlyPZD6CfwekQTx5lKP5ImseZTCAL5MAMAAAkoTADmMLpIjISp+HSS4PgyMAADBzAHDSIoPCOUpWjObIKE8NJOHKIwPEaTprBsHpdjWLB9AieQ+DQYwQAAMR1EOZxWi+bx7HcWQ8msfRYnnDZQACRwxgwc5rGaMZPE0ZxqjWNZtgyRwAAyTZEnuXJzEyAx2kQcxNkye5cEy3cYAcANrGAIH4OAhx3gNGGPAfgIR8jBA4McBMARVhnH4HQOYmxuCpF2MsecEQVBvGQCcIQug6itGQBoARAQ=")
oCalendar.EndUpdate()

140:
How can I arrange the month's header ( first month only, prev month, next, prev year, picture, ebn, expression)

Dim oCalendar as P
Dim var_Appearance as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.BeginUpdate()
oCalendar.Appearance = 0
oCalendar.Template = "Background(8) = BackColor" // oCalendar.Background(8) = oCalendar.BackColor
oCalendar.FirstDay = 2
oCalendar.MaxMonthX = 2
oCalendar.MaxMonthY = 2
oCalendar.DrawGridLine = 0
oCalendar.WeekDays = "Su Mo Tu We Th Fr Sa"
oCalendar.MarkToday = .t.
oCalendar.AutoSize = 0
oCalendar.AlignmentDay = 1
oCalendar.FixedCellHeight = 32
oCalendar.FixedCellWidth = 32
oCalendar.DateHeaderFormat = "( x = 0 and y = 0 ) ? `(2[b=0][bg=0x01000000]/3[b=0][bg=0x01000000]):32,1`: `1`"
oCalendar.Template = "DateHeaderField(1) = ` ( ( ( month(value) = month(date(````) ) and ( year(value) = year(date(````) ) ) ) ) ? ``<b><fgcolor=0000FF>`` : ```` ) + ``<c><%month%> <%year%>```" // oCalendar.DateHeaderField(1) = " ( ( ( month(value) = month(date(``) ) and ( year(value) = year(date(``) ) ) ) ) ? `<b><fgcolor=0000FF>` : `` ) + `<c><%month%> <%year%>`"
oCalendar.Template = "HTMLPicture(`up`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJZJJEIJUPDaMZkUAQGAOP4DRShOgvHIGQA0U5CbKzOIZYRIICzCaUX4PS4hRgEGg/QaKJLhGSESIIZoMfAMMIkKQzJxDDBJaCMaoQSABVhAXgQRBLRFdNhIB4QY4PfyUJB7AYAFo+DIWOb7LDdiIAJJFJxEVxCMCCgIA=`" // oCalendar.HTMLPicture("up") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJZJJEIJUPDaMZkUAQGAOP4DRShOgvHIGQA0U5CbKzOIZYRIICzCaUX4PS4hRgEGg/QaKJLhGSESIIZoMfAMMIkKQzJxDDBJaCMaoQSABVhAXgQRBLRFdNhIB4QY4PfyUJB7AYAFo+DIWOb7LDdiIAJJFJxEVxCMCCgIA="
oCalendar.Template = "HTMLPicture(`down`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIEM5BJpBhSxR4LfhhAsRKZJIhBKg4J7tRjJBIAEAMAjzWIJba0E5rWQcWaBAoFR7oK4HewRZCMPiMUDLXRoS4PfjCQJrEhdaJ5ET4YIvTgOJ5kFSTKpkFaTKLEFqTGxyFgTIyuMgCeJaPwDSIKEhlCT5ZoWFT4iIAJJFJxEVxCMCCgIA=`" // oCalendar.HTMLPicture("down") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIEM5BJpBhSxR4LfhhAsRKZJIhBKg4J7tRjJBIAEAMAjzWIJba0E5rWQcWaBAoFR7oK4HewRZCMPiMUDLXRoS4PfjCQJrEhdaJ5ET4YIvTgOJ5kFSTKpkFaTKLEFqTGxyFgTIyuMgCeJaPwDSIKEhlCT5ZoWFT4iIAJJFJxEVxCMCCgIA="
oCalendar.Template = "HTMLPicture(`left`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJUJJEIJUPDaMZkEANWACeJvMgBIwSGgXAaxGIQI6RMYAJBzFQQHYBeIzKQNYCpTIYAbwNQmMgAILNfAMEBKGYuAaIaxMGYDFD2ARVASRNBDNCeSAIDRCW7MAgDDDZDIAKbADgRVrfUCNiIAJJFJxEVxCMCCgI`" // oCalendar.HTMLPicture("left") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJUJJEIJUPDaMZkEANWACeJvMgBIwSGgXAaxGIQI6RMYAJBzFQQHYBeIzKQNYCpTIYAbwNQmMgAILNfAMEBKGYuAaIaxMGYDFD2ARVASRNBDNCeSAIDRCW7MAgDDDZDIAKbADgRVrfUCNiIAJJFJxEVxCMCCgI"
oCalendar.Template = "HTMLPicture(`right`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIBOZSI5CACuZwcdMRAhnIJNIMKWKPBb8MIFiIJOBILJzhQOYc7YYBY5vVBkiJEJJEIJUHBPMbAARYUI0KKADJKEaDEpAVgAYjHYI8GSACgQb4AcRiGCPJgwNQIEzANIICaUUwpUDIBYjKIzBAsAZiWQ1QYABLZTKBAIATL2CUxXJdV8RABJIpOIiuIRgQUBA=`" // oCalendar.HTMLPicture("right") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIBOZSI5CACuZwcdMRAhnIJNIMKWKPBb8MIFiIJOBILJzhQOYc7YYBY5vVBkiJEJJEIJUHBPMbAARYUI0KKADJKEaDEpAVgAYjHYI8GSACgQb4AcRiGCPJgwNQIEzANIICaUUwpUDIBYjKIzBAsAZiWQ1QYABLZTKBAIATL2CUxXJdV8RABJIpOIiuIRgQUBA="
oCalendar.Template = "DateHeaderField(2) = `<c><img>up</img>`" // oCalendar.DateHeaderField(2) = "<c><img>up</img>"
oCalendar.Template = "DateHeaderField(3) = `<c><img>down</img>`" // oCalendar.DateHeaderField(3) = "<c><img>down</img>"
oCalendar.Template = "DateHeaderField(4) = `<c><img>left</img>`" // oCalendar.DateHeaderField(4) = "<c><img>left</img>"
oCalendar.Template = "DateHeaderField(5) = `<c><img>right</img>`" // oCalendar.DateHeaderField(5) = "<c><img>right</img>"
var_Appearance = oCalendar.VisualAppearance
	var_Appearance.Add(1,"gBFLBCJwBAEHhEJAAEhABFgDg6AADACAxSDEMQBQKAAzQFAYbhgHCGAAGQaBUgmFgAQhFcZQSKUOQTDKMIziYBYfgkMIgSbJUgDGAkRRdDSOYIkWA5AiKEYoThCIxzTJ8aw3CKbYRAKCXfoUAJFP7Fc6ABJMBx3EyhZ89NDYEwTIKBahoehqIheEQyDSJNb2DCIahhMSEbKtCooDhGFpUWzLdxTJJVawHJoABjkS45PjEAJ+SBPUZVRRlFyfO7BKSjMKKXgkG4zABWVa1bC1FzxQ6mKykKQLQADDIDVZAeL3JTNCS5IyLLDtO77EqmZ5la7cUgRDj4AY7Ua+MzubBZaovOqDYzAey7TDWLRXFDNIzzTgQAyHHrETZHGqwJxMAEapYGqYpVi2HwzDuQ5oHKIQgggSSUGMOgdE4RhYDwJBVAwIQTH2UYhjQJBRAmZxuCEHZ3icJp5EgKxgAIVgCCQSQSEIBQkCAYhCAIJYKmKNIuFcTBIESPYEk6GBUm+BZOmOPgZgWYRTiYEwvEwaIEAAK4KnKOJrgmTpDjCbYJmKSI2CoOxihOLglCuAACioNg8COA4gmcOZOiidg+g+Dh4moOA8CMYokNmCoyiycQ8E8A4iE6D4OjOMgng8ZJjiITA8CSEouEcKwKkkLJyhQIoIkYU9LjORhcCsAAIACLQ8iaSJ6FKC5jJoaobA8KYoACCRKnmMJzhuDpZnSboMCKGJ4nMPIPDmYAACwKIDk6CoLCeU40m6I5oliMoKDyaICokLIpgoThviOKJoGYf4KmUKhMjMLJLCAAojCyaYoiYGoGmqM46CkOwPEoKonAACxKlSdItmiWBeBeDgrioNo3D0KxSlAAAtgsUpYnUPRPEoco8hCa+T40SxbBRj5tEsHJ1i6JhbGYS4ug8awelQLZAAKZI5C4DxrhYQ9ehmUppWiA48nAPRuFKYpiAAC47laZQ9iuKZSgOPotkuFI7C6C4gACPJAm8eQOhOQZoikDp3kCS5AACPoEk8fBGnqQgpDOSppD2TxjlyPZD6CfwekQTx5lKP5ImseZTCAL5MAMAAAkoTADmMLpIjISp+HSS4PgyMAADBzAHDSIoPCOUpWjObIKE8NJOHKIwPEaTprBsHpdjWLB9AieQ+DQYwQAAMR1EOZxWi+bx7HcWQ8msfRYnnDZQACRwxgwc5rGaMZPE0ZxqjWNZtgyRwAAyTZEnuXJzEyAx2kQcxNkye5cEy3cYAcANrGAIH4OAhx3gNGGPAfgIR8jBA4McBMARVhnH4HQOYmxuCpF2MsecEQVBvGQCcIQug6itGQBoARAQ=")
oCalendar.EndUpdate()

139:
How can I arrange the month's header ( all, left, right, prev month, next, prev year, picture, ebn)

Dim oCalendar as P
Dim var_Appearance as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.BeginUpdate()
oCalendar.Appearance = 0
oCalendar.Template = "Background(8) = BackColor" // oCalendar.Background(8) = oCalendar.BackColor
oCalendar.FirstDay = 2
oCalendar.MaxMonthX = 2
oCalendar.MaxMonthY = 2
oCalendar.DrawGridLine = 0
oCalendar.WeekDays = "Su Mo Tu We Th Fr Sa"
oCalendar.MarkToday = .t.
oCalendar.AutoSize = 0
oCalendar.AlignmentDay = 1
oCalendar.FixedCellHeight = 32
oCalendar.FixedCellWidth = 32
oCalendar.DateHeaderFormat = "(2[b=0][bg=0x01000000]/4[b=0][bg=0x01000000]):32,1,(3[b=0][bg=0x01000000]/5[b=0][bg=0x01000000]):32"
oCalendar.Template = "DateHeaderField(1) = ` ( ( ( month(value) = month(date(````) ) and ( year(value) = year(date(````) ) ) ) ) ? ``<b><fgcolor=0000FF>`` : ```` ) + ``<c><%month%> <%year%>```" // oCalendar.DateHeaderField(1) = " ( ( ( month(value) = month(date(``) ) and ( year(value) = year(date(``) ) ) ) ) ? `<b><fgcolor=0000FF>` : `` ) + `<c><%month%> <%year%>`"
oCalendar.Template = "HTMLPicture(`up`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJZJJEIJUPDaMZkUAQGAOP4DRShOgvHIGQA0U5CbKzOIZYRIICzCaUX4PS4hRgEGg/QaKJLhGSESIIZoMfAMMIkKQzJxDDBJaCMaoQSABVhAXgQRBLRFdNhIB4QY4PfyUJB7AYAFo+DIWOb7LDdiIAJJFJxEVxCMCCgIA=`" // oCalendar.HTMLPicture("up") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJZJJEIJUPDaMZkUAQGAOP4DRShOgvHIGQA0U5CbKzOIZYRIICzCaUX4PS4hRgEGg/QaKJLhGSESIIZoMfAMMIkKQzJxDDBJaCMaoQSABVhAXgQRBLRFdNhIB4QY4PfyUJB7AYAFo+DIWOb7LDdiIAJJFJxEVxCMCCgIA="
oCalendar.Template = "HTMLPicture(`down`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIEM5BJpBhSxR4LfhhAsRKZJIhBKg4J7tRjJBIAEAMAjzWIJba0E5rWQcWaBAoFR7oK4HewRZCMPiMUDLXRoS4PfjCQJrEhdaJ5ET4YIvTgOJ5kFSTKpkFaTKLEFqTGxyFgTIyuMgCeJaPwDSIKEhlCT5ZoWFT4iIAJJFJxEVxCMCCgIA=`" // oCalendar.HTMLPicture("down") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIEM5BJpBhSxR4LfhhAsRKZJIhBKg4J7tRjJBIAEAMAjzWIJba0E5rWQcWaBAoFR7oK4HewRZCMPiMUDLXRoS4PfjCQJrEhdaJ5ET4YIvTgOJ5kFSTKpkFaTKLEFqTGxyFgTIyuMgCeJaPwDSIKEhlCT5ZoWFT4iIAJJFJxEVxCMCCgIA="
oCalendar.Template = "HTMLPicture(`left`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJUJJEIJUPDaMZkEANWACeJvMgBIwSGgXAaxGIQI6RMYAJBzFQQHYBeIzKQNYCpTIYAbwNQmMgAILNfAMEBKGYuAaIaxMGYDFD2ARVASRNBDNCeSAIDRCW7MAgDDDZDIAKbADgRVrfUCNiIAJJFJxEVxCMCCgI`" // oCalendar.HTMLPicture("left") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJUJJEIJUPDaMZkEANWACeJvMgBIwSGgXAaxGIQI6RMYAJBzFQQHYBeIzKQNYCpTIYAbwNQmMgAILNfAMEBKGYuAaIaxMGYDFD2ARVASRNBDNCeSAIDRCW7MAgDDDZDIAKbADgRVrfUCNiIAJJFJxEVxCMCCgI"
oCalendar.Template = "HTMLPicture(`right`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIBOZSI5CACuZwcdMRAhnIJNIMKWKPBb8MIFiIJOBILJzhQOYc7YYBY5vVBkiJEJJEIJUHBPMbAARYUI0KKADJKEaDEpAVgAYjHYI8GSACgQb4AcRiGCPJgwNQIEzANIICaUUwpUDIBYjKIzBAsAZiWQ1QYABLZTKBAIATL2CUxXJdV8RABJIpOIiuIRgQUBA=`" // oCalendar.HTMLPicture("right") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIBOZSI5CACuZwcdMRAhnIJNIMKWKPBb8MIFiIJOBILJzhQOYc7YYBY5vVBkiJEJJEIJUHBPMbAARYUI0KKADJKEaDEpAVgAYjHYI8GSACgQb4AcRiGCPJgwNQIEzANIICaUUwpUDIBYjKIzBAsAZiWQ1QYABLZTKBAIATL2CUxXJdV8RABJIpOIiuIRgQUBA="
oCalendar.Template = "DateHeaderField(2) = `<c><img>up</img>`" // oCalendar.DateHeaderField(2) = "<c><img>up</img>"
oCalendar.Template = "DateHeaderField(3) = `<c><img>down</img>`" // oCalendar.DateHeaderField(3) = "<c><img>down</img>"
oCalendar.Template = "DateHeaderField(4) = `<c><img>left</img>`" // oCalendar.DateHeaderField(4) = "<c><img>left</img>"
oCalendar.Template = "DateHeaderField(5) = `<c><img>right</img>`" // oCalendar.DateHeaderField(5) = "<c><img>right</img>"
var_Appearance = oCalendar.VisualAppearance
	var_Appearance.Add(1,"gBFLBCJwBAEHhEJAAEhABFgDg6AADACAxSDEMQBQKAAzQFAYbhgHCGAAGQaBUgmFgAQhFcZQSKUOQTDKMIziYBYfgkMIgSbJUgDGAkRRdDSOYIkWA5AiKEYoThCIxzTJ8aw3CKbYRAKCXfoUAJFP7Fc6ABJMBx3EyhZ89NDYEwTIKBahoehqIheEQyDSJNb2DCIahhMSEbKtCooDhGFpUWzLdxTJJVawHJoABjkS45PjEAJ+SBPUZVRRlFyfO7BKSjMKKXgkG4zABWVa1bC1FzxQ6mKykKQLQADDIDVZAeL3JTNCS5IyLLDtO77EqmZ5la7cUgRDj4AY7Ua+MzubBZaovOqDYzAey7TDWLRXFDNIzzTgQAyHHrETZHGqwJxMAEapYGqYpVi2HwzDuQ5oHKIQgggSSUGMOgdE4RhYDwJBVAwIQTH2UYhjQJBRAmZxuCEHZ3icJp5EgKxgAIVgCCQSQSEIBQkCAYhCAIJYKmKNIuFcTBIESPYEk6GBUm+BZOmOPgZgWYRTiYEwvEwaIEAAK4KnKOJrgmTpDjCbYJmKSI2CoOxihOLglCuAACioNg8COA4gmcOZOiidg+g+Dh4moOA8CMYokNmCoyiycQ8E8A4iE6D4OjOMgng8ZJjiITA8CSEouEcKwKkkLJyhQIoIkYU9LjORhcCsAAIACLQ8iaSJ6FKC5jJoaobA8KYoACCRKnmMJzhuDpZnSboMCKGJ4nMPIPDmYAACwKIDk6CoLCeU40m6I5oliMoKDyaICokLIpgoThviOKJoGYf4KmUKhMjMLJLCAAojCyaYoiYGoGmqM46CkOwPEoKonAACxKlSdItmiWBeBeDgrioNo3D0KxSlAAAtgsUpYnUPRPEoco8hCa+T40SxbBRj5tEsHJ1i6JhbGYS4ug8awelQLZAAKZI5C4DxrhYQ9ehmUppWiA48nAPRuFKYpiAAC47laZQ9iuKZSgOPotkuFI7C6C4gACPJAm8eQOhOQZoikDp3kCS5AACPoEk8fBGnqQgpDOSppD2TxjlyPZD6CfwekQTx5lKP5ImseZTCAL5MAMAAAkoTADmMLpIjISp+HSS4PgyMAADBzAHDSIoPCOUpWjObIKE8NJOHKIwPEaTprBsHpdjWLB9AieQ+DQYwQAAMR1EOZxWi+bx7HcWQ8msfRYnnDZQACRwxgwc5rGaMZPE0ZxqjWNZtgyRwAAyTZEnuXJzEyAx2kQcxNkye5cEy3cYAcANrGAIH4OAhx3gNGGPAfgIR8jBA4McBMARVhnH4HQOYmxuCpF2MsecEQVBvGQCcIQug6itGQBoARAQ=")
oCalendar.EndUpdate()

138:
How can I arrange the month's header ( all, left, right, prev month, next, prev year, picture, ebn)

Dim oCalendar as P
Dim var_Appearance as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.BeginUpdate()
oCalendar.Appearance = 0
oCalendar.Template = "Background(8) = BackColor" // oCalendar.Background(8) = oCalendar.BackColor
oCalendar.FirstDay = 2
oCalendar.MaxMonthX = 2
oCalendar.MaxMonthY = 2
oCalendar.DrawGridLine = 0
oCalendar.WeekDays = "Su Mo Tu We Th Fr Sa"
oCalendar.MarkToday = .t.
oCalendar.AutoSize = 0
oCalendar.AlignmentDay = 1
oCalendar.FixedCellHeight = 32
oCalendar.FixedCellWidth = 32
oCalendar.DateHeaderFormat = "2[b=0][bg=0x01000000]:32,3[b=0][bg=0x01000000]:32,1,4[b=0][bg=0x01000000]:32,5[b=0][bg=0x01000000]:32"
oCalendar.Template = "DateHeaderField(1) = ` ( ( ( month(value) = month(date(````) ) and ( year(value) = year(date(````) ) ) ) ) ? ``<b><fgcolor=0000FF>`` : ```` ) + ``<c><%month%> <%year%>```" // oCalendar.DateHeaderField(1) = " ( ( ( month(value) = month(date(``) ) and ( year(value) = year(date(``) ) ) ) ) ? `<b><fgcolor=0000FF>` : `` ) + `<c><%month%> <%year%>`"
oCalendar.Template = "HTMLPicture(`up`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJZJJEIJUPDaMZkUAQGAOP4DRShOgvHIGQA0U5CbKzOIZYRIICzCaUX4PS4hRgEGg/QaKJLhGSESIIZoMfAMMIkKQzJxDDBJaCMaoQSABVhAXgQRBLRFdNhIB4QY4PfyUJB7AYAFo+DIWOb7LDdiIAJJFJxEVxCMCCgIA=`" // oCalendar.HTMLPicture("up") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJZJJEIJUPDaMZkUAQGAOP4DRShOgvHIGQA0U5CbKzOIZYRIICzCaUX4PS4hRgEGg/QaKJLhGSESIIZoMfAMMIkKQzJxDDBJaCMaoQSABVhAXgQRBLRFdNhIB4QY4PfyUJB7AYAFo+DIWOb7LDdiIAJJFJxEVxCMCCgIA="
oCalendar.Template = "HTMLPicture(`down`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIEM5BJpBhSxR4LfhhAsRKZJIhBKg4J7tRjJBIAEAMAjzWIJba0E5rWQcWaBAoFR7oK4HewRZCMPiMUDLXRoS4PfjCQJrEhdaJ5ET4YIvTgOJ5kFSTKpkFaTKLEFqTGxyFgTIyuMgCeJaPwDSIKEhlCT5ZoWFT4iIAJJFJxEVxCMCCgIA=`" // oCalendar.HTMLPicture("down") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIEM5BJpBhSxR4LfhhAsRKZJIhBKg4J7tRjJBIAEAMAjzWIJba0E5rWQcWaBAoFR7oK4HewRZCMPiMUDLXRoS4PfjCQJrEhdaJ5ET4YIvTgOJ5kFSTKpkFaTKLEFqTGxyFgTIyuMgCeJaPwDSIKEhlCT5ZoWFT4iIAJJFJxEVxCMCCgIA="
oCalendar.Template = "HTMLPicture(`left`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJUJJEIJUPDaMZkEANWACeJvMgBIwSGgXAaxGIQI6RMYAJBzFQQHYBeIzKQNYCpTIYAbwNQmMgAILNfAMEBKGYuAaIaxMGYDFD2ARVASRNBDNCeSAIDRCW7MAgDDDZDIAKbADgRVrfUCNiIAJJFJxEVxCMCCgI`" // oCalendar.HTMLPicture("left") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJUJJEIJUPDaMZkEANWACeJvMgBIwSGgXAaxGIQI6RMYAJBzFQQHYBeIzKQNYCpTIYAbwNQmMgAILNfAMEBKGYuAaIaxMGYDFD2ARVASRNBDNCeSAIDRCW7MAgDDDZDIAKbADgRVrfUCNiIAJJFJxEVxCMCCgI"
oCalendar.Template = "HTMLPicture(`right`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIBOZSI5CACuZwcdMRAhnIJNIMKWKPBb8MIFiIJOBILJzhQOYc7YYBY5vVBkiJEJJEIJUHBPMbAARYUI0KKADJKEaDEpAVgAYjHYI8GSACgQb4AcRiGCPJgwNQIEzANIICaUUwpUDIBYjKIzBAsAZiWQ1QYABLZTKBAIATL2CUxXJdV8RABJIpOIiuIRgQUBA=`" // oCalendar.HTMLPicture("right") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIBOZSI5CACuZwcdMRAhnIJNIMKWKPBb8MIFiIJOBILJzhQOYc7YYBY5vVBkiJEJJEIJUHBPMbAARYUI0KKADJKEaDEpAVgAYjHYI8GSACgQb4AcRiGCPJgwNQIEzANIICaUUwpUDIBYjKIzBAsAZiWQ1QYABLZTKBAIATL2CUxXJdV8RABJIpOIiuIRgQUBA="
oCalendar.Template = "DateHeaderField(2) = `<c><img>up</img>`" // oCalendar.DateHeaderField(2) = "<c><img>up</img>"
oCalendar.Template = "DateHeaderField(3) = `<c><img>down</img>`" // oCalendar.DateHeaderField(3) = "<c><img>down</img>"
oCalendar.Template = "DateHeaderField(4) = `<c><img>left</img>`" // oCalendar.DateHeaderField(4) = "<c><img>left</img>"
oCalendar.Template = "DateHeaderField(5) = `<c><img>right</img>`" // oCalendar.DateHeaderField(5) = "<c><img>right</img>"
var_Appearance = oCalendar.VisualAppearance
	var_Appearance.Add(1,"gBFLBCJwBAEHhEJAAEhABFgDg6AADACAxSDEMQBQKAAzQFAYbhgHCGAAGQaBUgmFgAQhFcZQSKUOQTDKMIziYBYfgkMIgSbJUgDGAkRRdDSOYIkWA5AiKEYoThCIxzTJ8aw3CKbYRAKCXfoUAJFP7Fc6ABJMBx3EyhZ89NDYEwTIKBahoehqIheEQyDSJNb2DCIahhMSEbKtCooDhGFpUWzLdxTJJVawHJoABjkS45PjEAJ+SBPUZVRRlFyfO7BKSjMKKXgkG4zABWVa1bC1FzxQ6mKykKQLQADDIDVZAeL3JTNCS5IyLLDtO77EqmZ5la7cUgRDj4AY7Ua+MzubBZaovOqDYzAey7TDWLRXFDNIzzTgQAyHHrETZHGqwJxMAEapYGqYpVi2HwzDuQ5oHKIQgggSSUGMOgdE4RhYDwJBVAwIQTH2UYhjQJBRAmZxuCEHZ3icJp5EgKxgAIVgCCQSQSEIBQkCAYhCAIJYKmKNIuFcTBIESPYEk6GBUm+BZOmOPgZgWYRTiYEwvEwaIEAAK4KnKOJrgmTpDjCbYJmKSI2CoOxihOLglCuAACioNg8COA4gmcOZOiidg+g+Dh4moOA8CMYokNmCoyiycQ8E8A4iE6D4OjOMgng8ZJjiITA8CSEouEcKwKkkLJyhQIoIkYU9LjORhcCsAAIACLQ8iaSJ6FKC5jJoaobA8KYoACCRKnmMJzhuDpZnSboMCKGJ4nMPIPDmYAACwKIDk6CoLCeU40m6I5oliMoKDyaICokLIpgoThviOKJoGYf4KmUKhMjMLJLCAAojCyaYoiYGoGmqM46CkOwPEoKonAACxKlSdItmiWBeBeDgrioNo3D0KxSlAAAtgsUpYnUPRPEoco8hCa+T40SxbBRj5tEsHJ1i6JhbGYS4ug8awelQLZAAKZI5C4DxrhYQ9ehmUppWiA48nAPRuFKYpiAAC47laZQ9iuKZSgOPotkuFI7C6C4gACPJAm8eQOhOQZoikDp3kCS5AACPoEk8fBGnqQgpDOSppD2TxjlyPZD6CfwekQTx5lKP5ImseZTCAL5MAMAAAkoTADmMLpIjISp+HSS4PgyMAADBzAHDSIoPCOUpWjObIKE8NJOHKIwPEaTprBsHpdjWLB9AieQ+DQYwQAAMR1EOZxWi+bx7HcWQ8msfRYnnDZQACRwxgwc5rGaMZPE0ZxqjWNZtgyRwAAyTZEnuXJzEyAx2kQcxNkye5cEy3cYAcANrGAIH4OAhx3gNGGPAfgIR8jBA4McBMARVhnH4HQOYmxuCpF2MsecEQVBvGQCcIQug6itGQBoARAQ=")
oCalendar.EndUpdate()

137:
How can I arrange the month's header ( left, right, prev month, next, prev year, picture, ebn)

Dim oCalendar as P
Dim var_Appearance as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.BeginUpdate()
oCalendar.Appearance = 0
oCalendar.Template = "Background(8) = BackColor" // oCalendar.Background(8) = oCalendar.BackColor
oCalendar.FirstDay = 2
oCalendar.MaxMonthX = 2
oCalendar.MaxMonthY = 2
oCalendar.DrawGridLine = 0
oCalendar.WeekDays = "Su Mo Tu We Th Fr Sa"
oCalendar.MarkToday = .t.
oCalendar.AutoSize = 0
oCalendar.AlignmentDay = 1
oCalendar.FixedCellHeight = 32
oCalendar.FixedCellWidth = 32
oCalendar.DateHeaderFormat = "(2[b=0][bg=0x01000000]/3[b=0][bg=0x01000000]):32,1,(4[b=0][bg=0x01000000]/5[b=0][bg=0x01000000]):32"
oCalendar.Template = "DateHeaderField(1) = ` ( ( ( month(value) = month(date(````) ) and ( year(value) = year(date(````) ) ) ) ) ? ``<b><fgcolor=0000FF>`` : ```` ) + ``<c><%month%> <%year%>```" // oCalendar.DateHeaderField(1) = " ( ( ( month(value) = month(date(``) ) and ( year(value) = year(date(``) ) ) ) ) ? `<b><fgcolor=0000FF>` : `` ) + `<c><%month%> <%year%>`"
oCalendar.Template = "HTMLPicture(`up`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJZJJEIJUPDaMZkUAQGAOP4DRShOgvHIGQA0U5CbKzOIZYRIICzCaUX4PS4hRgEGg/QaKJLhGSESIIZoMfAMMIkKQzJxDDBJaCMaoQSABVhAXgQRBLRFdNhIB4QY4PfyUJB7AYAFo+DIWOb7LDdiIAJJFJxEVxCMCCgIA=`" // oCalendar.HTMLPicture("up") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJZJJEIJUPDaMZkUAQGAOP4DRShOgvHIGQA0U5CbKzOIZYRIICzCaUX4PS4hRgEGg/QaKJLhGSESIIZoMfAMMIkKQzJxDDBJaCMaoQSABVhAXgQRBLRFdNhIB4QY4PfyUJB7AYAFo+DIWOb7LDdiIAJJFJxEVxCMCCgIA="
oCalendar.Template = "HTMLPicture(`down`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIEM5BJpBhSxR4LfhhAsRKZJIhBKg4J7tRjJBIAEAMAjzWIJba0E5rWQcWaBAoFR7oK4HewRZCMPiMUDLXRoS4PfjCQJrEhdaJ5ET4YIvTgOJ5kFSTKpkFaTKLEFqTGxyFgTIyuMgCeJaPwDSIKEhlCT5ZoWFT4iIAJJFJxEVxCMCCgIA=`" // oCalendar.HTMLPicture("down") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIEM5BJpBhSxR4LfhhAsRKZJIhBKg4J7tRjJBIAEAMAjzWIJba0E5rWQcWaBAoFR7oK4HewRZCMPiMUDLXRoS4PfjCQJrEhdaJ5ET4YIvTgOJ5kFSTKpkFaTKLEFqTGxyFgTIyuMgCeJaPwDSIKEhlCT5ZoWFT4iIAJJFJxEVxCMCCgIA="
oCalendar.Template = "HTMLPicture(`left`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJUJJEIJUPDaMZkEANWACeJvMgBIwSGgXAaxGIQI6RMYAJBzFQQHYBeIzKQNYCpTIYAbwNQmMgAILNfAMEBKGYuAaIaxMGYDFD2ARVASRNBDNCeSAIDRCW7MAgDDDZDIAKbADgRVrfUCNiIAJJFJxEVxCMCCgI`" // oCalendar.HTMLPicture("left") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJUJJEIJUPDaMZkEANWACeJvMgBIwSGgXAaxGIQI6RMYAJBzFQQHYBeIzKQNYCpTIYAbwNQmMgAILNfAMEBKGYuAaIaxMGYDFD2ARVASRNBDNCeSAIDRCW7MAgDDDZDIAKbADgRVrfUCNiIAJJFJxEVxCMCCgI"
oCalendar.Template = "HTMLPicture(`right`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIBOZSI5CACuZwcdMRAhnIJNIMKWKPBb8MIFiIJOBILJzhQOYc7YYBY5vVBkiJEJJEIJUHBPMbAARYUI0KKADJKEaDEpAVgAYjHYI8GSACgQb4AcRiGCPJgwNQIEzANIICaUUwpUDIBYjKIzBAsAZiWQ1QYABLZTKBAIATL2CUxXJdV8RABJIpOIiuIRgQUBA=`" // oCalendar.HTMLPicture("right") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIBOZSI5CACuZwcdMRAhnIJNIMKWKPBb8MIFiIJOBILJzhQOYc7YYBY5vVBkiJEJJEIJUHBPMbAARYUI0KKADJKEaDEpAVgAYjHYI8GSACgQb4AcRiGCPJgwNQIEzANIICaUUwpUDIBYjKIzBAsAZiWQ1QYABLZTKBAIATL2CUxXJdV8RABJIpOIiuIRgQUBA="
oCalendar.Template = "DateHeaderField(2) = `<c><img>up</img>`" // oCalendar.DateHeaderField(2) = "<c><img>up</img>"
oCalendar.Template = "DateHeaderField(3) = `<c><img>down</img>`" // oCalendar.DateHeaderField(3) = "<c><img>down</img>"
oCalendar.Template = "DateHeaderField(4) = `<c><img>left</img>`" // oCalendar.DateHeaderField(4) = "<c><img>left</img>"
oCalendar.Template = "DateHeaderField(5) = `<c><img>right</img>`" // oCalendar.DateHeaderField(5) = "<c><img>right</img>"
var_Appearance = oCalendar.VisualAppearance
	var_Appearance.Add(1,"gBFLBCJwBAEHhEJAAEhABFgDg6AADACAxSDEMQBQKAAzQFAYbhgHCGAAGQaBUgmFgAQhFcZQSKUOQTDKMIziYBYfgkMIgSbJUgDGAkRRdDSOYIkWA5AiKEYoThCIxzTJ8aw3CKbYRAKCXfoUAJFP7Fc6ABJMBx3EyhZ89NDYEwTIKBahoehqIheEQyDSJNb2DCIahhMSEbKtCooDhGFpUWzLdxTJJVawHJoABjkS45PjEAJ+SBPUZVRRlFyfO7BKSjMKKXgkG4zABWVa1bC1FzxQ6mKykKQLQADDIDVZAeL3JTNCS5IyLLDtO77EqmZ5la7cUgRDj4AY7Ua+MzubBZaovOqDYzAey7TDWLRXFDNIzzTgQAyHHrETZHGqwJxMAEapYGqYpVi2HwzDuQ5oHKIQgggSSUGMOgdE4RhYDwJBVAwIQTH2UYhjQJBRAmZxuCEHZ3icJp5EgKxgAIVgCCQSQSEIBQkCAYhCAIJYKmKNIuFcTBIESPYEk6GBUm+BZOmOPgZgWYRTiYEwvEwaIEAAK4KnKOJrgmTpDjCbYJmKSI2CoOxihOLglCuAACioNg8COA4gmcOZOiidg+g+Dh4moOA8CMYokNmCoyiycQ8E8A4iE6D4OjOMgng8ZJjiITA8CSEouEcKwKkkLJyhQIoIkYU9LjORhcCsAAIACLQ8iaSJ6FKC5jJoaobA8KYoACCRKnmMJzhuDpZnSboMCKGJ4nMPIPDmYAACwKIDk6CoLCeU40m6I5oliMoKDyaICokLIpgoThviOKJoGYf4KmUKhMjMLJLCAAojCyaYoiYGoGmqM46CkOwPEoKonAACxKlSdItmiWBeBeDgrioNo3D0KxSlAAAtgsUpYnUPRPEoco8hCa+T40SxbBRj5tEsHJ1i6JhbGYS4ug8awelQLZAAKZI5C4DxrhYQ9ehmUppWiA48nAPRuFKYpiAAC47laZQ9iuKZSgOPotkuFI7C6C4gACPJAm8eQOhOQZoikDp3kCS5AACPoEk8fBGnqQgpDOSppD2TxjlyPZD6CfwekQTx5lKP5ImseZTCAL5MAMAAAkoTADmMLpIjISp+HSS4PgyMAADBzAHDSIoPCOUpWjObIKE8NJOHKIwPEaTprBsHpdjWLB9AieQ+DQYwQAAMR1EOZxWi+bx7HcWQ8msfRYnnDZQACRwxgwc5rGaMZPE0ZxqjWNZtgyRwAAyTZEnuXJzEyAx2kQcxNkye5cEy3cYAcANrGAIH4OAhx3gNGGPAfgIR8jBA4McBMARVhnH4HQOYmxuCpF2MsecEQVBvGQCcIQug6itGQBoARAQ=")
oCalendar.EndUpdate()

136:
How can I arrange the month's header ( down, next, prev month, next, prev year, picture, ebn)

Dim oCalendar as P
Dim var_Appearance as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.BeginUpdate()
oCalendar.Appearance = 0
oCalendar.Template = "Background(8) = BackColor" // oCalendar.Background(8) = oCalendar.BackColor
oCalendar.FirstDay = 2
oCalendar.MaxMonthX = 2
oCalendar.MaxMonthY = 2
oCalendar.DrawGridLine = 0
oCalendar.WeekDays = "Su Mo Tu We Th Fr Sa"
oCalendar.MarkToday = .t.
oCalendar.AutoSize = 0
oCalendar.AlignmentDay = 1
oCalendar.FixedCellHeight = 32
oCalendar.FixedCellWidth = 32
oCalendar.DateHeaderFormat = "1/16;(2[bg=0x01808080],3[bg=0x01000000])[b=15],(4[bg=0x01808080],5[bg=0x01000000])[b=15]"
oCalendar.Template = "DateHeaderField(1) = ` ( ( ( month(value) = month(date(````) ) and ( year(value) = year(date(````) ) ) ) ) ? ``<b><fgcolor=0000FF>`` : ```` ) + ``<c><%month%> <%year%>```" // oCalendar.DateHeaderField(1) = " ( ( ( month(value) = month(date(``) ) and ( year(value) = year(date(``) ) ) ) ) ? `<b><fgcolor=0000FF>` : `` ) + `<c><%month%> <%year%>`"
oCalendar.Template = "HTMLPicture(`up`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJZJJEIJUPDaMZkUAQGAOP4DRShOgvHIGQA0U5CbKzOIZYRIICzCaUX4PS4hRgEGg/QaKJLhGSESIIZoMfAMMIkKQzJxDDBJaCMaoQSABVhAXgQRBLRFdNhIB4QY4PfyUJB7AYAFo+DIWOb7LDdiIAJJFJxEVxCMCCgIA=`" // oCalendar.HTMLPicture("up") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJZJJEIJUPDaMZkUAQGAOP4DRShOgvHIGQA0U5CbKzOIZYRIICzCaUX4PS4hRgEGg/QaKJLhGSESIIZoMfAMMIkKQzJxDDBJaCMaoQSABVhAXgQRBLRFdNhIB4QY4PfyUJB7AYAFo+DIWOb7LDdiIAJJFJxEVxCMCCgIA="
oCalendar.Template = "HTMLPicture(`down`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIEM5BJpBhSxR4LfhhAsRKZJIhBKg4J7tRjJBIAEAMAjzWIJba0E5rWQcWaBAoFR7oK4HewRZCMPiMUDLXRoS4PfjCQJrEhdaJ5ET4YIvTgOJ5kFSTKpkFaTKLEFqTGxyFgTIyuMgCeJaPwDSIKEhlCT5ZoWFT4iIAJJFJxEVxCMCCgIA=`" // oCalendar.HTMLPicture("down") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIEM5BJpBhSxR4LfhhAsRKZJIhBKg4J7tRjJBIAEAMAjzWIJba0E5rWQcWaBAoFR7oK4HewRZCMPiMUDLXRoS4PfjCQJrEhdaJ5ET4YIvTgOJ5kFSTKpkFaTKLEFqTGxyFgTIyuMgCeJaPwDSIKEhlCT5ZoWFT4iIAJJFJxEVxCMCCgIA="
oCalendar.Template = "HTMLPicture(`left`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJUJJEIJUPDaMZkEANWACeJvMgBIwSGgXAaxGIQI6RMYAJBzFQQHYBeIzKQNYCpTIYAbwNQmMgAILNfAMEBKGYuAaIaxMGYDFD2ARVASRNBDNCeSAIDRCW7MAgDDDZDIAKbADgRVrfUCNiIAJJFJxEVxCMCCgI`" // oCalendar.HTMLPicture("left") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJUJJEIJUPDaMZkEANWACeJvMgBIwSGgXAaxGIQI6RMYAJBzFQQHYBeIzKQNYCpTIYAbwNQmMgAILNfAMEBKGYuAaIaxMGYDFD2ARVASRNBDNCeSAIDRCW7MAgDDDZDIAKbADgRVrfUCNiIAJJFJxEVxCMCCgI"
oCalendar.Template = "HTMLPicture(`right`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIBOZSI5CACuZwcdMRAhnIJNIMKWKPBb8MIFiIJOBILJzhQOYc7YYBY5vVBkiJEJJEIJUHBPMbAARYUI0KKADJKEaDEpAVgAYjHYI8GSACgQb4AcRiGCPJgwNQIEzANIICaUUwpUDIBYjKIzBAsAZiWQ1QYABLZTKBAIATL2CUxXJdV8RABJIpOIiuIRgQUBA=`" // oCalendar.HTMLPicture("right") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIBOZSI5CACuZwcdMRAhnIJNIMKWKPBb8MIFiIJOBILJzhQOYc7YYBY5vVBkiJEJJEIJUHBPMbAARYUI0KKADJKEaDEpAVgAYjHYI8GSACgQb4AcRiGCPJgwNQIEzANIICaUUwpUDIBYjKIzBAsAZiWQ1QYABLZTKBAIATL2CUxXJdV8RABJIpOIiuIRgQUBA="
oCalendar.Template = "DateHeaderField(2) = `<c><img>up</img>`" // oCalendar.DateHeaderField(2) = "<c><img>up</img>"
oCalendar.Template = "DateHeaderField(3) = `<c><img>down</img>`" // oCalendar.DateHeaderField(3) = "<c><img>down</img>"
oCalendar.Template = "DateHeaderField(4) = `<c><img>left</img>`" // oCalendar.DateHeaderField(4) = "<c><img>left</img>"
oCalendar.Template = "DateHeaderField(5) = `<c><img>right</img>`" // oCalendar.DateHeaderField(5) = "<c><img>right</img>"
var_Appearance = oCalendar.VisualAppearance
	var_Appearance.Add(1,"gBFLBCJwBAEHhEJAAEhABFgDg6AADACAxSDEMQBQKAAzQFAYbhgHCGAAGQaBUgmFgAQhFcZQSKUOQTDKMIziYBYfgkMIgSbJUgDGAkRRdDSOYIkWA5AiKEYoThCIxzTJ8aw3CKbYRAKCXfoUAJFP7Fc6ABJMBx3EyhZ89NDYEwTIKBahoehqIheEQyDSJNb2DCIahhMSEbKtCooDhGFpUWzLdxTJJVawHJoABjkS45PjEAJ+SBPUZVRRlFyfO7BKSjMKKXgkG4zABWVa1bC1FzxQ6mKykKQLQADDIDVZAeL3JTNCS5IyLLDtO77EqmZ5la7cUgRDj4AY7Ua+MzubBZaovOqDYzAey7TDWLRXFDNIzzTgQAyHHrETZHGqwJxMAEapYGqYpVi2HwzDuQ5oHKIQgggSSUGMOgdE4RhYDwJBVAwIQTH2UYhjQJBRAmZxuCEHZ3icJp5EgKxgAIVgCCQSQSEIBQkCAYhCAIJYKmKNIuFcTBIESPYEk6GBUm+BZOmOPgZgWYRTiYEwvEwaIEAAK4KnKOJrgmTpDjCbYJmKSI2CoOxihOLglCuAACioNg8COA4gmcOZOiidg+g+Dh4moOA8CMYokNmCoyiycQ8E8A4iE6D4OjOMgng8ZJjiITA8CSEouEcKwKkkLJyhQIoIkYU9LjORhcCsAAIACLQ8iaSJ6FKC5jJoaobA8KYoACCRKnmMJzhuDpZnSboMCKGJ4nMPIPDmYAACwKIDk6CoLCeU40m6I5oliMoKDyaICokLIpgoThviOKJoGYf4KmUKhMjMLJLCAAojCyaYoiYGoGmqM46CkOwPEoKonAACxKlSdItmiWBeBeDgrioNo3D0KxSlAAAtgsUpYnUPRPEoco8hCa+T40SxbBRj5tEsHJ1i6JhbGYS4ug8awelQLZAAKZI5C4DxrhYQ9ehmUppWiA48nAPRuFKYpiAAC47laZQ9iuKZSgOPotkuFI7C6C4gACPJAm8eQOhOQZoikDp3kCS5AACPoEk8fBGnqQgpDOSppD2TxjlyPZD6CfwekQTx5lKP5ImseZTCAL5MAMAAAkoTADmMLpIjISp+HSS4PgyMAADBzAHDSIoPCOUpWjObIKE8NJOHKIwPEaTprBsHpdjWLB9AieQ+DQYwQAAMR1EOZxWi+bx7HcWQ8msfRYnnDZQACRwxgwc5rGaMZPE0ZxqjWNZtgyRwAAyTZEnuXJzEyAx2kQcxNkye5cEy3cYAcANrGAIH4OAhx3gNGGPAfgIR8jBA4McBMARVhnH4HQOYmxuCpF2MsecEQVBvGQCcIQug6itGQBoARAQ=")
oCalendar.EndUpdate()

135:
How can I arrange the month's header ( down, next, prev month, picture, ebn)

Dim oCalendar as P
Dim var_Appearance as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.BeginUpdate()
oCalendar.Appearance = 0
oCalendar.Template = "Background(8) = BackColor" // oCalendar.Background(8) = oCalendar.BackColor
oCalendar.FirstDay = 2
oCalendar.MaxMonthX = 2
oCalendar.MaxMonthY = 2
oCalendar.DrawGridLine = 0
oCalendar.WeekDays = "Su Mo Tu We Th Fr Sa"
oCalendar.MarkToday = .t.
oCalendar.AutoSize = 0
oCalendar.AlignmentDay = 1
oCalendar.FixedCellHeight = 32
oCalendar.FixedCellWidth = 32
oCalendar.DateHeaderFormat = "1/16;2[b=0][bg=0x01000000],3[b=0][bg=0x01000000]"
oCalendar.Template = "DateHeaderField(1) = ` ( ( ( month(value) = month(date(````) ) and ( year(value) = year(date(````) ) ) ) ) ? ``<b><fgcolor=0000FF>`` : ```` ) + ``<c><%month%> <%year%>```" // oCalendar.DateHeaderField(1) = " ( ( ( month(value) = month(date(``) ) and ( year(value) = year(date(``) ) ) ) ) ? `<b><fgcolor=0000FF>` : `` ) + `<c><%month%> <%year%>`"
oCalendar.Template = "HTMLPicture(`up`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJZJJEIJUPDaMZkUAQGAOP4DRShOgvHIGQA0U5CbKzOIZYRIICzCaUX4PS4hRgEGg/QaKJLhGSESIIZoMfAMMIkKQzJxDDBJaCMaoQSABVhAXgQRBLRFdNhIB4QY4PfyUJB7AYAFo+DIWOb7LDdiIAJJFJxEVxCMCCgIA=`" // oCalendar.HTMLPicture("up") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJZJJEIJUPDaMZkUAQGAOP4DRShOgvHIGQA0U5CbKzOIZYRIICzCaUX4PS4hRgEGg/QaKJLhGSESIIZoMfAMMIkKQzJxDDBJaCMaoQSABVhAXgQRBLRFdNhIB4QY4PfyUJB7AYAFo+DIWOb7LDdiIAJJFJxEVxCMCCgIA="
oCalendar.Template = "HTMLPicture(`down`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIEM5BJpBhSxR4LfhhAsRKZJIhBKg4J7tRjJBIAEAMAjzWIJba0E5rWQcWaBAoFR7oK4HewRZCMPiMUDLXRoS4PfjCQJrEhdaJ5ET4YIvTgOJ5kFSTKpkFaTKLEFqTGxyFgTIyuMgCeJaPwDSIKEhlCT5ZoWFT4iIAJJFJxEVxCMCCgIA=`" // oCalendar.HTMLPicture("down") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIEM5BJpBhSxR4LfhhAsRKZJIhBKg4J7tRjJBIAEAMAjzWIJba0E5rWQcWaBAoFR7oK4HewRZCMPiMUDLXRoS4PfjCQJrEhdaJ5ET4YIvTgOJ5kFSTKpkFaTKLEFqTGxyFgTIyuMgCeJaPwDSIKEhlCT5ZoWFT4iIAJJFJxEVxCMCCgIA="
oCalendar.Template = "HTMLPicture(`left`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJUJJEIJUPDaMZkEANWACeJvMgBIwSGgXAaxGIQI6RMYAJBzFQQHYBeIzKQNYCpTIYAbwNQmMgAILNfAMEBKGYuAaIaxMGYDFD2ARVASRNBDNCeSAIDRCW7MAgDDDZDIAKbADgRVrfUCNiIAJJFJxEVxCMCCgI`" // oCalendar.HTMLPicture("left") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJUJJEIJUPDaMZkEANWACeJvMgBIwSGgXAaxGIQI6RMYAJBzFQQHYBeIzKQNYCpTIYAbwNQmMgAILNfAMEBKGYuAaIaxMGYDFD2ARVASRNBDNCeSAIDRCW7MAgDDDZDIAKbADgRVrfUCNiIAJJFJxEVxCMCCgI"
oCalendar.Template = "HTMLPicture(`right`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIBOZSI5CACuZwcdMRAhnIJNIMKWKPBb8MIFiIJOBILJzhQOYc7YYBY5vVBkiJEJJEIJUHBPMbAARYUI0KKADJKEaDEpAVgAYjHYI8GSACgQb4AcRiGCPJgwNQIEzANIICaUUwpUDIBYjKIzBAsAZiWQ1QYABLZTKBAIATL2CUxXJdV8RABJIpOIiuIRgQUBA=`" // oCalendar.HTMLPicture("right") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIBOZSI5CACuZwcdMRAhnIJNIMKWKPBb8MIFiIJOBILJzhQOYc7YYBY5vVBkiJEJJEIJUHBPMbAARYUI0KKADJKEaDEpAVgAYjHYI8GSACgQb4AcRiGCPJgwNQIEzANIICaUUwpUDIBYjKIzBAsAZiWQ1QYABLZTKBAIATL2CUxXJdV8RABJIpOIiuIRgQUBA="
oCalendar.Template = "DateHeaderField(2) = `<c><img>up</img>`" // oCalendar.DateHeaderField(2) = "<c><img>up</img>"
oCalendar.Template = "DateHeaderField(3) = `<c><img>down</img>`" // oCalendar.DateHeaderField(3) = "<c><img>down</img>"
oCalendar.Template = "DateHeaderField(4) = `<c><img>left</img>`" // oCalendar.DateHeaderField(4) = "<c><img>left</img>"
oCalendar.Template = "DateHeaderField(5) = `<c><img>right</img>`" // oCalendar.DateHeaderField(5) = "<c><img>right</img>"
var_Appearance = oCalendar.VisualAppearance
	var_Appearance.Add(1,"gBFLBCJwBAEHhEJAAEhABFgDg6AADACAxSDEMQBQKAAzQFAYbhgHCGAAGQaBUgmFgAQhFcZQSKUOQTDKMIziYBYfgkMIgSbJUgDGAkRRdDSOYIkWA5AiKEYoThCIxzTJ8aw3CKbYRAKCXfoUAJFP7Fc6ABJMBx3EyhZ89NDYEwTIKBahoehqIheEQyDSJNb2DCIahhMSEbKtCooDhGFpUWzLdxTJJVawHJoABjkS45PjEAJ+SBPUZVRRlFyfO7BKSjMKKXgkG4zABWVa1bC1FzxQ6mKykKQLQADDIDVZAeL3JTNCS5IyLLDtO77EqmZ5la7cUgRDj4AY7Ua+MzubBZaovOqDYzAey7TDWLRXFDNIzzTgQAyHHrETZHGqwJxMAEapYGqYpVi2HwzDuQ5oHKIQgggSSUGMOgdE4RhYDwJBVAwIQTH2UYhjQJBRAmZxuCEHZ3icJp5EgKxgAIVgCCQSQSEIBQkCAYhCAIJYKmKNIuFcTBIESPYEk6GBUm+BZOmOPgZgWYRTiYEwvEwaIEAAK4KnKOJrgmTpDjCbYJmKSI2CoOxihOLglCuAACioNg8COA4gmcOZOiidg+g+Dh4moOA8CMYokNmCoyiycQ8E8A4iE6D4OjOMgng8ZJjiITA8CSEouEcKwKkkLJyhQIoIkYU9LjORhcCsAAIACLQ8iaSJ6FKC5jJoaobA8KYoACCRKnmMJzhuDpZnSboMCKGJ4nMPIPDmYAACwKIDk6CoLCeU40m6I5oliMoKDyaICokLIpgoThviOKJoGYf4KmUKhMjMLJLCAAojCyaYoiYGoGmqM46CkOwPEoKonAACxKlSdItmiWBeBeDgrioNo3D0KxSlAAAtgsUpYnUPRPEoco8hCa+T40SxbBRj5tEsHJ1i6JhbGYS4ug8awelQLZAAKZI5C4DxrhYQ9ehmUppWiA48nAPRuFKYpiAAC47laZQ9iuKZSgOPotkuFI7C6C4gACPJAm8eQOhOQZoikDp3kCS5AACPoEk8fBGnqQgpDOSppD2TxjlyPZD6CfwekQTx5lKP5ImseZTCAL5MAMAAAkoTADmMLpIjISp+HSS4PgyMAADBzAHDSIoPCOUpWjObIKE8NJOHKIwPEaTprBsHpdjWLB9AieQ+DQYwQAAMR1EOZxWi+bx7HcWQ8msfRYnnDZQACRwxgwc5rGaMZPE0ZxqjWNZtgyRwAAyTZEnuXJzEyAx2kQcxNkye5cEy3cYAcANrGAIH4OAhx3gNGGPAfgIR8jBA4McBMARVhnH4HQOYmxuCpF2MsecEQVBvGQCcIQug6itGQBoARAQ=")
oCalendar.EndUpdate()

134:
How can I arrange the month's header ( left, right center, next, prev month, picture, ebn)

Dim oCalendar as P
Dim var_Appearance as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.BeginUpdate()
oCalendar.Appearance = 0
oCalendar.Template = "Background(8) = BackColor" // oCalendar.Background(8) = oCalendar.BackColor
oCalendar.FirstDay = 2
oCalendar.MaxMonthX = 2
oCalendar.MaxMonthY = 2
oCalendar.DrawGridLine = 0
oCalendar.WeekDays = "Su Mo Tu We Th Fr Sa"
oCalendar.MarkToday = .t.
oCalendar.AutoSize = 0
oCalendar.AlignmentDay = 1
oCalendar.FixedCellHeight = 32
oCalendar.FixedCellWidth = 32
oCalendar.DateHeaderFormat = "2[b=0][bg=0x01000000],1,3[b=0][bg=0x01000000]"
oCalendar.Template = "DateHeaderField(1) = ` ( ( ( month(value) = month(date(````) ) and ( year(value) = year(date(````) ) ) ) ) ? ``<b><fgcolor=0000FF>`` : ```` ) + ``<c><%month%> <%year%>```" // oCalendar.DateHeaderField(1) = " ( ( ( month(value) = month(date(``) ) and ( year(value) = year(date(``) ) ) ) ) ? `<b><fgcolor=0000FF>` : `` ) + `<c><%month%> <%year%>`"
oCalendar.Template = "HTMLPicture(`up`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJZJJEIJUPDaMZkUAQGAOP4DRShOgvHIGQA0U5CbKzOIZYRIICzCaUX4PS4hRgEGg/QaKJLhGSESIIZoMfAMMIkKQzJxDDBJaCMaoQSABVhAXgQRBLRFdNhIB4QY4PfyUJB7AYAFo+DIWOb7LDdiIAJJFJxEVxCMCCgIA=`" // oCalendar.HTMLPicture("up") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJZJJEIJUPDaMZkUAQGAOP4DRShOgvHIGQA0U5CbKzOIZYRIICzCaUX4PS4hRgEGg/QaKJLhGSESIIZoMfAMMIkKQzJxDDBJaCMaoQSABVhAXgQRBLRFdNhIB4QY4PfyUJB7AYAFo+DIWOb7LDdiIAJJFJxEVxCMCCgIA="
oCalendar.Template = "HTMLPicture(`down`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIEM5BJpBhSxR4LfhhAsRKZJIhBKg4J7tRjJBIAEAMAjzWIJba0E5rWQcWaBAoFR7oK4HewRZCMPiMUDLXRoS4PfjCQJrEhdaJ5ET4YIvTgOJ5kFSTKpkFaTKLEFqTGxyFgTIyuMgCeJaPwDSIKEhlCT5ZoWFT4iIAJJFJxEVxCMCCgIA=`" // oCalendar.HTMLPicture("down") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIEM5BJpBhSxR4LfhhAsRKZJIhBKg4J7tRjJBIAEAMAjzWIJba0E5rWQcWaBAoFR7oK4HewRZCMPiMUDLXRoS4PfjCQJrEhdaJ5ET4YIvTgOJ5kFSTKpkFaTKLEFqTGxyFgTIyuMgCeJaPwDSIKEhlCT5ZoWFT4iIAJJFJxEVxCMCCgIA="
oCalendar.Template = "HTMLPicture(`left`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJUJJEIJUPDaMZkEANWACeJvMgBIwSGgXAaxGIQI6RMYAJBzFQQHYBeIzKQNYCpTIYAbwNQmMgAILNfAMEBKGYuAaIaxMGYDFD2ARVASRNBDNCeSAIDRCW7MAgDDDZDIAKbADgRVrfUCNiIAJJFJxEVxCMCCgI`" // oCalendar.HTMLPicture("left") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJUJJEIJUPDaMZkEANWACeJvMgBIwSGgXAaxGIQI6RMYAJBzFQQHYBeIzKQNYCpTIYAbwNQmMgAILNfAMEBKGYuAaIaxMGYDFD2ARVASRNBDNCeSAIDRCW7MAgDDDZDIAKbADgRVrfUCNiIAJJFJxEVxCMCCgI"
oCalendar.Template = "HTMLPicture(`right`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIBOZSI5CACuZwcdMRAhnIJNIMKWKPBb8MIFiIJOBILJzhQOYc7YYBY5vVBkiJEJJEIJUHBPMbAARYUI0KKADJKEaDEpAVgAYjHYI8GSACgQb4AcRiGCPJgwNQIEzANIICaUUwpUDIBYjKIzBAsAZiWQ1QYABLZTKBAIATL2CUxXJdV8RABJIpOIiuIRgQUBA=`" // oCalendar.HTMLPicture("right") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIBOZSI5CACuZwcdMRAhnIJNIMKWKPBb8MIFiIJOBILJzhQOYc7YYBY5vVBkiJEJJEIJUHBPMbAARYUI0KKADJKEaDEpAVgAYjHYI8GSACgQb4AcRiGCPJgwNQIEzANIICaUUwpUDIBYjKIzBAsAZiWQ1QYABLZTKBAIATL2CUxXJdV8RABJIpOIiuIRgQUBA="
oCalendar.Template = "DateHeaderField(2) = `<c><img>up</img>`" // oCalendar.DateHeaderField(2) = "<c><img>up</img>"
oCalendar.Template = "DateHeaderField(3) = `<c><img>down</img>`" // oCalendar.DateHeaderField(3) = "<c><img>down</img>"
oCalendar.Template = "DateHeaderField(4) = `<c><img>left</img>`" // oCalendar.DateHeaderField(4) = "<c><img>left</img>"
oCalendar.Template = "DateHeaderField(5) = `<c><img>right</img>`" // oCalendar.DateHeaderField(5) = "<c><img>right</img>"
var_Appearance = oCalendar.VisualAppearance
	var_Appearance.Add(1,"gBFLBCJwBAEHhEJAAEhABFgDg6AADACAxSDEMQBQKAAzQFAYbhgHCGAAGQaBUgmFgAQhFcZQSKUOQTDKMIziYBYfgkMIgSbJUgDGAkRRdDSOYIkWA5AiKEYoThCIxzTJ8aw3CKbYRAKCXfoUAJFP7Fc6ABJMBx3EyhZ89NDYEwTIKBahoehqIheEQyDSJNb2DCIahhMSEbKtCooDhGFpUWzLdxTJJVawHJoABjkS45PjEAJ+SBPUZVRRlFyfO7BKSjMKKXgkG4zABWVa1bC1FzxQ6mKykKQLQADDIDVZAeL3JTNCS5IyLLDtO77EqmZ5la7cUgRDj4AY7Ua+MzubBZaovOqDYzAey7TDWLRXFDNIzzTgQAyHHrETZHGqwJxMAEapYGqYpVi2HwzDuQ5oHKIQgggSSUGMOgdE4RhYDwJBVAwIQTH2UYhjQJBRAmZxuCEHZ3icJp5EgKxgAIVgCCQSQSEIBQkCAYhCAIJYKmKNIuFcTBIESPYEk6GBUm+BZOmOPgZgWYRTiYEwvEwaIEAAK4KnKOJrgmTpDjCbYJmKSI2CoOxihOLglCuAACioNg8COA4gmcOZOiidg+g+Dh4moOA8CMYokNmCoyiycQ8E8A4iE6D4OjOMgng8ZJjiITA8CSEouEcKwKkkLJyhQIoIkYU9LjORhcCsAAIACLQ8iaSJ6FKC5jJoaobA8KYoACCRKnmMJzhuDpZnSboMCKGJ4nMPIPDmYAACwKIDk6CoLCeU40m6I5oliMoKDyaICokLIpgoThviOKJoGYf4KmUKhMjMLJLCAAojCyaYoiYGoGmqM46CkOwPEoKonAACxKlSdItmiWBeBeDgrioNo3D0KxSlAAAtgsUpYnUPRPEoco8hCa+T40SxbBRj5tEsHJ1i6JhbGYS4ug8awelQLZAAKZI5C4DxrhYQ9ehmUppWiA48nAPRuFKYpiAAC47laZQ9iuKZSgOPotkuFI7C6C4gACPJAm8eQOhOQZoikDp3kCS5AACPoEk8fBGnqQgpDOSppD2TxjlyPZD6CfwekQTx5lKP5ImseZTCAL5MAMAAAkoTADmMLpIjISp+HSS4PgyMAADBzAHDSIoPCOUpWjObIKE8NJOHKIwPEaTprBsHpdjWLB9AieQ+DQYwQAAMR1EOZxWi+bx7HcWQ8msfRYnnDZQACRwxgwc5rGaMZPE0ZxqjWNZtgyRwAAyTZEnuXJzEyAx2kQcxNkye5cEy3cYAcANrGAIH4OAhx3gNGGPAfgIR8jBA4McBMARVhnH4HQOYmxuCpF2MsecEQVBvGQCcIQug6itGQBoARAQ=")
oCalendar.EndUpdate()

133:
How can I arrange the month's header (right up down, next, prev month, picture, ebn)

Dim oCalendar as P
Dim var_Appearance as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.BeginUpdate()
oCalendar.Appearance = 0
oCalendar.Template = "Background(8) = BackColor" // oCalendar.Background(8) = oCalendar.BackColor
oCalendar.FirstDay = 2
oCalendar.MaxMonthX = 2
oCalendar.MaxMonthY = 2
oCalendar.DrawGridLine = 0
oCalendar.WeekDays = "Su Mo Tu We Th Fr Sa"
oCalendar.MarkToday = .t.
oCalendar.AutoSize = 0
oCalendar.AlignmentDay = 1
oCalendar.FixedCellHeight = 32
oCalendar.FixedCellWidth = 32
oCalendar.DateHeaderFormat = "1,(2[b=0][bg=0x01000000]/3[b=0][bg=0x01000000]):32"
oCalendar.Template = "DateHeaderField(1) = ` ( ( ( month(value) = month(date(````) ) and ( year(value) = year(date(````) ) ) ) ) ? ``<b><fgcolor=0000FF>`` : ```` ) + ``<c><%month%> <%year%>```" // oCalendar.DateHeaderField(1) = " ( ( ( month(value) = month(date(``) ) and ( year(value) = year(date(``) ) ) ) ) ? `<b><fgcolor=0000FF>` : `` ) + `<c><%month%> <%year%>`"
oCalendar.Template = "HTMLPicture(`up`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJZJJEIJUPDaMZkUAQGAOP4DRShOgvHIGQA0U5CbKzOIZYRIICzCaUX4PS4hRgEGg/QaKJLhGSESIIZoMfAMMIkKQzJxDDBJaCMaoQSABVhAXgQRBLRFdNhIB4QY4PfyUJB7AYAFo+DIWOb7LDdiIAJJFJxEVxCMCCgIA=`" // oCalendar.HTMLPicture("up") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJZJJEIJUPDaMZkUAQGAOP4DRShOgvHIGQA0U5CbKzOIZYRIICzCaUX4PS4hRgEGg/QaKJLhGSESIIZoMfAMMIkKQzJxDDBJaCMaoQSABVhAXgQRBLRFdNhIB4QY4PfyUJB7AYAFo+DIWOb7LDdiIAJJFJxEVxCMCCgIA="
oCalendar.Template = "HTMLPicture(`down`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIEM5BJpBhSxR4LfhhAsRKZJIhBKg4J7tRjJBIAEAMAjzWIJba0E5rWQcWaBAoFR7oK4HewRZCMPiMUDLXRoS4PfjCQJrEhdaJ5ET4YIvTgOJ5kFSTKpkFaTKLEFqTGxyFgTIyuMgCeJaPwDSIKEhlCT5ZoWFT4iIAJJFJxEVxCMCCgIA=`" // oCalendar.HTMLPicture("down") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIEM5BJpBhSxR4LfhhAsRKZJIhBKg4J7tRjJBIAEAMAjzWIJba0E5rWQcWaBAoFR7oK4HewRZCMPiMUDLXRoS4PfjCQJrEhdaJ5ET4YIvTgOJ5kFSTKpkFaTKLEFqTGxyFgTIyuMgCeJaPwDSIKEhlCT5ZoWFT4iIAJJFJxEVxCMCCgIA="
oCalendar.Template = "HTMLPicture(`left`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJUJJEIJUPDaMZkEANWACeJvMgBIwSGgXAaxGIQI6RMYAJBzFQQHYBeIzKQNYCpTIYAbwNQmMgAILNfAMEBKGYuAaIaxMGYDFD2ARVASRNBDNCeSAIDRCW7MAgDDDZDIAKbADgRVrfUCNiIAJJFJxEVxCMCCgI`" // oCalendar.HTMLPicture("left") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJUJJEIJUPDaMZkEANWACeJvMgBIwSGgXAaxGIQI6RMYAJBzFQQHYBeIzKQNYCpTIYAbwNQmMgAILNfAMEBKGYuAaIaxMGYDFD2ARVASRNBDNCeSAIDRCW7MAgDDDZDIAKbADgRVrfUCNiIAJJFJxEVxCMCCgI"
oCalendar.Template = "HTMLPicture(`right`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIBOZSI5CACuZwcdMRAhnIJNIMKWKPBb8MIFiIJOBILJzhQOYc7YYBY5vVBkiJEJJEIJUHBPMbAARYUI0KKADJKEaDEpAVgAYjHYI8GSACgQb4AcRiGCPJgwNQIEzANIICaUUwpUDIBYjKIzBAsAZiWQ1QYABLZTKBAIATL2CUxXJdV8RABJIpOIiuIRgQUBA=`" // oCalendar.HTMLPicture("right") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIBOZSI5CACuZwcdMRAhnIJNIMKWKPBb8MIFiIJOBILJzhQOYc7YYBY5vVBkiJEJJEIJUHBPMbAARYUI0KKADJKEaDEpAVgAYjHYI8GSACgQb4AcRiGCPJgwNQIEzANIICaUUwpUDIBYjKIzBAsAZiWQ1QYABLZTKBAIATL2CUxXJdV8RABJIpOIiuIRgQUBA="
oCalendar.Template = "DateHeaderField(2) = `<c><img>up</img>`" // oCalendar.DateHeaderField(2) = "<c><img>up</img>"
oCalendar.Template = "DateHeaderField(3) = `<c><img>down</img>`" // oCalendar.DateHeaderField(3) = "<c><img>down</img>"
oCalendar.Template = "DateHeaderField(4) = `<c><img>left</img>`" // oCalendar.DateHeaderField(4) = "<c><img>left</img>"
oCalendar.Template = "DateHeaderField(5) = `<c><img>right</img>`" // oCalendar.DateHeaderField(5) = "<c><img>right</img>"
var_Appearance = oCalendar.VisualAppearance
	var_Appearance.Add(1,"gBFLBCJwBAEHhEJAAEhABFgDg6AADACAxSDEMQBQKAAzQFAYbhgHCGAAGQaBUgmFgAQhFcZQSKUOQTDKMIziYBYfgkMIgSbJUgDGAkRRdDSOYIkWA5AiKEYoThCIxzTJ8aw3CKbYRAKCXfoUAJFP7Fc6ABJMBx3EyhZ89NDYEwTIKBahoehqIheEQyDSJNb2DCIahhMSEbKtCooDhGFpUWzLdxTJJVawHJoABjkS45PjEAJ+SBPUZVRRlFyfO7BKSjMKKXgkG4zABWVa1bC1FzxQ6mKykKQLQADDIDVZAeL3JTNCS5IyLLDtO77EqmZ5la7cUgRDj4AY7Ua+MzubBZaovOqDYzAey7TDWLRXFDNIzzTgQAyHHrETZHGqwJxMAEapYGqYpVi2HwzDuQ5oHKIQgggSSUGMOgdE4RhYDwJBVAwIQTH2UYhjQJBRAmZxuCEHZ3icJp5EgKxgAIVgCCQSQSEIBQkCAYhCAIJYKmKNIuFcTBIESPYEk6GBUm+BZOmOPgZgWYRTiYEwvEwaIEAAK4KnKOJrgmTpDjCbYJmKSI2CoOxihOLglCuAACioNg8COA4gmcOZOiidg+g+Dh4moOA8CMYokNmCoyiycQ8E8A4iE6D4OjOMgng8ZJjiITA8CSEouEcKwKkkLJyhQIoIkYU9LjORhcCsAAIACLQ8iaSJ6FKC5jJoaobA8KYoACCRKnmMJzhuDpZnSboMCKGJ4nMPIPDmYAACwKIDk6CoLCeU40m6I5oliMoKDyaICokLIpgoThviOKJoGYf4KmUKhMjMLJLCAAojCyaYoiYGoGmqM46CkOwPEoKonAACxKlSdItmiWBeBeDgrioNo3D0KxSlAAAtgsUpYnUPRPEoco8hCa+T40SxbBRj5tEsHJ1i6JhbGYS4ug8awelQLZAAKZI5C4DxrhYQ9ehmUppWiA48nAPRuFKYpiAAC47laZQ9iuKZSgOPotkuFI7C6C4gACPJAm8eQOhOQZoikDp3kCS5AACPoEk8fBGnqQgpDOSppD2TxjlyPZD6CfwekQTx5lKP5ImseZTCAL5MAMAAAkoTADmMLpIjISp+HSS4PgyMAADBzAHDSIoPCOUpWjObIKE8NJOHKIwPEaTprBsHpdjWLB9AieQ+DQYwQAAMR1EOZxWi+bx7HcWQ8msfRYnnDZQACRwxgwc5rGaMZPE0ZxqjWNZtgyRwAAyTZEnuXJzEyAx2kQcxNkye5cEy3cYAcANrGAIH4OAhx3gNGGPAfgIR8jBA4McBMARVhnH4HQOYmxuCpF2MsecEQVBvGQCcIQug6itGQBoARAQ=")
oCalendar.EndUpdate()

132:
How can I arrange the month's header (left, next, prev month, picture, ebn)

Dim oCalendar as P
Dim var_Appearance as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.BeginUpdate()
oCalendar.Appearance = 0
oCalendar.Template = "Background(8) = BackColor" // oCalendar.Background(8) = oCalendar.BackColor
oCalendar.FirstDay = 2
oCalendar.MaxMonthX = 2
oCalendar.MaxMonthY = 2
oCalendar.DrawGridLine = 0
oCalendar.WeekDays = "Su Mo Tu We Th Fr Sa"
oCalendar.MarkToday = .t.
oCalendar.AutoSize = 0
oCalendar.AlignmentDay = 1
oCalendar.FixedCellHeight = 32
oCalendar.FixedCellWidth = 32
oCalendar.DateHeaderFormat = "(\"\"[b=0],(\"\"[b=0]/24;2[b=0][bg=0x01000000]/\"\"[b=0]):24,\"\"[b=0]):32,(\"\"[b=0],(\"\"[b=0]/24;3[b=0][bg=0x01000000]/\"\"[b=0]):24,\"\"[b=0]):32,1"
oCalendar.Template = "DateHeaderField(1) = ` ( ( ( month(value) = month(date(````) ) and ( year(value) = year(date(````) ) ) ) ) ? ``<b><fgcolor=0000FF>`` : ```` ) + ``<c><%month%> <%year%>```" // oCalendar.DateHeaderField(1) = " ( ( ( month(value) = month(date(``) ) and ( year(value) = year(date(``) ) ) ) ) ? `<b><fgcolor=0000FF>` : `` ) + `<c><%month%> <%year%>`"
oCalendar.Template = "HTMLPicture(`up`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJZJJEIJUPDaMZkUAQGAOP4DRShOgvHIGQA0U5CbKzOIZYRIICzCaUX4PS4hRgEGg/QaKJLhGSESIIZoMfAMMIkKQzJxDDBJaCMaoQSABVhAXgQRBLRFdNhIB4QY4PfyUJB7AYAFo+DIWOb7LDdiIAJJFJxEVxCMCCgIA=`" // oCalendar.HTMLPicture("up") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJZJJEIJUPDaMZkUAQGAOP4DRShOgvHIGQA0U5CbKzOIZYRIICzCaUX4PS4hRgEGg/QaKJLhGSESIIZoMfAMMIkKQzJxDDBJaCMaoQSABVhAXgQRBLRFdNhIB4QY4PfyUJB7AYAFo+DIWOb7LDdiIAJJFJxEVxCMCCgIA="
oCalendar.Template = "HTMLPicture(`down`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIEM5BJpBhSxR4LfhhAsRKZJIhBKg4J7tRjJBIAEAMAjzWIJba0E5rWQcWaBAoFR7oK4HewRZCMPiMUDLXRoS4PfjCQJrEhdaJ5ET4YIvTgOJ5kFSTKpkFaTKLEFqTGxyFgTIyuMgCeJaPwDSIKEhlCT5ZoWFT4iIAJJFJxEVxCMCCgIA=`" // oCalendar.HTMLPicture("down") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIEM5BJpBhSxR4LfhhAsRKZJIhBKg4J7tRjJBIAEAMAjzWIJba0E5rWQcWaBAoFR7oK4HewRZCMPiMUDLXRoS4PfjCQJrEhdaJ5ET4YIvTgOJ5kFSTKpkFaTKLEFqTGxyFgTIyuMgCeJaPwDSIKEhlCT5ZoWFT4iIAJJFJxEVxCMCCgIA="
oCalendar.Template = "HTMLPicture(`left`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJUJJEIJUPDaMZkEANWACeJvMgBIwSGgXAaxGIQI6RMYAJBzFQQHYBeIzKQNYCpTIYAbwNQmMgAILNfAMEBKGYuAaIaxMGYDFD2ARVASRNBDNCeSAIDRCW7MAgDDDZDIAKbADgRVrfUCNiIAJJFJxEVxCMCCgI`" // oCalendar.HTMLPicture("left") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJUJJEIJUPDaMZkEANWACeJvMgBIwSGgXAaxGIQI6RMYAJBzFQQHYBeIzKQNYCpTIYAbwNQmMgAILNfAMEBKGYuAaIaxMGYDFD2ARVASRNBDNCeSAIDRCW7MAgDDDZDIAKbADgRVrfUCNiIAJJFJxEVxCMCCgI"
oCalendar.Template = "HTMLPicture(`right`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIBOZSI5CACuZwcdMRAhnIJNIMKWKPBb8MIFiIJOBILJzhQOYc7YYBY5vVBkiJEJJEIJUHBPMbAARYUI0KKADJKEaDEpAVgAYjHYI8GSACgQb4AcRiGCPJgwNQIEzANIICaUUwpUDIBYjKIzBAsAZiWQ1QYABLZTKBAIATL2CUxXJdV8RABJIpOIiuIRgQUBA=`" // oCalendar.HTMLPicture("right") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIBOZSI5CACuZwcdMRAhnIJNIMKWKPBb8MIFiIJOBILJzhQOYc7YYBY5vVBkiJEJJEIJUHBPMbAARYUI0KKADJKEaDEpAVgAYjHYI8GSACgQb4AcRiGCPJgwNQIEzANIICaUUwpUDIBYjKIzBAsAZiWQ1QYABLZTKBAIATL2CUxXJdV8RABJIpOIiuIRgQUBA="
oCalendar.Template = "DateHeaderField(2) = `<c><img>up</img>`" // oCalendar.DateHeaderField(2) = "<c><img>up</img>"
oCalendar.Template = "DateHeaderField(3) = `<c><img>down</img>`" // oCalendar.DateHeaderField(3) = "<c><img>down</img>"
oCalendar.Template = "DateHeaderField(4) = `<c><img>left</img>`" // oCalendar.DateHeaderField(4) = "<c><img>left</img>"
oCalendar.Template = "DateHeaderField(5) = `<c><img>right</img>`" // oCalendar.DateHeaderField(5) = "<c><img>right</img>"
var_Appearance = oCalendar.VisualAppearance
	var_Appearance.Add(1,"gBFLBCJwBAEHhEJAAEhABFgDg6AADACAxSDEMQBQKAAzQFAYbhgHCGAAGQaBUgmFgAQhFcZQSKUOQTDKMIziYBYfgkMIgSbJUgDGAkRRdDSOYIkWA5AiKEYoThCIxzTJ8aw3CKbYRAKCXfoUAJFP7Fc6ABJMBx3EyhZ89NDYEwTIKBahoehqIheEQyDSJNb2DCIahhMSEbKtCooDhGFpUWzLdxTJJVawHJoABjkS45PjEAJ+SBPUZVRRlFyfO7BKSjMKKXgkG4zABWVa1bC1FzxQ6mKykKQLQADDIDVZAeL3JTNCS5IyLLDtO77EqmZ5la7cUgRDj4AY7Ua+MzubBZaovOqDYzAey7TDWLRXFDNIzzTgQAyHHrETZHGqwJxMAEapYGqYpVi2HwzDuQ5oHKIQgggSSUGMOgdE4RhYDwJBVAwIQTH2UYhjQJBRAmZxuCEHZ3icJp5EgKxgAIVgCCQSQSEIBQkCAYhCAIJYKmKNIuFcTBIESPYEk6GBUm+BZOmOPgZgWYRTiYEwvEwaIEAAK4KnKOJrgmTpDjCbYJmKSI2CoOxihOLglCuAACioNg8COA4gmcOZOiidg+g+Dh4moOA8CMYokNmCoyiycQ8E8A4iE6D4OjOMgng8ZJjiITA8CSEouEcKwKkkLJyhQIoIkYU9LjORhcCsAAIACLQ8iaSJ6FKC5jJoaobA8KYoACCRKnmMJzhuDpZnSboMCKGJ4nMPIPDmYAACwKIDk6CoLCeU40m6I5oliMoKDyaICokLIpgoThviOKJoGYf4KmUKhMjMLJLCAAojCyaYoiYGoGmqM46CkOwPEoKonAACxKlSdItmiWBeBeDgrioNo3D0KxSlAAAtgsUpYnUPRPEoco8hCa+T40SxbBRj5tEsHJ1i6JhbGYS4ug8awelQLZAAKZI5C4DxrhYQ9ehmUppWiA48nAPRuFKYpiAAC47laZQ9iuKZSgOPotkuFI7C6C4gACPJAm8eQOhOQZoikDp3kCS5AACPoEk8fBGnqQgpDOSppD2TxjlyPZD6CfwekQTx5lKP5ImseZTCAL5MAMAAAkoTADmMLpIjISp+HSS4PgyMAADBzAHDSIoPCOUpWjObIKE8NJOHKIwPEaTprBsHpdjWLB9AieQ+DQYwQAAMR1EOZxWi+bx7HcWQ8msfRYnnDZQACRwxgwc5rGaMZPE0ZxqjWNZtgyRwAAyTZEnuXJzEyAx2kQcxNkye5cEy3cYAcANrGAIH4OAhx3gNGGPAfgIR8jBA4McBMARVhnH4HQOYmxuCpF2MsecEQVBvGQCcIQug6itGQBoARAQ=")
oCalendar.EndUpdate()

131:
How can I arrange the month's header (left, right, next, prev month, picture, ebn)

Dim oCalendar as P
Dim var_Appearance as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.BeginUpdate()
oCalendar.Appearance = 0
oCalendar.Template = "Background(8) = BackColor" // oCalendar.Background(8) = oCalendar.BackColor
oCalendar.FirstDay = 2
oCalendar.MaxMonthX = 2
oCalendar.MaxMonthY = 2
oCalendar.DrawGridLine = 0
oCalendar.WeekDays = "Su Mo Tu We Th Fr Sa"
oCalendar.MarkToday = .t.
oCalendar.AutoSize = 0
oCalendar.AlignmentDay = 1
oCalendar.FixedCellHeight = 32
oCalendar.FixedCellWidth = 32
oCalendar.DateHeaderFormat = "(\"\"[b=0],(\"\"[b=0]/24;2[b=0][bg=0x01000000]/\"\"[b=0]):24,\"\"[b=0]):32,1,(\"\"[b=0],(\"\"[b=0]/24;3[b=0][bg=0x01000000]/\"\"[b=0]):24,\"\"[b=0]):32"
oCalendar.Template = "DateHeaderField(1) = ` ( ( ( month(value) = month(date(````) ) and ( year(value) = year(date(````) ) ) ) ) ? ``<b><fgcolor=0000FF>`` : ```` ) + ``<c><%month%> <%year%>```" // oCalendar.DateHeaderField(1) = " ( ( ( month(value) = month(date(``) ) and ( year(value) = year(date(``) ) ) ) ) ? `<b><fgcolor=0000FF>` : `` ) + `<c><%month%> <%year%>`"
oCalendar.Template = "HTMLPicture(`up`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJZJJEIJUPDaMZkUAQGAOP4DRShOgvHIGQA0U5CbKzOIZYRIICzCaUX4PS4hRgEGg/QaKJLhGSESIIZoMfAMMIkKQzJxDDBJaCMaoQSABVhAXgQRBLRFdNhIB4QY4PfyUJB7AYAFo+DIWOb7LDdiIAJJFJxEVxCMCCgIA=`" // oCalendar.HTMLPicture("up") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJZJJEIJUPDaMZkUAQGAOP4DRShOgvHIGQA0U5CbKzOIZYRIICzCaUX4PS4hRgEGg/QaKJLhGSESIIZoMfAMMIkKQzJxDDBJaCMaoQSABVhAXgQRBLRFdNhIB4QY4PfyUJB7AYAFo+DIWOb7LDdiIAJJFJxEVxCMCCgIA="
oCalendar.Template = "HTMLPicture(`down`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIEM5BJpBhSxR4LfhhAsRKZJIhBKg4J7tRjJBIAEAMAjzWIJba0E5rWQcWaBAoFR7oK4HewRZCMPiMUDLXRoS4PfjCQJrEhdaJ5ET4YIvTgOJ5kFSTKpkFaTKLEFqTGxyFgTIyuMgCeJaPwDSIKEhlCT5ZoWFT4iIAJJFJxEVxCMCCgIA=`" // oCalendar.HTMLPicture("down") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIEM5BJpBhSxR4LfhhAsRKZJIhBKg4J7tRjJBIAEAMAjzWIJba0E5rWQcWaBAoFR7oK4HewRZCMPiMUDLXRoS4PfjCQJrEhdaJ5ET4YIvTgOJ5kFSTKpkFaTKLEFqTGxyFgTIyuMgCeJaPwDSIKEhlCT5ZoWFT4iIAJJFJxEVxCMCCgIA="
oCalendar.Template = "HTMLPicture(`left`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJUJJEIJUPDaMZkEANWACeJvMgBIwSGgXAaxGIQI6RMYAJBzFQQHYBeIzKQNYCpTIYAbwNQmMgAILNfAMEBKGYuAaIaxMGYDFD2ARVASRNBDNCeSAIDRCW7MAgDDDZDIAKbADgRVrfUCNiIAJJFJxEVxCMCCgI`" // oCalendar.HTMLPicture("left") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJUJJEIJUPDaMZkEANWACeJvMgBIwSGgXAaxGIQI6RMYAJBzFQQHYBeIzKQNYCpTIYAbwNQmMgAILNfAMEBKGYuAaIaxMGYDFD2ARVASRNBDNCeSAIDRCW7MAgDDDZDIAKbADgRVrfUCNiIAJJFJxEVxCMCCgI"
oCalendar.Template = "HTMLPicture(`right`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIBOZSI5CACuZwcdMRAhnIJNIMKWKPBb8MIFiIJOBILJzhQOYc7YYBY5vVBkiJEJJEIJUHBPMbAARYUI0KKADJKEaDEpAVgAYjHYI8GSACgQb4AcRiGCPJgwNQIEzANIICaUUwpUDIBYjKIzBAsAZiWQ1QYABLZTKBAIATL2CUxXJdV8RABJIpOIiuIRgQUBA=`" // oCalendar.HTMLPicture("right") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIBOZSI5CACuZwcdMRAhnIJNIMKWKPBb8MIFiIJOBILJzhQOYc7YYBY5vVBkiJEJJEIJUHBPMbAARYUI0KKADJKEaDEpAVgAYjHYI8GSACgQb4AcRiGCPJgwNQIEzANIICaUUwpUDIBYjKIzBAsAZiWQ1QYABLZTKBAIATL2CUxXJdV8RABJIpOIiuIRgQUBA="
oCalendar.Template = "DateHeaderField(2) = `<c><img>up</img>`" // oCalendar.DateHeaderField(2) = "<c><img>up</img>"
oCalendar.Template = "DateHeaderField(3) = `<c><img>down</img>`" // oCalendar.DateHeaderField(3) = "<c><img>down</img>"
oCalendar.Template = "DateHeaderField(4) = `<c><img>left</img>`" // oCalendar.DateHeaderField(4) = "<c><img>left</img>"
oCalendar.Template = "DateHeaderField(5) = `<c><img>right</img>`" // oCalendar.DateHeaderField(5) = "<c><img>right</img>"
var_Appearance = oCalendar.VisualAppearance
	var_Appearance.Add(1,"gBFLBCJwBAEHhEJAAEhABFgDg6AADACAxSDEMQBQKAAzQFAYbhgHCGAAGQaBUgmFgAQhFcZQSKUOQTDKMIziYBYfgkMIgSbJUgDGAkRRdDSOYIkWA5AiKEYoThCIxzTJ8aw3CKbYRAKCXfoUAJFP7Fc6ABJMBx3EyhZ89NDYEwTIKBahoehqIheEQyDSJNb2DCIahhMSEbKtCooDhGFpUWzLdxTJJVawHJoABjkS45PjEAJ+SBPUZVRRlFyfO7BKSjMKKXgkG4zABWVa1bC1FzxQ6mKykKQLQADDIDVZAeL3JTNCS5IyLLDtO77EqmZ5la7cUgRDj4AY7Ua+MzubBZaovOqDYzAey7TDWLRXFDNIzzTgQAyHHrETZHGqwJxMAEapYGqYpVi2HwzDuQ5oHKIQgggSSUGMOgdE4RhYDwJBVAwIQTH2UYhjQJBRAmZxuCEHZ3icJp5EgKxgAIVgCCQSQSEIBQkCAYhCAIJYKmKNIuFcTBIESPYEk6GBUm+BZOmOPgZgWYRTiYEwvEwaIEAAK4KnKOJrgmTpDjCbYJmKSI2CoOxihOLglCuAACioNg8COA4gmcOZOiidg+g+Dh4moOA8CMYokNmCoyiycQ8E8A4iE6D4OjOMgng8ZJjiITA8CSEouEcKwKkkLJyhQIoIkYU9LjORhcCsAAIACLQ8iaSJ6FKC5jJoaobA8KYoACCRKnmMJzhuDpZnSboMCKGJ4nMPIPDmYAACwKIDk6CoLCeU40m6I5oliMoKDyaICokLIpgoThviOKJoGYf4KmUKhMjMLJLCAAojCyaYoiYGoGmqM46CkOwPEoKonAACxKlSdItmiWBeBeDgrioNo3D0KxSlAAAtgsUpYnUPRPEoco8hCa+T40SxbBRj5tEsHJ1i6JhbGYS4ug8awelQLZAAKZI5C4DxrhYQ9ehmUppWiA48nAPRuFKYpiAAC47laZQ9iuKZSgOPotkuFI7C6C4gACPJAm8eQOhOQZoikDp3kCS5AACPoEk8fBGnqQgpDOSppD2TxjlyPZD6CfwekQTx5lKP5ImseZTCAL5MAMAAAkoTADmMLpIjISp+HSS4PgyMAADBzAHDSIoPCOUpWjObIKE8NJOHKIwPEaTprBsHpdjWLB9AieQ+DQYwQAAMR1EOZxWi+bx7HcWQ8msfRYnnDZQACRwxgwc5rGaMZPE0ZxqjWNZtgyRwAAyTZEnuXJzEyAx2kQcxNkye5cEy3cYAcANrGAIH4OAhx3gNGGPAfgIR8jBA4McBMARVhnH4HQOYmxuCpF2MsecEQVBvGQCcIQug6itGQBoARAQ=")
oCalendar.EndUpdate()

130:
How can I arrange the month's header (right, next, prev month, picture, ebn)

Dim oCalendar as P
Dim var_Appearance as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.BeginUpdate()
oCalendar.Appearance = 0
oCalendar.Template = "Background(8) = BackColor" // oCalendar.Background(8) = oCalendar.BackColor
oCalendar.FirstDay = 2
oCalendar.MaxMonthX = 2
oCalendar.MaxMonthY = 2
oCalendar.DrawGridLine = 0
oCalendar.WeekDays = "Su Mo Tu We Th Fr Sa"
oCalendar.MarkToday = .t.
oCalendar.AutoSize = 0
oCalendar.AlignmentDay = 1
oCalendar.FixedCellHeight = 32
oCalendar.FixedCellWidth = 32
oCalendar.DateHeaderFormat = "1,(\"\"[b=0],(\"\"[b=0]/24;2[b=0][bg=0x01000000]/\"\"[b=0]):24,\"\"[b=0]):32,(\"\"[b=0],(\"\"[b=0]/24;3[b=0][bg=0x01000000]/\"\"[b=0]):24,\"\"[b=0]):32"
oCalendar.Template = "DateHeaderField(1) = ` ( ( ( month(value) = month(date(````) ) and ( year(value) = year(date(````) ) ) ) ) ? ``<b><fgcolor=0000FF>`` : ```` ) + ``<c><%month%> <%year%>```" // oCalendar.DateHeaderField(1) = " ( ( ( month(value) = month(date(``) ) and ( year(value) = year(date(``) ) ) ) ) ? `<b><fgcolor=0000FF>` : `` ) + `<c><%month%> <%year%>`"
oCalendar.Template = "HTMLPicture(`up`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJZJJEIJUPDaMZkUAQGAOP4DRShOgvHIGQA0U5CbKzOIZYRIICzCaUX4PS4hRgEGg/QaKJLhGSESIIZoMfAMMIkKQzJxDDBJaCMaoQSABVhAXgQRBLRFdNhIB4QY4PfyUJB7AYAFo+DIWOb7LDdiIAJJFJxEVxCMCCgIA=`" // oCalendar.HTMLPicture("up") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJZJJEIJUPDaMZkUAQGAOP4DRShOgvHIGQA0U5CbKzOIZYRIICzCaUX4PS4hRgEGg/QaKJLhGSESIIZoMfAMMIkKQzJxDDBJaCMaoQSABVhAXgQRBLRFdNhIB4QY4PfyUJB7AYAFo+DIWOb7LDdiIAJJFJxEVxCMCCgIA="
oCalendar.Template = "HTMLPicture(`down`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIEM5BJpBhSxR4LfhhAsRKZJIhBKg4J7tRjJBIAEAMAjzWIJba0E5rWQcWaBAoFR7oK4HewRZCMPiMUDLXRoS4PfjCQJrEhdaJ5ET4YIvTgOJ5kFSTKpkFaTKLEFqTGxyFgTIyuMgCeJaPwDSIKEhlCT5ZoWFT4iIAJJFJxEVxCMCCgIA=`" // oCalendar.HTMLPicture("down") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIEM5BJpBhSxR4LfhhAsRKZJIhBKg4J7tRjJBIAEAMAjzWIJba0E5rWQcWaBAoFR7oK4HewRZCMPiMUDLXRoS4PfjCQJrEhdaJ5ET4YIvTgOJ5kFSTKpkFaTKLEFqTGxyFgTIyuMgCeJaPwDSIKEhlCT5ZoWFT4iIAJJFJxEVxCMCCgIA="
oCalendar.Template = "HTMLPicture(`left`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJUJJEIJUPDaMZkEANWACeJvMgBIwSGgXAaxGIQI6RMYAJBzFQQHYBeIzKQNYCpTIYAbwNQmMgAILNfAMEBKGYuAaIaxMGYDFD2ARVASRNBDNCeSAIDRCW7MAgDDDZDIAKbADgRVrfUCNiIAJJFJxEVxCMCCgI`" // oCalendar.HTMLPicture("left") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJUJJEIJUPDaMZkEANWACeJvMgBIwSGgXAaxGIQI6RMYAJBzFQQHYBeIzKQNYCpTIYAbwNQmMgAILNfAMEBKGYuAaIaxMGYDFD2ARVASRNBDNCeSAIDRCW7MAgDDDZDIAKbADgRVrfUCNiIAJJFJxEVxCMCCgI"
oCalendar.Template = "HTMLPicture(`right`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIBOZSI5CACuZwcdMRAhnIJNIMKWKPBb8MIFiIJOBILJzhQOYc7YYBY5vVBkiJEJJEIJUHBPMbAARYUI0KKADJKEaDEpAVgAYjHYI8GSACgQb4AcRiGCPJgwNQIEzANIICaUUwpUDIBYjKIzBAsAZiWQ1QYABLZTKBAIATL2CUxXJdV8RABJIpOIiuIRgQUBA=`" // oCalendar.HTMLPicture("right") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIBOZSI5CACuZwcdMRAhnIJNIMKWKPBb8MIFiIJOBILJzhQOYc7YYBY5vVBkiJEJJEIJUHBPMbAARYUI0KKADJKEaDEpAVgAYjHYI8GSACgQb4AcRiGCPJgwNQIEzANIICaUUwpUDIBYjKIzBAsAZiWQ1QYABLZTKBAIATL2CUxXJdV8RABJIpOIiuIRgQUBA="
oCalendar.Template = "DateHeaderField(2) = `<c><img>up</img>`" // oCalendar.DateHeaderField(2) = "<c><img>up</img>"
oCalendar.Template = "DateHeaderField(3) = `<c><img>down</img>`" // oCalendar.DateHeaderField(3) = "<c><img>down</img>"
oCalendar.Template = "DateHeaderField(4) = `<c><img>left</img>`" // oCalendar.DateHeaderField(4) = "<c><img>left</img>"
oCalendar.Template = "DateHeaderField(5) = `<c><img>right</img>`" // oCalendar.DateHeaderField(5) = "<c><img>right</img>"
var_Appearance = oCalendar.VisualAppearance
	var_Appearance.Add(1,"gBFLBCJwBAEHhEJAAEhABFgDg6AADACAxSDEMQBQKAAzQFAYbhgHCGAAGQaBUgmFgAQhFcZQSKUOQTDKMIziYBYfgkMIgSbJUgDGAkRRdDSOYIkWA5AiKEYoThCIxzTJ8aw3CKbYRAKCXfoUAJFP7Fc6ABJMBx3EyhZ89NDYEwTIKBahoehqIheEQyDSJNb2DCIahhMSEbKtCooDhGFpUWzLdxTJJVawHJoABjkS45PjEAJ+SBPUZVRRlFyfO7BKSjMKKXgkG4zABWVa1bC1FzxQ6mKykKQLQADDIDVZAeL3JTNCS5IyLLDtO77EqmZ5la7cUgRDj4AY7Ua+MzubBZaovOqDYzAey7TDWLRXFDNIzzTgQAyHHrETZHGqwJxMAEapYGqYpVi2HwzDuQ5oHKIQgggSSUGMOgdE4RhYDwJBVAwIQTH2UYhjQJBRAmZxuCEHZ3icJp5EgKxgAIVgCCQSQSEIBQkCAYhCAIJYKmKNIuFcTBIESPYEk6GBUm+BZOmOPgZgWYRTiYEwvEwaIEAAK4KnKOJrgmTpDjCbYJmKSI2CoOxihOLglCuAACioNg8COA4gmcOZOiidg+g+Dh4moOA8CMYokNmCoyiycQ8E8A4iE6D4OjOMgng8ZJjiITA8CSEouEcKwKkkLJyhQIoIkYU9LjORhcCsAAIACLQ8iaSJ6FKC5jJoaobA8KYoACCRKnmMJzhuDpZnSboMCKGJ4nMPIPDmYAACwKIDk6CoLCeU40m6I5oliMoKDyaICokLIpgoThviOKJoGYf4KmUKhMjMLJLCAAojCyaYoiYGoGmqM46CkOwPEoKonAACxKlSdItmiWBeBeDgrioNo3D0KxSlAAAtgsUpYnUPRPEoco8hCa+T40SxbBRj5tEsHJ1i6JhbGYS4ug8awelQLZAAKZI5C4DxrhYQ9ehmUppWiA48nAPRuFKYpiAAC47laZQ9iuKZSgOPotkuFI7C6C4gACPJAm8eQOhOQZoikDp3kCS5AACPoEk8fBGnqQgpDOSppD2TxjlyPZD6CfwekQTx5lKP5ImseZTCAL5MAMAAAkoTADmMLpIjISp+HSS4PgyMAADBzAHDSIoPCOUpWjObIKE8NJOHKIwPEaTprBsHpdjWLB9AieQ+DQYwQAAMR1EOZxWi+bx7HcWQ8msfRYnnDZQACRwxgwc5rGaMZPE0ZxqjWNZtgyRwAAyTZEnuXJzEyAx2kQcxNkye5cEy3cYAcANrGAIH4OAhx3gNGGPAfgIR8jBA4McBMARVhnH4HQOYmxuCpF2MsecEQVBvGQCcIQug6itGQBoARAQ=")
oCalendar.EndUpdate()

129:
Can I specify a different foreground color for the current month

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.BeginUpdate()
oCalendar.Appearance = 0
oCalendar.Template = "Background(8) = BackColor" // oCalendar.Background(8) = oCalendar.BackColor
oCalendar.FirstDay = 2
oCalendar.MaxMonthX = 2
oCalendar.MaxMonthY = 2
oCalendar.DrawGridLine = 0
oCalendar.WeekDays = "Su Mo Tu We Th Fr Sa"
oCalendar.MarkToday = .t.
oCalendar.AutoSize = 0
oCalendar.AlignmentDay = 1
oCalendar.FixedCellHeight = 32
oCalendar.FixedCellWidth = 32
oCalendar.DateHeaderFormat = "1,2:32,3:32"
oCalendar.Template = "DateHeaderField(1) = ` ( ( ( month(value) = month(date(````) ) and ( year(value) = year(date(````) ) ) ) ) ? ``<b><fgcolor=0000FF>`` : ```` ) + ``<c><%month%> <%year%>```" // oCalendar.DateHeaderField(1) = " ( ( ( month(value) = month(date(``) ) and ( year(value) = year(date(``) ) ) ) ) ? `<b><fgcolor=0000FF>` : `` ) + `<c><%month%> <%year%>`"
oCalendar.EndUpdate()

128:
How do I change the +/- when using the custom format for month's header (with no background)

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.BeginUpdate()
oCalendar.Appearance = 0
oCalendar.Template = "Background(8) = BackColor" // oCalendar.Background(8) = oCalendar.BackColor
oCalendar.FirstDay = 2
oCalendar.MaxMonthX = 2
oCalendar.MaxMonthY = 2
oCalendar.DrawGridLine = 0
oCalendar.WeekDays = "Su Mo Tu We Th Fr Sa"
oCalendar.MarkToday = .t.
oCalendar.AutoSize = 0
oCalendar.AlignmentDay = 1
oCalendar.FixedCellHeight = 32
oCalendar.FixedCellWidth = 32
oCalendar.DateHeaderFormat = "1,2:32,3:32"
oCalendar.Template = "HTMLPicture(`up`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJZJJEIJUPDaMZkUAQGAOP4DRShOgvHIGQA0U5CbKzOIZYRIICzCaUX4PS4hRgEGg/QaKJLhGSESIIZoMfAMMIkKQzJxDDBJaCMaoQSABVhAXgQRBLRFdNhIB4QY4PfyUJB7AYAFo+DIWOb7LDdiIAJJFJxEVxCMCCgIA=`" // oCalendar.HTMLPicture("up") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJZJJEIJUPDaMZkUAQGAOP4DRShOgvHIGQA0U5CbKzOIZYRIICzCaUX4PS4hRgEGg/QaKJLhGSESIIZoMfAMMIkKQzJxDDBJaCMaoQSABVhAXgQRBLRFdNhIB4QY4PfyUJB7AYAFo+DIWOb7LDdiIAJJFJxEVxCMCCgIA="
oCalendar.Template = "HTMLPicture(`down`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIEM5BJpBhSxR4LfhhAsRKZJIhBKg4J7tRjJBIAEAMAjzWIJba0E5rWQcWaBAoFR7oK4HewRZCMPiMUDLXRoS4PfjCQJrEhdaJ5ET4YIvTgOJ5kFSTKpkFaTKLEFqTGxyFgTIyuMgCeJaPwDSIKEhlCT5ZoWFT4iIAJJFJxEVxCMCCgIA=`" // oCalendar.HTMLPicture("down") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIEM5BJpBhSxR4LfhhAsRKZJIhBKg4J7tRjJBIAEAMAjzWIJba0E5rWQcWaBAoFR7oK4HewRZCMPiMUDLXRoS4PfjCQJrEhdaJ5ET4YIvTgOJ5kFSTKpkFaTKLEFqTGxyFgTIyuMgCeJaPwDSIKEhlCT5ZoWFT4iIAJJFJxEVxCMCCgIA="
oCalendar.Template = "DateHeaderField(2) = `<c><img>up</img>`" // oCalendar.DateHeaderField(2) = "<c><img>up</img>"
oCalendar.Template = "DateHeaderField(3) = `<c><img>down</img>`" // oCalendar.DateHeaderField(3) = "<c><img>down</img>"
oCalendar.EndUpdate()

127:
How do I change the +/- when using the custom format for month's header (with background)

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.BeginUpdate()
oCalendar.Appearance = 0
oCalendar.Template = "Background(8) = BackColor" // oCalendar.Background(8) = oCalendar.BackColor
oCalendar.FirstDay = 2
oCalendar.MaxMonthX = 2
oCalendar.MaxMonthY = 2
oCalendar.DrawGridLine = 0
oCalendar.WeekDays = "Su Mo Tu We Th Fr Sa"
oCalendar.MarkToday = .t.
oCalendar.AutoSize = 0
oCalendar.AlignmentDay = 1
oCalendar.FixedCellHeight = 32
oCalendar.FixedCellWidth = 32
oCalendar.DateHeaderFormat = "1,(\"\"[b=0],(\"\"[b=0]/24;2[b=0][bg=RGB(196,196,196)]/\"\"[b=0]):24,\"\"[b=0]):32,(\"\"[b=0],(\"\"[b=0]/24;3[b=0][bg=RGB(196,196,196)]/\"\"[b=0]):24,\"\"[b=0]):32"
oCalendar.Template = "HTMLPicture(`up`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJZJJEIJUPDaMZkUAQGAOP4DRShOgvHIGQA0U5CbKzOIZYRIICzCaUX4PS4hRgEGg/QaKJLhGSESIIZoMfAMMIkKQzJxDDBJaCMaoQSABVhAXgQRBLRFdNhIB4QY4PfyUJB7AYAFo+DIWOb7LDdiIAJJFJxEVxCMCCgIA=`" // oCalendar.HTMLPicture("up") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiJZJJEIJUPDaMZkUAQGAOP4DRShOgvHIGQA0U5CbKzOIZYRIICzCaUX4PS4hRgEGg/QaKJLhGSESIIZoMfAMMIkKQzJxDDBJaCMaoQSABVhAXgQRBLRFdNhIB4QY4PfyUJB7AYAFo+DIWOb7LDdiIAJJFJxEVxCMCCgIA="
oCalendar.Template = "HTMLPicture(`down`) = `gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIEM5BJpBhSxR4LfhhAsRKZJIhBKg4J7tRjJBIAEAMAjzWIJba0E5rWQcWaBAoFR7oK4HewRZCMPiMUDLXRoS4PfjCQJrEhdaJ5ET4YIvTgOJ5kFSTKpkFaTKLEFqTGxyFgTIyuMgCeJaPwDSIKEhlCT5ZoWFT4iIAJJFJxEVxCMCCgIA=`" // oCalendar.HTMLPicture("down") = "gCJKBOI4NBQaBQAhQNJJIIhShQACERCAIA0RD7zf5hiIEM5BJpBhSxR4LfhhAsRKZJIhBKg4J7tRjJBIAEAMAjzWIJba0E5rWQcWaBAoFR7oK4HewRZCMPiMUDLXRoS4PfjCQJrEhdaJ5ET4YIvTgOJ5kFSTKpkFaTKLEFqTGxyFgTIyuMgCeJaPwDSIKEhlCT5ZoWFT4iIAJJFJxEVxCMCCgIA="
oCalendar.Template = "DateHeaderField(2) = `<c><img>up</img>`" // oCalendar.DateHeaderField(2) = "<c><img>up</img>"
oCalendar.Template = "DateHeaderField(3) = `<c><img>down</img>`" // oCalendar.DateHeaderField(3) = "<c><img>down</img>"
oCalendar.EndUpdate()

126:
How can I arrange the month's header (right, next, prev month)

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.BeginUpdate()
oCalendar.Appearance = 0
oCalendar.Template = "Background(8) = BackColor" // oCalendar.Background(8) = oCalendar.BackColor
oCalendar.FirstDay = 2
oCalendar.MaxMonthX = 2
oCalendar.MaxMonthY = 2
oCalendar.DrawGridLine = 0
oCalendar.WeekDays = "Su Mo Tu We Th Fr Sa"
oCalendar.MarkToday = .t.
oCalendar.AutoSize = 0
oCalendar.AlignmentDay = 1
oCalendar.FixedCellHeight = 32
oCalendar.FixedCellWidth = 32
oCalendar.DateHeaderFormat = "1,(\"\"[b=0],(\"\"[b=0]/24;2[b=0][bg=RGB(196,196,196)]/\"\"[b=0]):24,\"\"[b=0]):32,(\"\"[b=0],(\"\"[b=0]/24;3[b=0][bg=RGB(196,196,196)]/\"\"[b=0]):24,\"\"[b=0]):32"
oCalendar.EndUpdate()

125:
How do I display the week number according, so the January 1st is in the first week

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.BeginUpdate()
oCalendar.FirstDay = 1
oCalendar.DisplayWeekNumberAs = 1
oCalendar.ShowWeeks = .t.
oCalendar.Date = {01/01/2016}
oCalendar.EndUpdate()

124:
How do I display the week number according to ISO8601 standard

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.BeginUpdate()
oCalendar.FirstDay = 2
oCalendar.DisplayWeekNumberAs = 0
oCalendar.ShowWeeks = .t.
oCalendar.Date = {01/01/2016}
oCalendar.EndUpdate()

123:
Just seen the BackgroundExt property. Not sure what I can do with that

Dim oCalendar as P
Dim var_Event as local
Dim var_Event1 as local
Dim var_Event10 as P
Dim var_Event11 as local
Dim var_Event12 as P
Dim var_Event2 as local
Dim var_Event3 as local
Dim var_Event4 as local
Dim var_Event5 as local
Dim var_Event6 as local
Dim var_Event7 as local
Dim var_Event8 as local
Dim var_Event9 as local
Dim var_Events as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.BeginUpdate()
oCalendar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oCalendar.AlignmentDay = 1
oCalendar.FixedCellWidth = 48
oCalendar.FixedCellHeight = 48
oCalendar.AutoSize = 0
oCalendar.MaxMonthX = 1
oCalendar.MaxMonthY = 1
oCalendar.Date = {02/01/2014}
oCalendar.ShowNonMonthDays = .f.
oCalendar.DrawGridLine = 2
var_Events = oCalendar.Events
	' var_Events.Add({02/03/2014}).BackgroundExt = "bottom[8,pattern=0x006,patterncolor=RGB(190,190,190),frame=RGB(0,0,0),framethick]"
	var_Event = var_Events.Add({02/03/2014})
	oCalendar.TemplateDef = "dim var_Event"
	oCalendar.TemplateDef = var_Event
	oCalendar.Template = "var_Event.BackgroundExt = `bottom[8,pattern=0x006,patterncolor=RGB(190,190,190),frame=RGB(0,0,0),framethick]`"

	' var_Events.Add({02/04/2014}).BackgroundExt = "bottom[100%,pattern=0x003,frame=RGB(0,0,0),framethick]"
	var_Event1 = var_Events.Add({02/04/2014})
	oCalendar.TemplateDef = "dim var_Event1"
	oCalendar.TemplateDef = var_Event1
	oCalendar.Template = "var_Event1.BackgroundExt = `bottom[100%,pattern=0x003,frame=RGB(0,0,0),framethick]`"

	' var_Events.Add({02/05/2014}).BackgroundExt = "top[8,pattern=0x006,patterncolor=RGB(190,190,190),frame=RGB(0,0,0),framethick]"
	var_Event2 = var_Events.Add({02/05/2014})
	oCalendar.TemplateDef = "dim var_Event2"
	oCalendar.TemplateDef = var_Event2
	oCalendar.Template = "var_Event2.BackgroundExt = `top[8,pattern=0x006,patterncolor=RGB(190,190,190),frame=RGB(0,0,0),framethick]`"

	' var_Events.Add({02/10/2014}).BackgroundExt = "top[4](left[4],right[4],client),bottom[4](left[4],right[4],client),left[4],right[4],client(left[10%](top[90%,back=RGB(0,0,0)]),top[30%,back=RGB(254,217,102)],client[back=RGB(123,250,212)])"
	var_Event3 = var_Events.Add({02/10/2014})
	oCalendar.TemplateDef = "dim var_Event3"
	oCalendar.TemplateDef = var_Event3
	oCalendar.Template = "var_Event3.BackgroundExt = `top[4](left[4],right[4],client),bottom[4](left[4],right[4],client),left[4],right[4],client(left[10%](top[90%,back=RGB(0,0,0)]),top[30%,back=RGB(254,217,102)],client[back=RGB(123,250,212)])`"

	' var_Events.Add({02/11/2014}).BackgroundExt = "left[33%,back=RGB(0,128,0)],left[33%,back=RGB(0,255,0)],client[back=RGB(255,128,128)]"
	var_Event4 = var_Events.Add({02/11/2014})
	oCalendar.TemplateDef = "dim var_Event4"
	oCalendar.TemplateDef = var_Event4
	oCalendar.Template = "var_Event4.BackgroundExt = `left[33%,back=RGB(0,128,0)],left[33%,back=RGB(0,255,0)],client[back=RGB(255,128,128)]`"

	' var_Events.Add({02/12/2014}).BackgroundExt = "top[33%,back=RGB(0,128,0)],left[33%,back=RGB(0,255,0)],client[back=RGB(255,128,128)](top[50%,back=RGB(0,255,255)])"
	var_Event5 = var_Events.Add({02/12/2014})
	oCalendar.TemplateDef = "dim var_Event5"
	oCalendar.TemplateDef = var_Event5
	oCalendar.Template = "var_Event5.BackgroundExt = `top[33%,back=RGB(0,128,0)],left[33%,back=RGB(0,255,0)],client[back=RGB(255,128,128)](top[50%,back=RGB(0,255,255)])`"

	' var_Events.Add({02/13/2014}).BackgroundExt = "bottom[12](left[75%,back=0x01000000]),none[(0,100%-22,100%,22),text=`<sha ;;0><font ;6>75%`,align=0x11]"
	var_Event6 = var_Events.Add({02/13/2014})
	oCalendar.TemplateDef = "dim var_Event6"
	oCalendar.TemplateDef = var_Event6
	oCalendar.Template = "var_Event6.BackgroundExt = `bottom[12](left[75%,back=0x01000000]),none[(0,100%-22,100%,22),text=``<sha ;;0><font ;6>75%``,align=0x11]`"

	' var_Events.Add({02/14/2014}).BackgroundExt = "top[12](left[55%,back=0x01FEFEFE]),none[(0,0,100%,12),pattern=0x000,frame=RGB(0,255,0)],none[(0,0,100%,22),text=`<sha ;;0><font ;6>55%`,align=0x11]"
	var_Event7 = var_Events.Add({02/14/2014})
	oCalendar.TemplateDef = "dim var_Event7"
	oCalendar.TemplateDef = var_Event7
	oCalendar.Template = "var_Event7.BackgroundExt = `top[12](left[55%,back=0x01FEFEFE]),none[(0,0,100%,12),pattern=0x000,frame=RGB(0,255,0)],none[(0,0,100%,22),text=``<sha ;;0><font ;6>55%``,align=0x11]`"

	' var_Events.Add({02/17/2014}).BackgroundExt = "bottom[16,align=0x11,text=`<fgcolor 808080><font ;6>extra`]"
	var_Event8 = var_Events.Add({02/17/2014})
	oCalendar.TemplateDef = "dim var_Event8"
	oCalendar.TemplateDef = var_Event8
	oCalendar.Template = "var_Event8.BackgroundExt = `bottom[16,align=0x11,text=``<fgcolor 808080><font ;6>extra``]`"

	' var_Events.Add({02/18/2014}).BackgroundExt = "root[text=`<fgcolor 808080><font ;6>extra 2`,align=0x01](bottom[16,text=`<fgcolor 808080><font ;6>extra1`,align=0x21])"
	var_Event9 = var_Events.Add({02/18/2014})
	oCalendar.TemplateDef = "dim var_Event9"
	oCalendar.TemplateDef = var_Event9
	oCalendar.Template = "var_Event9.BackgroundExt = `root[text=``<fgcolor 808080><font ;6>extra 2``,align=0x01](bottom[16,text=``<fgcolor 808080><font ;6>extra1``,align=0x21])`"

	var_Event10 = var_Events.Add({02/19/2014})
		var_Event10.BackgroundExt = "top[4](left[4],right[4],client),bottom[4](left[4],right[4],client),left[4],right[4],client[text=`<fgcolor 808080><font ;6><b>B`,align=0x22](client[text=`<fgcolor 808080><font ;6><b>A`,align=0x20](client[text=`<fgcolor 808080><font ;6><b>D`,align=0x00](client[text=`<fgcolor 808080><font ;6><b>C`,align=0x02](client))))"
		var_Event10.Caption = "<sha ;;0><font ;12><fgcolor FF0000><b><%day%>"
	' var_Events.Add({02/20/2014}).BackgroundExt = "root[text=`<fgcolor 808080><b>B`,align=0x22](client[text=`<fgcolor 808080><b>A`,align=0x20])"
	var_Event11 = var_Events.Add({02/20/2014})
	oCalendar.TemplateDef = "dim var_Event11"
	oCalendar.TemplateDef = var_Event11
	oCalendar.Template = "var_Event11.BackgroundExt = `root[text=``<fgcolor 808080><b>B``,align=0x22](client[text=``<fgcolor 808080><b>A``,align=0x20])`"

	var_Event12 = var_Events.Add({02/21/2014})
		var_Event12.BackgroundExt = "root[align=0,wordwrap,text=`<font ;6>This is a long story to put on your date, to break the lines. `]"
		var_Event12.Caption = "<b><fgcolor FFFFFF><out 1;2><font ;18><%day%>"
oCalendar.EndUpdate()

122:
How can I show a pattern over a date

Dim oCalendar as P
Dim var_Event as local
Dim var_Event1 as local
Dim var_Event2 as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.AlignmentDay = 1
oCalendar.FixedCellWidth = 36
oCalendar.FixedCellHeight = 36
oCalendar.AutoSize = 0
oCalendar.MaxMonthX = 1
oCalendar.MaxMonthY = 1
oCalendar.Date = {02/01/2014}
oCalendar.ShowNonMonthDays = .f.
' oCalendar.Events.Add({02/03/2014}).BackgroundExt = "bottom[8,pattern=0x006,patterncolor=RGB(190,190,190),frame=RGB(0,0,0),framethick]"
var_Event = oCalendar.Events.Add({02/03/2014})
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.BackgroundExt = `bottom[8,pattern=0x006,patterncolor=RGB(190,190,190),frame=RGB(0,0,0),framethick]`"

' oCalendar.Events.Add({02/04/2014}).BackgroundExt = "bottom[100%,pattern=0x006,patterncolor=RGB(190,190,190),frame=RGB(0,0,0),framethick]"
var_Event1 = oCalendar.Events.Add({02/04/2014})
oCalendar.TemplateDef = "dim var_Event1"
oCalendar.TemplateDef = var_Event1
oCalendar.Template = "var_Event1.BackgroundExt = `bottom[100%,pattern=0x006,patterncolor=RGB(190,190,190),frame=RGB(0,0,0),framethick]`"

' oCalendar.Events.Add({02/05/2014}).BackgroundExt = "top[8,pattern=0x006,patterncolor=RGB(190,190,190),frame=RGB(0,0,0),framethick]"
var_Event2 = oCalendar.Events.Add({02/05/2014})
oCalendar.TemplateDef = "dim var_Event2"
oCalendar.TemplateDef = var_Event2
oCalendar.Template = "var_Event2.BackgroundExt = `top[8,pattern=0x006,patterncolor=RGB(190,190,190),frame=RGB(0,0,0),framethick]`"

oCalendar.DrawGridLine = 2

121:
Can I use PNG picture files

Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.Template = "HTMLPicture(`pic1`) = `c:\exontrol\images\card.png`" // oCalendar.HTMLPicture("pic1") = "c:\exontrol\images\card.png"
oCalendar.AlignmentDay = 0
oCalendar.FixedCellWidth = 64
oCalendar.FixedCellHeight = 48
oCalendar.AutoSize = 0
oCalendar.MaxMonthX = 1
oCalendar.MaxMonthY = 1
' oCalendar.Events.Add(oCalendar.Date).Caption = "<sha><b><%day%></b></sha> <r><img>pic1</img>"
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Caption = `<sha><b><%day%></b></sha> <r><img>pic1</img>`"


120:
Is it possible to display a custom-size picture assigned to a date

Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.Template = "HTMLPicture(`pic1`) = `c:\exontrol\images\zipdisk.gif`" // oCalendar.HTMLPicture("pic1") = "c:\exontrol\images\zipdisk.gif"
oCalendar.AlignmentDay = 0
oCalendar.FixedCellWidth = 64
oCalendar.FixedCellHeight = 48
oCalendar.AutoSize = 0
oCalendar.MaxMonthX = 1
oCalendar.MaxMonthY = 1
' oCalendar.Events.Add(oCalendar.Date).Caption = "<sha><b><%day%></b></sha> <r><img>pic1</img>"
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Caption = `<sha><b><%day%></b></sha> <r><img>pic1</img>`"


119:
How can I assign a caption and an icon to a date

Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
oCalendar.AlignmentDay = 0
oCalendar.FixedCellWidth = 48
oCalendar.AutoSize = 0
oCalendar.MaxMonthX = 1
oCalendar.MaxMonthY = 1
' oCalendar.Events.Add(oCalendar.Date).Caption = "<sha><b><%day%></b></sha> <r><img>1</img><off -4><sha;;0><fgcolor FF0000><font ;6>ev</sha>"
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Caption = `<sha><b><%day%></b></sha> <r><img>1</img><off -4><sha;;0><fgcolor FF0000><font ;6>ev</sha>`"


118:
How can I assign a caption to a date

Dim oCalendar as P
Dim var_Event as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.AlignmentDay = 0
oCalendar.FixedCellWidth = 36
oCalendar.AutoSize = 0
oCalendar.MaxMonthX = 1
oCalendar.MaxMonthY = 1
var_Event = oCalendar.Events.Add(oCalendar.Date)
	var_Event.Caption = "<sha><b><%day%></b><r><off -4><sha;;0><fgcolor FF0000><font ;6>ev</sha></sha> 1"
	var_Event.Marker = .t.

117:
How do I align the day in the calendar control

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.AlignmentDay = 1

116:
How do I specify a different foreground color for weekday headers (S M T W T F S)

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.Template = "Background(6) = 16777215" // oCalendar.Background(6) = 16777215
oCalendar.Template = "Background(28) = 255" // oCalendar.Background(28) = 255

115:
How does localization work

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.FirstDay = oCalendar.LocFirstDay
oCalendar.MonthNames = oCalendar.LocMonthNames()
oCalendar.WeekDays = oCalendar.LocWeekDays()

114:
How can I change the control's Visual appearance

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.VisualDesign = "gBFLBWIgBAEHhEJAEGg6EhCDC0HA0IdT/iyAjAAdcWf8YQAAAcKkEThQCCsiAMRhQBkMHhgABEIBsILBQHRCOp0OhvNwgGM+AUImMHmcHms3nM7ns/GUtmEIB0IIc2GQgFo0q1VrAygI"

113:
How can I align the picture on the control's background

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.Picture = oCalendar.ExecuteTemplate("loadpicture(`c:\exontrol\images\card.png`)")
oCalendar.PictureDisplay = 2

112:
Is it possible to place a picture on the control's background

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.Picture = oCalendar.ExecuteTemplate("loadpicture(`c:\exontrol\images\card.png`)")

111:
Is it possible to specify the color or the visual appearance (EBN) for selected dates when the control has no focus

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oCalendar.Template = "Background(68) = 16777216" // oCalendar.Background(68) = 16777216
oCalendar.Template = "Background(69) = 0" // oCalendar.Background(69) = 0
oCalendar.HideSelection = .f.

110:
Is it possible to specify the color for selected dates when the control loses the focus

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.Template = "Background(68) = 8421504" // oCalendar.Background(68) = 8421504
oCalendar.Template = "Background(69) = 0" // oCalendar.Background(69) = 0
oCalendar.HideSelection = .f.

109:
Can I change the visual appearance for the tooltip, using your EBN files

Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ToolTipDelay = 1
oCalendar.ToolTipWidth = 364
oCalendar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oCalendar.Template = "Background(64) = 27951344" // oCalendar.Background(64) = 27951344
' oCalendar.Events.Add(oCalendar.Date).Comment = "This is a text that shows up when the cursor hovers the date"
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Comment = `This is a text that shows up when the cursor hovers the date`"

oCalendar.HideSelection = .t.

108:
Can I change the color of the control's border (EBN files)

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oCalendar.Appearance = 27966412 '1aabbc8 + Etched

107:
Is it possible to change the color for days that are not in the month

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.FirstDay = 2
oCalendar.ShowNonMonthDays = .t.
oCalendar.NonMonthDaysColor = 255

106:
How can I change the foreground color for non-working days

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.FirstDay = 2
oCalendar.NonworkingDaysForeColor = 255

105:
How do I change the appearance for the months

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.Template = "Background(8) = 8388608" // oCalendar.Background(8) = 8388608
oCalendar.Template = "Background(21) = 16777215" // oCalendar.Background(21) = 16777215

104:
How can I show the more months with its full size
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.AutoSize = 1
oCalendar.MaxMonthX = 2
oCalendar.MaxMonthY = 2

103:
How can I show the calendar with its full size
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.AutoSize = 1
oCalendar.MaxMonthX = 1
oCalendar.MaxMonthY = 1

102:
How can I hide the separator above the Today button

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.Template = "Background(13) = BackColor" // oCalendar.Background(13) = oCalendar.BackColor

101:
How do I limit the dates being displayed or selected

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.MaxMonthX = 1
oCalendar.MaxMonthY = 1
oCalendar.ShowYearScroll = .f.
oCalendar.MinDate = {01/01/2001}
oCalendar.MaxDate = {01/31/2001}
oCalendar.Date = {01/01/2001}

100:
How can I remove an event
Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.AutoSize = .f.
oCalendar.FixedCellWidth = 36
oCalendar.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
' oCalendar.Events.Add(oCalendar.Date).Image = 1
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Image = 1"

oCalendar.Events.Remove(oCalendar.Date)

99:
How can I count the events
Dim oCalendar as P
Dim var_Count as 
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
' oCalendar.Events.Add(oCalendar.Date).Image = 1
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Image = 1"

var_Count = oCalendar.Events.Count

98:
How can I clear all events
Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
' oCalendar.Events.Add(oCalendar.Date).Image = 1
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Image = 1"

oCalendar.Events.Clear()

97:
How can I save the events in the calendar
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex

96:
How can I assign an icon to a date

Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.AutoSize = .f.
oCalendar.FixedCellWidth = 36
oCalendar.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
' oCalendar.Events.Add(oCalendar.Date).Image = 1
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Image = 1"


95:
How can I enable or disable a date

Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
' oCalendar.Events.Add(oCalendar.Date).Disabled = .t.
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Disabled = True"


94:
How can I mark or highlight a date

Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
' oCalendar.Events.Add(oCalendar.Date).Marker = .t.
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Marker = True"


93:
How can I assign a tooltip or a comment to a date

Dim oCalendar as P
Dim var_Event as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
var_Event = oCalendar.Events.Add(oCalendar.Date)
	var_Event.Comment = "This is a text that shows up when the cursor hovers the date"
	var_Event.CommentTitle = "T I T L E"
oCalendar.HideSelection = .t.

92:
How can I assign any extra data to a date
Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
' oCalendar.Events.Add(oCalendar.Date).UserData = "your data"
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.UserData = `your data`"


91:
How can I change the background color for a date

Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
' oCalendar.Events.Add(oCalendar.Date).BackColor = 255
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.BackColor = 255"


90:
How can I change the foreground color for a date

Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
' oCalendar.Events.Add(oCalendar.Date).ForeColor = 255
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.ForeColor = 255"


89:
How can I draw a date as strikeout

Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
' oCalendar.Events.Add(oCalendar.Date).StrikeOut = .t.
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.StrikeOut = True"


88:
How can I underline a date

Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
' oCalendar.Events.Add(oCalendar.Date).Underline = .t.
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Underline = True"


87:
How can I make italic a date

Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
' oCalendar.Events.Add(oCalendar.Date).Italic = .t.
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Italic = True"


86:
How can I bold a date

Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
' oCalendar.Events.Add(oCalendar.Date).Bold = .t.
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Bold = True"


85:
How can I get the last visible date being displayed in the calendar
Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ShowNonMonthDays = .f.
' oCalendar.Events.Add(oCalendar.LastVisibleDate).Comment = "This is the last visible date"
var_Event = oCalendar.Events.Add(oCalendar.LastVisibleDate)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Comment = `This is the last visible date`"


84:
How can I get the first visible date being displayed in the calendar
Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ShowNonMonthDays = .f.
' oCalendar.Events.Add(oCalendar.FirstVisibleDate).Comment = "This is the first visible date"
var_Event = oCalendar.Events.Add(oCalendar.FirstVisibleDate)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Comment = `This is the first visible date`"


83:
How can I hide the ticker that's shown for dates that have a tooltip or a comment
Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.CommentBackColor = oCalendar.BackColor
' oCalendar.Events.Add(oCalendar.Date).Comment = "This is a text that shows up when the cursor hovers the date"
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Comment = `This is a text that shows up when the cursor hovers the date`"


82:
How can I change the visual aspect of the dates that have a comment or a tooltip assigned

Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oCalendar.CommentBackColor = 16777216
' oCalendar.Events.Add(oCalendar.Date).Comment = "This is a text that shows up when the cursor hovers the date"
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Comment = `This is a text that shows up when the cursor hovers the date`"

oCalendar.HideSelection = .t.

81:
How can I change the visual aspect of the dates that have a comment or a tooltip assigned
Dim oCalendar as P
Dim var_Appearance as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
var_Appearance = oCalendar.VisualAppearance
	var_Appearance.Add(11,"c:\exontrol\images\normal.ebn")
	var_Appearance.Add(1,"CP:11 4 2 -2 -2")
oCalendar.CommentBackColor = 16777216
' oCalendar.Events.Add(oCalendar.Date).Comment = "This is a text that shows up when the cursor hovers the date"
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Comment = `This is a text that shows up when the cursor hovers the date`"

oCalendar.HideSelection = .t.

80:
How can I change the color to highlight the dates that have a comment or a tooltip assigned

Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.CommentBackColor = 0
' oCalendar.Events.Add(oCalendar.Date).Comment = "This is a text that shows up when the cursor hovers the date"
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Comment = `This is a text that shows up when the cursor hovers the date`"

oCalendar.HideSelection = .t.

79:
How can I hide the days that are shown in gray, and doesn' belong to the month

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ShowNonMonthDays = .f.

78:
How can I change the color for non working days

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.NonworkingDays = 6
oCalendar.NonworkingDaysPattern = 10
oCalendar.NonworkingDaysColor = 255

77:
How can I change the pattern or the style to draw the non working days

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.NonworkingDays = 6
oCalendar.NonworkingDaysPattern = 10

76:
How can I show or hide the non working days
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.NonworkingDays = 0

75:
How can I specify the non working days
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.NonworkingDays = 6

74:
How do I get the height of the control to fit the MaxMonthY months in the client area
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex

73:
How do I get the width of the control to fit the MaxMonthX months in the client area
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex

72:
How can I specify the min and max years to scroll within
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.MinScrollYear = 2001
oCalendar.MaxScrollYear = 2010

71:
How do I let the tooltip being displayed longer

Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ToolTipPopDelay = 10000
' oCalendar.Events.Add(oCalendar.Date).Comment = "This is a text that shows up when the cursor hovers the date"
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Comment = `This is a text that shows up when the cursor hovers the date`"

oCalendar.HideSelection = .t.

70:
How can I save the selected dates
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex

69:
How can I change the date that gets the focus
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.Date = {01/01/2001}
oCalendar.FocusDate = {01/02/2001}

68:
How can I select a new date
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.Date = {01/01/2001}
oCalendar.Value = {01/02/2001}

67:
I've seen that the width of the tooltip is variable. Can I make it larger

Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ToolTipWidth = 328
' oCalendar.Events.Add(oCalendar.Date).Comment = "This is a text that shows up when the cursor hovers the date"
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Comment = `This is a text that shows up when the cursor hovers the date`"

oCalendar.HideSelection = .t.

66:
How do I disable showing the tooltip for all control
Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ToolTipDelay = 0
' oCalendar.Events.Add(oCalendar.Date).Comment = "This is a text that shows up when the cursor hovers the date"
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Comment = `This is a text that shows up when the cursor hovers the date`"

oCalendar.HideSelection = .t.

65:
How do I show the tooltip quicker
Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ToolTipDelay = 1
' oCalendar.Events.Add(oCalendar.Date).Comment = "This is a text that shows up when the cursor hovers the date"
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Comment = `This is a text that shows up when the cursor hovers the date`"

oCalendar.HideSelection = .t.

64:
How do I call your x-script language
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ExecuteTemplate("BackColor = RGB(255,0,0)")

63:
How do I call your x-script language
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.Template = "BackColor = RGB(255,0,0)"

62:
Can I change the font for the tooltip

Dim oCalendar as P
Dim var_Event as local
Dim var_StdFont as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ToolTipDelay = 1
var_StdFont = oCalendar.ToolTipFont
	var_StdFont.Name = "Tahoma"
	var_StdFont.Size = 14
oCalendar.ToolTipWidth = 364
' oCalendar.Events.Add(oCalendar.Date).Comment = "This is a text that shows up when the cursor hovers the date"
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Comment = `This is a text that shows up when the cursor hovers the date`"

oCalendar.HideSelection = .t.

61:
How can I change the caption of the Today's button

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.TodayCaption = "Azi"

60:
How do I get the date from the cursor
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex

59:
How do I unselect a date

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.SingleSel = .f.
oCalendar.Date = {01/01/2001}
oCalendar.SelDate = {01/02/2001}
oCalendar.SelDate = {01/03/2001}
oCalendar.SelDate = {01/04/2001}
oCalendar.UnSelDate({01/03/2001})

58:
How do I get the list of selected dates
' Fired when the selection is changed.
function SelectionChanged as v ()
	oCalendar = topparent:CONTROL_ACTIVEX1.activex
	? oCalendar.SelDate 
end function

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex

57:
How do I select multiple dates

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.SingleSel = .f.
oCalendar.Date = {01/01/2001}
oCalendar.SelDate = {01/02/2001}
oCalendar.SelDate = {01/03/2001}
oCalendar.SelDate = {01/04/2001}

56:
How do I get the selected date
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.SelDate = oCalendar.Date

55:
How can I build a date expression
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.Date = oCalendar.DoDate(2001,1,1)

54:
How can I select a new date

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.Date = oCalendar.DoDate(2001,1,1)
oCalendar.SelDate = oCalendar.DoDate(2001,1,2)

53:
How can I select a new date
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.Date = {01/01/2001}
oCalendar.SelDate = {01/02/2001}

52:
How can I change the browsed date
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.Date = {01/01/2001}

51:
How can I show or hide the buttons that in the header

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ShowYearSelector = .f.
oCalendar.ShowMonthSelector = .f.

50:
How can I show or hide the buttons that scrolls the years

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ShowYearSelector = .f.

49:
How can I disable changing the month in the months selector

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ShowMonthSelector = .f.

48:
How can I change the visual aspect of the selected date, using your EBN

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.BackColor = 16777215
oCalendar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oCalendar.SelBackColor = 16777216
oCalendar.SelForeColor = oCalendar.BackColor

47:
How can I change the colors for selected dates

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.SelBackColor = 0
oCalendar.SelForeColor = 16777215

46:
How can I change the color of the line arround a month

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.DrawBorderLine = 2
oCalendar.BorderLineColor = 255

45:
How can I change the style of the line arround a month

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.DrawBorderLine = 2

44:
How can I specify the number of months being displayed
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ShowTodayButton = .f.
oCalendar.ShowYearScroll = .f.
oCalendar.MinMonthX = 2
oCalendar.MaxMonthX = 2
oCalendar.MinMonthY = 2
oCalendar.MaxMonthY = 2

43:
How can I lock the control, so user can't select a new date
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.Locked = .t.

42:
How do I change the first day of the week

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.FirstDay = 2

41:
How do I change the name of the months

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.MonthNames = "Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec"

40:
How do I change the name of the months

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.Template = "MonthName(1) = `Jan`" // oCalendar.MonthName(1) = "Jan"
oCalendar.Template = "MonthName(2) = `Feb`" // oCalendar.MonthName(2) = "Feb"
oCalendar.Template = "MonthName(3) = `Mar`" // oCalendar.MonthName(3) = "Mar"
oCalendar.Template = "MonthName(4) = `Apr`" // oCalendar.MonthName(4) = "Apr"
oCalendar.Template = "MonthName(5) = `May`" // oCalendar.MonthName(5) = "May"
oCalendar.Template = "MonthName(6) = `Jun`" // oCalendar.MonthName(6) = "Jun"
oCalendar.Template = "MonthName(7) = `Jul`" // oCalendar.MonthName(7) = "Jul"
oCalendar.Template = "MonthName(8) = `Aug`" // oCalendar.MonthName(8) = "Aug"
oCalendar.Template = "MonthName(9) = `Sep`" // oCalendar.MonthName(9) = "Sep"
oCalendar.Template = "MonthName(10) = `Oct`" // oCalendar.MonthName(10) = "Oct"
oCalendar.Template = "MonthName(11) = `Nov`" // oCalendar.MonthName(11) = "Nov"
oCalendar.Template = "MonthName(12) = `Dec`" // oCalendar.MonthName(12) = "Dec"

39:
How do I change the name for each week day

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.AutoSize = .f.
oCalendar.FixedCellWidth = 24
oCalendar.FixedCellHeight = 16
oCalendar.WeekDays = "Su Mo Tu We Th Fr Sa"
oCalendar.HeaderForeColor = 255
oCalendar.HeaderBackColor = 16777215

38:
How can I specify the width and height for dates being displayed in the calendar
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.AutoSize = .f.
oCalendar.FixedCellWidth = 22
oCalendar.FixedCellHeight = 16

37:
How can I specify the width and height for dates being displayed in the calendar
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.AutoSize = .f.
oCalendar.FixedCellWidth = 32
oCalendar.FixedCellHeight = 24

36:
How do I change the appearance for dates in the calendar

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.AppearanceDay = 1
oCalendar.BackColor = 2147483663

35:
How do I specify the color for the grid lines

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.DrawGridLine = 1
oCalendar.GridLineColor = 255

34:
How do I draw the grid lines

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.DrawGridLine = 1

33:
How do I change the foreground color for the week days and week numbers header

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.HeaderForeColor = 255
oCalendar.ShowWeeks = .t.

32:
How do I change the background color for the week days and week numbers header

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.HeaderBackColor = 255
oCalendar.ShowWeeks = .t.

31:
How can I show or hide the 'Today' button

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ShowTodayButton = .f.

30:
How can I show or hide the scroll bar that changes the year

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ShowYearScroll = .f.

29:
How can I show or hide the header that displays the months

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ShowMonth = .f.

28:
How can I show or hide the header that displays the week days

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ShowDays = .f.

27:
How do I show or hide the weeks

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ShowWeeks = .t.

26:
How can I change the visual appearance of Today date in the calendar

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.MarkToday = .t.
oCalendar.Template = "Background(14) = 255" // oCalendar.Background(14) = 255

25:
How do I mark the Today date

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.MarkToday = .t.

24:
How can I show the control's selection even if the control loses the focus

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.HideSelection = .f.

23:
How can I hide the control's selection when the control loses the focus

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.HideSelection = .t.

22:
How do I enable single selection
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.SingleSel = .t.

21:
How do I enable multiple selection

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.SingleSel = .f.

20:
How do I disable or enable the control
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.Enabled = .f.

19:
Can I change the forecolor for the tooltip

Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ToolTipDelay = 1
oCalendar.ToolTipWidth = 364
oCalendar.Template = "Background(66) = 255" // oCalendar.Background(66) = 255
' oCalendar.Events.Add(oCalendar.Date).Comment = "This is a text that shows up when the cursor hovers the date"
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Comment = `This is a text that shows up when the cursor hovers the date`"

oCalendar.HideSelection = .t.

18:
Can I change the background color for the tooltip

Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ToolTipDelay = 1
oCalendar.ToolTipWidth = 364
oCalendar.Template = "Background(65) = 255" // oCalendar.Background(65) = 255
' oCalendar.Events.Add(oCalendar.Date).Comment = "This is a text that shows up when the cursor hovers the date"
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Comment = `This is a text that shows up when the cursor hovers the date`"

oCalendar.HideSelection = .t.

17:
Can I change the default border of the tooltip, using your EBN files

Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ToolTipDelay = 1
oCalendar.ToolTipWidth = 364
oCalendar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oCalendar.Template = "Background(64) = 16777216" // oCalendar.Background(64) = 16777216
' oCalendar.Events.Add(oCalendar.Date).Comment = "This is a text that shows up when the cursor hovers the date"
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Comment = `This is a text that shows up when the cursor hovers the date`"

oCalendar.HideSelection = .t.

16:
How can I change the visual appearance of the selected month, in the months selector, using EBN files

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oCalendar.Template = "Background(15) = 16777216" // oCalendar.Background(15) = 16777216
oCalendar.Template = "Background(16) = 255" // oCalendar.Background(16) = 255

15:
How can I change the visual appearance of Today date in the calendar, using EBN files

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.VisualAppearance.Add(1,"c:\exontrol\images\pushed.ebn")
oCalendar.Template = "Background(14) = 16777216" // oCalendar.Background(14) = 16777216
oCalendar.Template = "Background(20) = 1" // oCalendar.Background(20) = 1
oCalendar.SelForeColor = 0
oCalendar.MarkToday = .t.

14:
How can I change the visual appearance of separator between calendar and 'Today' button , using EBN files

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oCalendar.Template = "Background(13) = 16777216" // oCalendar.Background(13) = 16777216

13:
How can I change the visual appearance of the scrolling bar for years, using EBN files

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oCalendar.VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn")
oCalendar.Template = "Background(12) = 16777216" // oCalendar.Background(12) = 16777216
oCalendar.Template = "Background(11) = 33554432" // oCalendar.Background(11) = 33554432

12:
How can I change the visual appearance of 'Today' button, using EBN files

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oCalendar.VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn")
oCalendar.Template = "Background(9) = 16777216" // oCalendar.Background(9) = 16777216
oCalendar.Template = "Background(10) = 33554432" // oCalendar.Background(10) = 33554432

11:
How can I change the visual appearance of header , using EBN files

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oCalendar.Template = "Background(8) = 16777216" // oCalendar.Background(8) = 16777216
oCalendar.HeaderForeColor = 255

10:
How can I change the visual appearance of header that week numbers, using EBN files

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oCalendar.Template = "Background(7) = 16777216" // oCalendar.Background(7) = 16777216
oCalendar.HeaderForeColor = 255
oCalendar.ShowWeeks = .t.

9:
How can I change the visual appearance of header that displays days, using EBN files

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oCalendar.Template = "Background(6) = 16777216" // oCalendar.Background(6) = 16777216

8:
How can I change the visual appearance of the drop down button, using EBN files
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oCalendar.VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn")
oCalendar.Template = "Background(4) = 16777216" // oCalendar.Background(4) = 16777216
oCalendar.Template = "Background(5) = 33554432" // oCalendar.Background(5) = 33554432

7:
How do I change the visual appearance of the left and right buttons in the calendar's header, using EBN files

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oCalendar.Template = "Background(2) = 16777216" // oCalendar.Background(2) = 16777216
oCalendar.Template = "Background(3) = 16777216" // oCalendar.Background(3) = 16777216

6:
How do I change the visual appearance of the up and down buttons in the calendar's header, using EBN files

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oCalendar.Template = "Background(0) = 16777216" // oCalendar.Background(0) = 16777216
oCalendar.Template = "Background(1) = 16777216" // oCalendar.Background(1) = 16777216

5:
How do I change the control's foreground color

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ForeColor = 255

4:
How do I change the control's background color

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.BackColor = 13158600

3:
How can I change the control's font

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.Font.Name = "Verdana"

2:
How do I change the control's border, using your EBN files

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oCalendar.Appearance = 16777216 '1000000 + 

1:
How do I remove the control's border

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.Appearance = 0