Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Resize class drill down
Message
From
23/12/2002 14:41:12
 
 
To
23/12/2002 13:31:46
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00735455
Message ID:
00735480
Views:
8
During debugging I discovered that when I set Grid.Fontsize all the Column Widths are resized.
ie:
                           Grid.Fontsize   Column.Width   Column.Fontsize   
Designer Size :                    9             75              9
After Grid.Init() :                9            285              9
After resizing Column :            9            552             17
After resizing Grid.Fontsize :    17            150             17
This would not be a problem if the grid were resized first, but I'm trying to design so that the columns are resized first.

1. Is there any way to stop this behavior?
2. What is the Grid.Fontsize used for? ie: can I skip resizing it?

TIA



>I'm using VFP 7.0
>I designing my own resize class.
>
>The resize classes that I've seen all resize the parent before drilling down and resizing the children.
>Is there any reason I shouldn't drill down and resize the children before the parent?
>
>Method AdjustSize(toObject)
>  local lo
>  if pemstatus(toObject,'Objects',5)
>    for each lo in toObject.Objects
>      this.AdjustSize(lo)
>    endfor
>  endif
>  .... resize toObject
>
>I'm asking because I have a client that wants to see the grid centered in the pageframe and doesn't want extra space in the grid after resizing. So the grid.Width has to be calculated after resizing all the columns (because Recordmark, DeleteMark, and ScrollBars don't resize), and the Pageframe needs to know the final width of the grid in order to resize properly, and the Form needs to know the final width of the Pageframe in order to resize properly.
>
>I am having problems drilling down in a grid first and I'm guessing that it's because some properties are carried down from the grid to the column to the control (Fontsize specifically), so they need to be set at the grid level first.
>
>TIA
Bill Morris
Previous
Reply
Map
View

Click here to load this message in the networking platform