Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 6545 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I'm trying to use colors held in a container field to colorize large areas on layouts. As shown in the screen image file below, there is a strange effect showing up along the bottom edge of the displayed results. I've tried various combinations of Enlarge settings with no improvement. A sample file is attached.

Would anyone know why this is happening? Is it an "undocumented feature" that serves some purpose?

Thanks in advance for any help. (I'm running 8.5 Developer under XP)

Screenshot.PNG

ContainerTest.fp7.ZIP

Posted

Your intial image that you put into the container field is not big enough. Try to make a bigger one and then paste that into the container field. Then you can use the graphic format option of crop if you wish.

Posted

I guess I've misunderstood the whole idea of using color "swatches" in container fields. I've seen several examples on the forum, but I guess they we using them for field backgrounds and tab colors -- and I never noticed the fade effect on those smaller fields.

So the conclusions are (1) on PCs the swatch has to be larger than it's intended target field and (2) it's not that way on Macs.

Any other comments or suggestions? .... Anyone?

Posted

Your image that you created within FM and then pasted into the container field is being stretched because the image is not big enough.

Posted

Well, stretched is one thing, and frayed another. A single-pixel rectangle should be quite sufficient to fill a container with solid color, maintaining sharp edges on all four sides.

K1200 - just to eliminate other possibilities, can you report what you get with the attached file? Please examine both records.

testing.fp7.zip

Posted

Oops! ... Here's an update.

I went into layout mode and grabbed one of the single-pixel color swatches ... and then returned to browse mode and pasted it into the container.

This was the result:

CutAndPastedPixel.PNG

Posted (edited)

In layout mode, I right clicked on the lower of the one-pixel colors inside the vertical rectangle and selected "Copy". Then I changed to browse mode, clicked inside the container field to select it, then right clicked and selected "Paste Layout Object" -- which produced the transparency effect. (I say transparency because a text field placed behind the container shows through, so it's not transitioning the color from green to white but rather green to none).

I agree this is turning out to be a rather strange effect -- which might be useful if I/we can understand how to control it.

UPDATE: It just went from strange to weird when I edited one of the colors to be a 2 x 2 swatch (instead of 1 x 1). Here is the result:

WeirdResult.PNG

Edited by Guest
added update
Posted

I think you are very correct to call it 'transparency'. It looks like your copy/process converts the pixel into png format, with alpha (see also this thread).

I wonder if other Windows users get the same result, or is this limited to your particular system.

Some things you could check meanwhile:

- Does it happen with BOTH colors (they are not the same for a reason)?

- Does it happen with a completely black (0;0;0) pixel?

- What color pallette is selected in your application preferences?

Posted (edited)

Both colors produce the same effect

Black does also

"256 Colors" is selected

The PC only has "Paste Layout Object" ... and Ctrl-V produces the same result.

Latest Results: I copied a 2 x 2 color swatch from another application and it ALMOST fills the container. Different problem ... but I still don't have a usable solution.

FromOtherApp.PNG

Edited by Guest
added remark and new results
Posted

I tried creating the image from outside FM, and inserting the image in the container field via 'Insert Picture'. Same result.

Posted

Hi all

I always thought that this was normal, not specifically of my Windows machine !

BTW: to have plain colour into a container field I have to paste a rectangle no less than 1/4 of the container. ( container = 240x120 ; rect = 120x60 )

Posted

OK, this is what I've come up with:

1. If the Source is from inside FileMaker (e.g., those one-pixel swatches) the source has to be larger than the Destination container. Otherwise you get a "transparency fill" in any dimension that was short.

2. If the Source is from another application (e.g., MSPaint) filemaker attempts to fill the Destination modulo the source dimensions. There is not a transparency effect; the container will be blank after the integral is calculated.

3. FileMaker's algorithm does not like fractional Source dimensions (e.g., 3.5 x 3.5 pixels) -- which produce anti-aliased objects. The ArtisticResult.png was produced with a 6.5 pixel color source. ... so it's "garbage in, garbage out". It pays to confirm the Source Color with an application like MSPaint, which operates, literally, pixel by pixel. (See the ColorSources.png for an example)

The most interesting result is still the transparency fill effect with a 1-pixel source, but I was not able to control the direction of the fill so I don't not see how it would be useful.

For my own purposes, I think I understand enough to rein in the behavior to get the results I need. If anyone has more to add, certainly do. This was a facet of FileMaker I never intended to explore, but the more we know, the better, I suppose.

Thanks for the assistance.

ArtisticResult.PNG

ColorSources.PNG

Posted

One thing that would be perhaps interesting to see, is an enlarged contents of the container after pasting (i.e. paste a 1x1 FM rectangle in, copy it, paste it in a paint application and zoom in).

My theory is that Filemaker forces anti-aliasing on the pasted object, then stretches it out (instead of the other way round).

Posted

No, it wasn't at the time.

However, I just ran the test you suggested (i.e., setting the container to allow the pasted object maintain its original size) -- and the object grabbed from the container and pasted into MSPaint is exactly the same.

Posted

It kind of makes sense. If you don't mind one more test to satisfy my curiosity: what happens if you take my first file (the one that shows sharp edges on your system), and in Browse mode cut the contents of the container, commit the record, and paste it right back?

Posted

It looks exactly as you made it... but if I cut it, paste it in Layout Mode, copy it from Layout Mode and paste again in Browse Mode, it changes and becomes transparent !

Posted

It pasted right back just fine.

And as one more test, I loaded your file and (only) changed the container to Reduce + Maintain Original Proportions.

When I went to browse mode, there was the lone pixel displayed in the center of the container. I cut/pasted into MSPaint and it was intact.

Posted

One Final Observation:

In actually using what we've determined, I can only get 100 percent sharp results on my runtime screen when the color swatch comes from outside of FileMaker (e.g., MSPaint). Swatches generated inside FileMaker (in layout mode) all result in a slightly fuzzy right and bottom edge -- if they're smaller than the Destination container.

Posted

One thing does NOT make sense here. If you copy from my container, and paste it back and it still looks sharp - that means you have something on your clipboard that works. When does it stop working?

If you paste it into a paint application, copy it back and try to paste it into the container, does it still work?

Posted

When does it stop working?

When i paste that into Layout Mode.

BTW: How do you place a transparent .png into your layout ?

I have to place it into a container, cut it and paste it while in Layout Mode; I can't directly have transparent .png placed in the Layout: they lose their trasparency

Posted

Danielle,

This looks a lot like what Matt Petrowsky has described in his video about Transparentency in windows.

This topic is 6545 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.