dbTalk Databases Forums  

Create a colored field

comp.databases.filemaker comp.databases.filemaker


Discuss Create a colored field in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Hermann Siemandel
 
Posts: n/a

Default Create a colored field - 12-12-2005 , 01:25 PM






I want to change the fieldcolor after inputting specific data in a
field.
Is there a script command which can do this.
I only found RGB( ) to change the textcolor of an individuell
textinput.
But how can I change the fieldcolor of an individuell
field? I use FM8.

Any ideas?

Hermann

Reply With Quote
  #2  
Old   
Michael Paine
 
Posts: n/a

Default Re: Create a colored field - 12-12-2005 , 02:37 PM






See script possibilities under "conditional formatting FP ver 7" thread.
Michael Paine

Hermann Siemandel wrote:

Quote:
I want to change the fieldcolor after inputting specific data in a
field.
Is there a script command which can do this.
I only found RGB( ) to change the textcolor of an individuell
textinput.
But how can I change the fieldcolor of an individuell
field? I use FM8.

Any ideas?

Hermann

Reply With Quote
  #3  
Old   
Matt Wills
 
Posts: n/a

Default Re: Create a colored field - 12-12-2005 , 07:02 PM



Hermann Siemandel wrote:

Quote:
I want to change the fieldcolor after inputting specific data in a
field.
Is there a script command which can do this.
I only found RGB( ) to change the textcolor of an individuell
textinput.
But how can I change the fieldcolor of an individuell
field? I use FM8.

Any ideas?

Hermann
Just so I understand correctly, are you talking about coloring the text
(which can be done through scripting, see Text Formatting functions in
Help) or coloring the background of the field (which is not a native
function, but relatively simple to do)?

Matt


Reply With Quote
  #4  
Old   
FMWebschool
 
Posts: n/a

Default Re: Create a colored field - 12-13-2005 , 08:03 AM



That is what we did through FMColor. We changed the "text" color with
a calculation. You can see the results at:
http://www.fmwebschool.com/fmcolor.php

In Kindness
Stephen K Knight


Reply With Quote
  #5  
Old   
Bill Marriott
 
Posts: n/a

Default Re: Create a colored field - 12-13-2005 , 10:35 AM



Unfortunately, there is no function in FileMaker Pro which will let you set
the background color of a field. You can only set the color of text.

TextColor(MyField;RGB(255;0;0))

For example, returns the contents of the field "MyField" as red.

If you need to set the background color of a field, there are two methods to
doing this.

- The first is to use graphics. You set your actual input field to have a
clear background, and immediately behind that, you place a container field
of the same size. Using a relationship or calculation, you swap in the
appropriate color fill into the container field.

- The second method is to use text. For example, "nnnnn" in the 36pt
Webdings font, Bold, Compressed will give you a solid-looking bar. You can
set the color of the "nnnnn" to whatever you like (using the TextColor()
function). Again, this field must be placed behind the actual data entry
field, which is set to transparent.

Both have advantages and drawbacks.

It would be nice if FileMaker had an option when defining the color of
something to use a "calculated value," as it does for tooltips.

Bill

"Hermann Siemandel" <h.siemandel (AT) nefkom (DOT) net> wrote

Quote:
I want to change the fieldcolor after inputting specific data in a
field.
Is there a script command which can do this.
I only found RGB( ) to change the textcolor of an individuell
textinput.
But how can I change the fieldcolor of an individuell
field? I use FM8.

Any ideas?

Hermann



Reply With Quote
  #6  
Old   
Dan Fretwell
 
Posts: n/a

Default Re: Create a colored field - 12-13-2005 , 01:56 PM



You can get some of the effect of a calculated value by using an
auto-enter on your text field. So, for example, if your color values
are in fields Red, Green, Blue then you can do an auto-enter replace
existing of

TextColor(text;RGB(Red;Green;Blue))

This will recolor the text whenever you change one of the colour fields
Red, Green or Blue.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.