The code to add this object is
ThisForm.D1.clearApps ThisForm.D1.AddObject("A1","_appointment")With ThisForm.D1.A1 .Height = 200 .Tag = "APP" .Top = 250 .Left = 1 ._Label1.Caption = "Demo COGEN" .Visible = .T.EndWith ThisForm.D1.wlContentChanged = .T. ThisForm.Refresh
Where clearApp is a method that clean all the objects already contained in D1 that is the container
When i open the form the first time it appears as in this image
after i click the button to add objects it changes, but the object is not added where i ask (the object has top=250 while in the form it seems at 0 and also the height is not correct. Iy has the properties i defined in the object class)
If i close the form (with the button we found in awcmdok) and the i open the form again i see the form without object in the container (even if in the debug it has still the object)
and when i add newly the object with my button (as i do the first time) the object is added in the correct position
What do i need to do to add the object without problems. This form must show user's appointment in week view....
Thanks