Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Control Class Size in Grid
Message
From
22/03/2001 09:46:36
 
 
To
22/03/2001 09:16:07
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00487553
Message ID:
00487571
Views:
10
Hi!

Yes, this is by design. Grid do not supports completely such objects as command buttons, containers, controls etc. Even graphical-style checkbox (that displays data correctly, but is not resized correctly) required workaround.

You're not correct that you cannot change width and height of control insode of the grid column. Put in the Init method of the control following lines:

this.Height = this.parent.parent.RowHeight
this.Width = this.parent.Width

You will have to trap also some events of grid and column when cell is resized.

HTH.

>When I create a class whose base class is "Control" and then use the visual designer to add an instance of the class to the column of a grid, why does the control instance not conform its width and height to the Grid.RowHeight and Column.Width like, say, a TextBox does?
>
>Is this expected behavior? If so, it is annoying, :-) since a column's controls' height and width are readonly. The only way to get the instantiated class to be the right size is to add it to the grid column programmatically. I can work around it but I would rather not have to. :-) Am I missing sonmething here?
>
>Thanks,
>Bill
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform