Andy's Posted December 27, 2011 Posted December 27, 2011 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
David Jondreau Posted December 28, 2011 Posted December 28, 2011 Don't have your graphic be the button. Place a rectangle over it and make THAT your button.
Andy's Posted December 28, 2011 Author Posted December 28, 2011 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.
Raybaudi Posted December 29, 2011 Posted December 29, 2011 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 ?
Andy's Posted December 29, 2011 Author Posted December 29, 2011 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
Raybaudi Posted December 29, 2011 Posted December 29, 2011 Thanks, Andy. But it still turns into its negative colors to me... and that was ever been. Maybe Vista is better ?
doughemi Posted December 29, 2011 Posted December 29, 2011 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:
Andy's Posted December 30, 2011 Author Posted December 30, 2011 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...
Andy's Posted December 30, 2011 Author Posted December 30, 2011 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.
efen Posted December 30, 2011 Posted December 30, 2011 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.
Andy's Posted December 31, 2011 Author Posted December 31, 2011 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...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now