PRB: Grid Column Widths Change at Run Time
ID: Q157760
|
The information in this article applies to:
-
Microsoft Visual FoxPro for Windows, version 5.0
SYMPTOMS
Grid column widths change when a form is run under the following
conditions:
- A Grid class is built where fontname and fontsize have been specified.
- A PageFrame class is built that contains the Grid class.
- The Grid fontsize and fontname are changed when the PageFrame class is
placed on a form.
WORKAROUND
Do not specify a fontname or fontsize in the original Grid class.
STATUS
Microsoft is researching this behavior and will post new information here
in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce Behavior
- Create a two-column grid and set the fontname to MS San Serif.
- Set the fontsize to 9.
- Save the grid as a class called Fontgrid in a library called Myvcx.
- Click the View Classes button on the toolbar and add Myvcx library.
- Create a PageFrame and add the Fontgrid on page1. Save it as a class
called Pagegrid in library Myvcx.
- Create a form and add the customer table to the DataEnvironment.
- Click the View Classes button on the toolbar and add Myvcx library.
- Add the Pagegrid to the form.
- Set the column count to 2, and set the ControlSource for column1 to
cust_id and the ControlSource for column2 to country.
- Change the fontname for the grid to Courier New and the fontsize to 10.
- Adjust the column width of cust_id so that it is larger than it needs
to be to accommodate cust_id.
- Run the form.
The column width for cust_id changes. It adjusts the column to the actual
field width.
Additional query words:
kbdsd VFOXWIN
Keywords : FxotherGeneral
Version : WINDOWS:5.0
Platform : WINDOWS
Issue type :