Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid and multiple controls in a cell
Message
De
13/04/2010 13:30:10
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
À
13/04/2010 13:13:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01459946
Message ID:
01459982
Vues:
83
>>I have a single column grid in which I've added a container housing a few controls (labels and textboxes). I've set the column's CurrentControl to be the new container.
>>
>>The container's Anchor is set to 15 and the textboxes within it also have the same value for their anchor. When I resize the grid column, I don't see the textboxes dimensions changing as I'd expect.
>>
>>Has anyone tried to do this and if so, did it work for you? Is my expectation not something that VFP can accomplish using anchors?
>>
>>Regards,
>>Mike
>
>VFP doesn't propagate column resize.
>
>try
>
>* Column.Resize event
>this.Controls[2].Move(0,0,m.this.width,this.parent.RowHeight)
>
Hey Fabio, thanks for the reply but that didn't work for me.

I had to change the controls index to 3 since I didn't remove the default textbox that is in the column. I even tried:
this.controls[3].Anchor = 0
this.controls[3].Width = this.width
this.controls[3].Anchor = 15
and that didn't work either. When I stepped thru that code, this.controls[3].width is not the same as this.width when line 2 executes. Weird.

The other thing that I've noticed is that tooltiptext does not appear for the textboxes in this container control when put in the grid!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform