Article Details
Id: | 12044 |
Product: | finPOWER Connect |
Type: | FIX |
Version: | 2.01.01 |
Opened: | 09/07/2014 |
Closed: | 09/07/2014 |
Released: | 31/07/2014 |
Job: | J013596 |
Page Sets; PageResize event issues
The PageResize event for Page Sets was found to have the following issues:
- The PageWidth and PageHeight properties of the event variable (e) were not being readjusted for High DPI (all Page Set functionality should be oblivious to whether a Hight DPI mode is being used).
- The PageWidth and PageHeight properties of the event variable (e) were each 4 pixels too high.
The following example assumes that a 'Positioned' layout Page has a Label named lblLabel1 positioned somewhere around the middle of the page and is customised to have a background colour different from that of the form. The PageResize code will then extend the width and height of this label so that it spans the entire Page Width and Height:
Public Sub PageSet_PageResize(sender As Object, e As finPageSetHandlerPageResizeEventArgs) Handles Me.PageResize
lblLabel1.PageObject.Height = e.PageHeight - lblLabel1.PageObject.Top
lblLabel1.PageObject.Width = e.PageWidth - lblLabel1.PageObject.Left
End Sub
NOTE: There might be slight pixel rounding errors on High DPI displays.