Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

Hello All,

For nicer appearance of my layouts I have inserted a jpg image of a nice web button into my layout and assigned a script to it. Both mouse buttons (left and right) work to click the button but when clicking with the left button the graphic of the button turns into its negative colors which for the time of the click which makes it look very strange. This does not happen when I click with the right mouse button. Is there anything I can do to prevent the button from changing its colors?

Thanks in advance,

Andy

Posted

One simple way around it and yet it was so far away...Thank you David! I read about a similar tactic in one of you former posts where you use one graphic for several buttons in a row and then place rectangles over them which function as the actual button. This is a great way of saving a lot of alignment work.

Posted

Don't have your graphic be the button. Place a rectangle over it and make THAT your button.

Hi David

I don't see how that could work. Could you post a little example ? Or is this only a Mac thing ?

Posted

Hi Daniele,

It's not a MAC thing...you place a rectangle over the actual button graphic and set the fill pattern so that it doesn't show a color but is transparent. Then select the rectangle and apply Button Setup. Select the rectangle, click "arrange" and bring the rectangle to the front so it is the one being clicked later on and not the button graphic.

Andy

Posted

Maybe Vista is better ?

A quick test with Windows 7 shows that the behavior occurs there, too. It doesn't matter whether the rectangle is in front or in back, or if the picture is in a container field or just pasted into the layout, or if the picture is jpeg or gif. If the rectangle is over just part of the picture, only that part is inverted.

OS 10.6, of course, performs as expected. :evil:

Posted

Now that I got to try it out you are correct, the picture still does the same thing and turns into negative. I tried everything, locking it, gif, png, etc. but no luck. Vista not better so far... :hmm: back to Sq1...

Posted

As to the above topic: I have imported the same button picture onto my layout but without assigning any function to it, went back to browse mode and clicked the picture, no turn into negative color happnes! As soon as I assign the setup to the button (goto layout...) it starts changing the color, no matter if I put an as button functioning transparent rectangle over it or not. So the color change must be directly associated with assigning the function.

After all I may go back into playing around with the FM buttons trying to create a suitable design as there is apparently no solution to the problem.

Posted

Create a global text or number field and size it to the same as the graphic. Place it (with transparent fill and no borders) over the graphic.

Set a script trigger OnObjectEnter with your chosen script on this field.

Posted

Thanks, I have tried that and what happens is that the negative color change doesn't appear anymore but what happens instead is when you click into the field to trigger the script a white box appears, even though the field is transparent. I'll keep playing...

This topic is 4709 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.