If you're talking about the original FontRequester, it works well for me when I use the 'ParentID' parameter. It is positionned relatively to the top-left coordinates of the parent window, with a xShift arround 100px and an YShift arround 200px.ChrisR wrote: Wed Mar 12, 2025 5:58 pmOtherwise, I've never really understood how to define the position of FontRequester(), it's always vertically centered here.
For FontRequesterEx, following your judicious remarks, I added the optional parameters XShift = 0, YShift = 0 and *UserChoice.Integer = 0, as well as a comment saying this:
; * If 'ParentWindow' contains a value, the FontRequester window will be centered relative to the parent window.
; Otherwise the window will be centered relatively to the last active window or to the main screen monitor
; if there is no opened windows.
;
; * If defined, 'XShift' and 'YShift' shift the origins or the FontRequesterEx window from its theoretical position.
;
; * If *UserChoice is a non-zero value, it will be considered as a pointer to an integer that will receive
; '1' if the user clicked on 'OK' and '0' if it clicked on 'Cancel'.
; If the user clicked on 'Cancel', the string returned by the procedure will be equal to the 'FontDescription$' entry parameter
The code of the first post has been updated.