Navigation: ABC Library Reference > QueryVisualClass > QueryVisualClass Methods >====== OverrideResize (override resize strategy of visual query elements) ====== | |
OverrideResize | PROCEDURE(),VIRTUAL |
The OverrideResize virtual method is used by the Form and List Query interfaces to apply resize strategy for the controls defined by the classes.
Implementation:
OverrideResize is a virtual method that is derived in QueryFormVisual and QueryListVisual methods. It is called from TakeWindowEvent on the EVENT:OpenWindow to set the resize strategy (using SELF.Resizer.SetStrategy) of any control added in the derived visual class.
Example:
QueryFormVisual.OverrideResize PROCEDURE()
I USHORT,AUTO
CODE
LOOP I = 1 TO RECORDS(SELF.QFC.Fields)
SELF.Resizer.SetStrategy(Feq:StartControl+(I * 3 - 2), Resize:FixLeft, Resize:LockSize)
SELF.Resizer.SetStrategy(Feq:StartControl+(I * 3 - 1), Resize:FixLeft,|
Resize:ConstantRight+Resize:LockHeight)
SELF.Resizer.SetStrategy(Feq:StartControl+(I * 3), Resize:FixRight, Resize:LockSize)
END