Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

New problem with containers

$
0
0
New problem with containers
FoxInCloud
New problem with containers
Feb. 2, 2013
08:43 am
3PG0IOQY6Show this entire thread in new window
Gratar Image based on email address
From:Michele
To:thn@foxincloud.com
I have a form with some containers in it. With a button i add runtime some objects in one of thiese container, in the first.
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


Viewing all articles
Browse latest Browse all 10393

Trending Articles