Message
From
13/04/2010 13:39:53
Mike Sue-Ping
Cambridge, Ontário, Canada
 
 
To
13/04/2010 13:13:08
General information
Fórum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
ID da thread:
01459946
ID da mensagem:
01459990
Views:
64
>>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)
>
OK. I took your hint and had to do it the brute force way and not rely on the Anchor properties. Kinda sucks that Anchors aren't being recognized in this situation.
Previous
Responder
Mapa
View