Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tricks are for Grids (homage to Drew Speedie)
Message
From
14/06/2021 07:22:28
 
 
To
12/06/2021 15:35:18
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Product Documentation
Miscellaneous
Thread ID:
01681164
Message ID:
01681190
Views:
58
>I have a grid which i set the HeaderHeight property to Zero and the Header Wordwrap property to true. It looks perfect at design time time but goes fubar at runtime. My first thought was that the grid was being destroyed somehow and reconstructing, but i keep disabusing my self of that notion. I don't seem to be able to work it out. Some light in the darkness would be greatly appreciated.

Even before the debug hint in post to Dragan I'd try to work explicit AFTER grid construction. simple test in command window
USE (DBF()) IN 0 ALIAS dbPlay AGAIN
SELECT dbPlay
BROWSE NAME og
og.HeaderHeight = m.og.HeaderHeight * 2
works as expected creating enough height for 2 texz lines. If wanted result can be established with hammering on visible control at the end, go for it, Try later to minimize optical hickups by loading offscreen or set to invisible till totally correct. Try first with function, later with method or member classes to minimize unintended side effects. Only if that fiddling creates time lags unacceptable, spend more of your budget.

HTH
thomas
Previous
Reply
Map
View

Click here to load this message in the networking platform