I have an application were I use PFC Resizing Service in every window, dw and any object. Everything is working perfect.
When User make any window bigger or smaller all columns resize accordingly as position and percentages declared in the constructor event of the dw and the rest of the object in the window resize accordingly as position and percentages declared in the Preopen event of the window. Everything fine.
Now I want to resize the font everywhere (window, objects, dw) accordingly as the size of the window. Any suggestions or direction how to accomplish the resizing Font will be greatly appreciate.
How do you use the change of the font size in the PFC dw resize service?
//cch dw Construction Event
// Args - PercentageX, PercentageY, PercentageWidth, PercentageHeight
inv_resize.of_Register('datetime1_t', 0, 0, 5, 0)
inv_resize.of_Register('datetime1', 0, 0, 5, 0)
inv_resize.of_Register('number_t', 5, 0, 40, 0)
inv_resize.of_Register('number', 5, 0, 40, 0)
inv_resize.of_Register('datetime2_t', 45, 0, 5, 0)
inv_resize.of_Register('datetime2', 45, 0, 5, 0)
//cch end dw construction event
but I not know how to pass parameters for the font size. I will appreciate if you share that with us.
(Of course I activate the Resizing service in the PreOpen event of the window and register the dw with its resizing %)
These are two separate services that are coded differently due to the differences between DWObjects (column/text/etc. objects) and Controls (DW controls, static text, edit mask, command buttons, etc). The controls in a window are managed/drawn by the WIndow operating system. The DWObjects within a DataWindow control are managed/drawn by the DataWindow Engine within PowerBuilder.