>Hi,
>
>I have the following code in a custom method:
>
>Local cPathToObject
>
>cPathToObject = "This.frmOESWAdmin.pgfOESWAdmin.pgeShifts." <--(I'm lazy)
>
>&cPathToObject.NewObject("oleShiftCalendar","oleCalendar","BaseControls")
>&cPathToObject.oleShiftCalendar.Height = 286
>&cPathToObject.oleShiftCalendar.Left = 472
>&cPathToObject.oleShiftCalendar.Top = 18
>&cPathToObject.oleShiftCalendar.Width = 301
>&cPathToObject.oleShiftCalendar.ShowDateSelectors = .T.
>&cPathToObject.oleShiftCalendar.Visible = .T.
>
>
>My question is, can I also put code in the calendar's right click method here or do I have to include it in the class this is based on ?
>
>PS: Really looking forward to the WhilFest to get some "face to face" on things like this.
with This.frmOESWAdmin.pgfOESWAdmin.pgeShifts
.NewObject("oleShiftCalendar","oleCalendar","BaseControls")
with .oleShiftCalendar
.Height = 286
.Left = 472
.Top = 18
.Width = 301
.ShowDateSelectors = .T.
.Visible = .T.
endwith
endwith
You should put code in either in class or on instance of form.
Cetin