Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sizing containers in a grid column
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00261933
Message ID:
00263075
Vues:
25
>>>Have a couple of grids that require a container object to be inserted as a memeber of a column. The size of the container always seems to keep it's default height & width (that which it was created with) and not allow it to change in code. If the container's height & width is changed in .Init, we're typically trying to change these properties to the grid's row height and column width, then it resizes fine. If we try to change the height and width in code, then the new values simply don't take effect. Any ideas here?
>>>
>>>Thanks,
>>>Steve
>>Steve,
>>A container in grid is dependant of its column width + grid.rowheight. Also change them. This is partial code I use to set grid column size :
with this
>>	if .parent.baseclass="Column"			&& We are in a grid
>>		.parent.parent.rowheight	= .Height
>>		.parent.width			= .Width
>>                .parent.refresh && If changing on tghe fly - ie:gotfocus
Cetin
>
>Cetin,
>
>In my description, I indicated that I am are trying to change the height and width to the "grid's row height and column width".
>
>Steve

Steve,

Why did you change the height and width of the container ?

If you change the Column Width and the grid RowHeight by code the container will be resized.

So what's wrong ?

Marcel
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform