| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > QueryVisualClass > QueryVisualClass Methods >====== OverrideResize (override resize strategy of visual query elements) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[kill shut down the queryvisual object .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[reset reset the dialog for display queryvisualclass .htm|{{btn_next_n.gif|Next page}}]] | | || | **OverrideResize** | **PROCEDURE(),VIRTUAL** | {{blk2blue.jpg|blk2blue.jpg}} 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**