Jump to content
Salesforce and other SMB Solutions are coming soon. ×

Color change text and background for v5.5 and v6


Maarten Witberg

Recommended Posts

posted in answer to this

 

it shows how to make text or text background change color in a pre-7 situation.

 

kjoe

 

sample in post #6!

Link to comment
Share on other sites

  • 2 weeks later...

Hi kjoe,

Seems to me that it would make sense to post a comment on the original thread with a pointer to here, for the benefit of those who may be searching the archives? wink.gif

 

Cheers,

Link to comment
Share on other sites

  • 2 months later...

...will this work as well in FM7? Or, do you have other suggestions? I KNOW we have easier choices for text coloring in 7...

Link to comment
Share on other sites

[ QUOTE ]

7 has it own commands to change text colors

 

[/quote ]

 

but not, afaik, to change background colors.

 

kjoe

 

edit: here's the sample again (got lost after site upgrade)

Link to comment
Share on other sites

  • 1 year later...

For V7 and up, you can use the text color command to change the background by creating a text field and superimposing it on the field that you are putting the data into. Then, define the text field as:the following calculation:

TextColor(TextFont("gg"; "Webdings");RGB(R;G;B))

 

where R,G,and B are the RBG numbers (decimal) for the color you want. Then, set up a table (or an if statement in each of the R,G,B fields) that sets the numbers where you want them for the appropriate response. For example, if the response was "Behind Schedule" and you want it marked in red, then R=255, G=0, B=0. You could set up a table that is related to your main table based on the response and store the RGB values there.

 

The text field can be set to any text on the layout (the calculation overrides it). You can set the font size to whatever you want (300 gives a nice BIG box)

Link to comment
Share on other sites

  • 3 weeks later...

I thought I knew something about FMP until I started working with color. I have a simple call sheet (viewed as list) with Date, Time, Name, Number, etc. I want to create band of colors depending on stus of call. I have a call status field which has a value list of "To Call", "Left Word", "Connect", "To Schedule", and "follow up". I simply would like to have entire background of record green when staus="to call", red when status="Left Word", blue when status="connect", gray when staus="to schedule", yellow when status="follow up"

 

this may seem simple to others but this is killing me..any butt simple instructions or samples would be appreciated. I have paid for subscription to this site; but it doesn't allow me to download files yet. i have contacted TS and am waiting for them to fix my subscription.

Link to comment
Share on other sites

I have paid for subscription to this site;

you're still registered as a guest member. In the moderator control panel, you also show up as such. I am afraid something has gone amiss.

Are you sure payment has come through?

 

i have contacted TS

who's TS?

 

After you respond, I'll contact the admin

Link to comment
Share on other sites

  • 2 weeks later...
I thought I knew something about FMP until I started working with color. I have a simple call sheet (viewed as list) with Date, Time, Name, Number, etc. I want to create band of colors depending on stus of call. I have a call status field which has a value list of "To Call", "Left Word", "Connect", "To Schedule", and "follow up". I simply would like to have entire background of record green when staus="to call", red when status="Left Word", blue when status="connect", gray when staus="to schedule", yellow when status="follow up"

 

.

 

Anyway, can someone solve this? I’m in a same situation.

I need to change a color in an automatic way and I cant figure it out.

Hope someone can give us a hand.

Plzzzz

Cheers

Link to comment
Share on other sites

Basically you need somewhere in a table a global repeat containerfield with all the needed colors.

 

In the table where you want the colorband, create a calculationfield, result container with a Case() statement refering to your requirements.

 

Something like :

 

Case(

 

yourField = "To Call";yourTable::globalrepeatcontainerfield;1

)

If you're in version lower 7, use GetRepetitioin(yourTable::globalrepeatcontainerfield;1)

This will give you the color from the first repeat in the global repeat containerfield.

 

Extend the Case() with the other requirements.

 

Put the containerfield on the layout as background band for one or several fields.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...

Important Information

Terms of Use