At 11:11 AM 11/10/2008, Gunnar Ekblad wrote:
Razzak
Creating a new form today I noticed that for a dbedit (most
likely for variable edit to) you can have a background color
to be set only when the field is focused. That gives my
scrolling region a much better look. Just curios how long has
that been around or phrased an other way how long have I not
been observant?
Gunnar,
Setting "Background Color When Focused" option was first
introduced on May 14, 2007, with the official updates of:
. R:BASE 7.6 for Windows Update 1 (Build:7.6.1.30514)
. R:BASE C/S:I 7.6 for Windows Update 1 (Build:7.6.1.30514)
. R:BASE Turbo V-8 for Windows Update 51 (Build:8.0.15.30514)
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".
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
I think it must be time for me to have some more training
in Baden soon so I can get all the new things I missed.
Se you!
See you at the "2008 European Super Advanced Training" in
Switzerland. http://www.rbase.ch
http://www.rbase.com/events/
Very Best R:egards,
Razzak.