Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Contenedores
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00583288
Message ID:
00585010
Views:
38
>Cómo puedo hacer para que los objetos que tengo en un contenedor sean parte de él y se pueda aplicar la propiedad Visible o no, sin tener que hacerlo para cada objeto???
>
>Gracias.


Carlos:

Lo que te dijo Evan es correcto. Prueba algo como lo siguiente:
LOCAL loForm as Form
LOCAL oCont as Container
loForm = CREATEOBJECT("Form")
loForm.Visible = .t.
oCont = loForm.AddObject("oCont","Container")
with loForm.oCont
   .AddObject("txtSample","textbox")
   .AddObject("txtSample","textbox")
   .AddObject("lblSample","label")
   .lblSample.caption = "Test"
   .txtSample.Left = .lblSample.left + .lblSample.width + 5
   .visible = .t.
endwith
Ahora la propiedad Visible del contenedor oculta o muestra todo. No es eso lo que quieres?

HTH


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform