Friday, December 19, 2008 Tip of the Day #5: Using SCALEBY Property in R:BASE Application (.RBA)
Section: Additional PROPERTY and GETPROPERTY Commands Supported Versions: . R:BASE 7.6 for Windows (Build: 7.6.5.31229 or higher) . R:BASE C/S:I 7.6 for Windows (Build: 7.6.5.31229 or higher) . R:BASE Turbo V-8 for Windows (Build: 8.0.19.31229 or higher) . R:BASE eXtreme (v9) for Windows (Build: 9.0.1.11229 or higher) Did you know that now you can use the SCALEBY property to dynamically adjust your application's main window or form based on a given screen resolution? Syntax: PROPERTY RBA_FORM SCALEBY 'nnnn' Use this property to automatically scale R:BASE Application (.RBA) form and all related controls to a specified screen pixel width. SCALEBY property modifies the Height and Width properties of the form and all controls placed on it, but it does not change the Top and Left properties; therefore, the size of the controls changes, but not the coordinates of the top-left corners of the controls. Thus, it preserves the position of all controls on the form. If you have developed an R:BASE Application (.RBA) form that is 800x600 for the majority of users having a monitor with 800x600 screen resolution to fit the form on the entire available screen, but a few users of your application have a higher resolution (1024x768) and if you wish your 800x600 form to fill the entire screen of a monitor with a resolution of 1024x768, you'll need to use the RBA_FORM SCALEBY property as follows: Example: -- Application: On After Start Action PROPERTY RBA_FORM SCALEBY '800' RETURN This will scale the original form designed as 800x600 to fill the entire screen even if the screen resolution is higher than 800x600, such as 1400×1050, 1280x800 or 1024x768. Notes: . The 'nnnn' value should exactly be the same as the original "form width" in order to scale proportionally on the monitors with higher resolution. . Use the SCALEBY property as embedded custom EEP in "On After Start Action" for R:BASE Application (.RBA) file. . To take advantage of this feature, make sure that you use the scaled true type fonts for all controls on that form. That's all she wrote for upcoming updates of R:BASE 7.6 and Turbo V-8 for Windows. http://www.rbase.com/rbg76/WhatsNewInRBASE76forWindows_Update5.pdf http://www.rbase.com/rbg8/WhatsNewInRBASETurboV8ForWindows_Update19.pdf Have a great and very productive weekend, folks! Very Best R:egards, Razzak.

