Wednesday, May 16, 2007
Tip of the Day: Setting Background Color When Focused
Supported Versions:
. R:BASE 7.6 for Windows (Build: 7.6.1.30514 or higher)
. R:BASE C/S:I 7.6 for Windows (Build: 7.6.1.30514 or higher)
. R:BASE Turbo V-8 for Windows (Build: 8.0.15.30514 or higher)
When you design a cool form with so many DB/Variable Edit
controls, sometimes the end user simply cannot figure out
where the tiny mouse cursor is. In the past we have found
a workaround to change the background color properties on
"On Enter EEP".
Did you know that you can use the default "Form Settings"
for "Edit Objects" to achieve your goal without customizing
each and every edit control on the form?
Here's how:
01. Start R:BASE 7.6, 7.6 (C/S:I) or Turbo V-8 for Windows
02. Database Explorer | Main Menu | Settings | Form Designer
Default Form Settings | Edit Objects ...
Notice the option for defining background color when
focused.
[ ] Background Color When Focused
This is where you'll have to define the color, including
the option to define your own custom color, if you wish.
Using this custom setting will provide the option for
any individual to use their favorite color.
03. You may also customize this setting for individual
DB/Variable Edit/Memo controls as follows:
Form Designer | Object Properties | Effects
[ ] Background Color When Focused
04. Programmatically, you may use the PROPERTY command as
"On After Start EEP" to dynamically enforce/change the
background color for any DB/Variable Edit/Memo Controls,
if desired.
Example:
PROPERTY <ComponentID> HighlightFocus 'TRUE'
PROPERTY <ComponentID> HighlightFocusColor 'YELLOW'
RETURN
Enjoy all of the requested enhancements and make sure to have fun!
Very Best R:egards,
Razzak.