At 08:58 PM 3/10/2010, Tom Hart wrote:
I assume you cannot use scaleby on a variable form, am I right.
No.
And yes, you CAN use SCALEBY on a Variable Form too!
Here's how:
01. Start R:BASE 7.6 (Build: 7.6.8.30319) or R:BASE Turbo V-8
(Build: 8.0.22.30319), or R:BASE eXtreme 9.0 (32 or 64)
(Build: 9.0.1.10315).
02. CONNect dbname
03. Open the Variable Form in Form Designer
04. While in Form Designer, verify all options for Caption
Buttons, including:
. Minimize Button
. Maximize Button
05. Verify the "Anchors" options for all controls placed on
variable form.
06. Use the following property command to automatically scale
a form and all related controls to specified screen pixel
width.
PROPERTY RBASE_FORM SCALEBY nnn
RETURN
07. Save the form and use "Run Form" option to Preview while
in form designer.
08. Adjust all controls, as you see fit.
That's all there is to it!
A few considerations when using SCALEBY property for forms:
01. 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.
02. If you have developed a 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
RBASE_FORM SCALEBY property as follows:
Example:
PROPERTY RBASE_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.
03. The 'value' should exactly be the same as the original "form width"
in order to scale proportionally on the monitors with higher resolution
04. Use the SCALEBY property as embedded custom EEP in "On After Start EEP"
in form
05. To take advantage of this feature, make sure that you use the scaled
true type fonts for all controls on that form
Very Best R:egards,
Razzak.
--- RBASE-L
=======================3D=======================3
D=
TO POST A MESSAGE TO ALL MEMBERS:
Send a plain text email to [email protected]
(Don't use any of these words as your Subject:
INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH,
REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP)
=======================3D=======================3
D=
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: INTRO
=======================3D=======================3
D=
TO UNSUBSCRIBE:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: UNSUBSCRIBE
=======================3D=======================3
D=
TO SEARCH ARCHIVES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: SEARCH-n
(where n is the number of days). In the message body,
place any
text to search for.
=======================3D=======================3
D=