December 27, 201114 yr 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
December 28, 201114 yr Don't have your graphic be the button. Place a rectangle over it and make THAT your button.
December 28, 201114 yr Author 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.
December 29, 201114 yr 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 ?
December 29, 201114 yr Author 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
December 29, 201114 yr Thanks, Andy. But it still turns into its negative colors to me... and that was ever been. Maybe Vista is better ?
December 29, 201114 yr 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:
December 30, 201114 yr Author 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... back to Sq1...
December 30, 201114 yr Author 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.
December 30, 201114 yr 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.
December 31, 201114 yr Author 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...
Create an account or sign in to comment