Richard Kaye wrote on 2017-02-27: 
>  Perhaps you'll need to determine the bounds and then add an assign method
to keep it from crossing the line? Doesn't feel very elegant, I know but...
>  


I have tracked this down to be Scrollbar Height related. 
I specifically changed the HKEY_CURRENT_USER\Control
Panel\Desktop\WindowMetrics\ScrollHeight value to -1155.  See
http://winaero.com/blog/how-to-change-the-size-of-scrollbars-in-windows-10/
for details.

That is 77 pixel. Which 450% DPI adjusted that value to.  (determined via
SysMetric(8))

So with the DPI settings still at 100%, and the ScrollHeight and ScrollWidth
set to 77 pixels. I get the error.
The grid is set to not have the horizontal scrollbar, yet the error is
specifically with the height. The Height of the grid set in the properties
is 76. 

I have code in the Height_Assign like this:
    LPARAMETERS vNewVal
    TRY
       THIS.Height = vNewVAl
    CATCH
    ENDTRY

And yet, it still errors. Before the INIT of the grid code fires. And just
some additional information. This complex form is usually run once by a user
during the initial setup of the system. It has 34 grids nested in nested
pageframes. It took until I set the Scrollbars to 73 pixels before it didn't
error.

Just sharing my results in hopes it will help another in the future.
May all your grids be > 90 pixels in height. To accommodate the 4K monitors
and site challenged users.

DPI Setting, Horizontal Scrollbar Height
500, 85
450, 77
400, 68
350, 60
300, 51

Tracy Pearson
PowerChurch Software


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to