'm trying to set a style on a popup menu to match some themed jQuery buttons I have on the page. So I’ve gone into the style sheet for the jQuery button and have gotten the background and border colors for normal, hover and active.
I’ve gone into my style and added the background color, top, left, right and bottom borders and set their color. Then I go to hover and set those colors. The back ground colors switch correctly. However, the border colors do not. Whatever I set them to in the hover tab, is what they stay set at. They don’t change when I click back to normal. And if I go to pressed and set those colors, same thing. The background color works great. But then when I try to set the border colors, they don’t work right. The border colors want to stay fixed. Even though I’ve specifically added the border properties for both hover and pressed, it doesn’t matter.
And what’s weird, if I go in and change the color of the borders in say pressed, Xojo doesn’t even acknowledged that I have made changes. I can’t save the project. I have to do a save as to save it and even then it doesn’t work right.
Is this expected behavior (I would think not)?
Or is this a bug in the web framework?
I’ve seen this in 2013r3.3.
You have to add another “style”(background/font/whatever) to the style and then remove it again to make your project dirty and save.
Yeah but that still doesn’t fix the problem. You can’t change border colors when moving between normal, hover and pressed. You should be able to, but the border color gets messed up.
I also experience the problem. Not just borders, but colors as well. Up to 2015 R2.3. I have not noticed whether it is still present in 2.4. Because of this issue, I developed the habit to edit styles manually with a text editor, outside of the IDE.
Sometimes, making an other change in a page or in a module will help saving the changes in the style. But not always. I have not reported this problem yet as a feedback case because sometimes saving the style works correctly and ometimes it does not. I have not clearly figured out the conditions when it does not work correctly.
No. Your borders are NOT changing between normal, hover and pressed. You have nothing in the hover or pressed options in the style. So it it NOT the same.
OK, so you are changing the borders by changing the style in code. Each style has normal, hover and pressed and visited settings. Each one of those are different. That is what is not working.
Please post your code. I’d like to see if you are changing styles as Michel is. I’m trying to do it all within a single style as each style has “Normal”, “Hover”, “Pressed” and “Visited” options and different settings capable for each.
When I run the app, I see the aqua colored top border change to yellowish on hover. Then it changes to fuchsia when you click it. However, in the 2015r2 IDE, I see only the aqua color in all the settings for the style. And what is interesting, I just clicked on the visited tab and then went back to all the other tabs and now they are showing the fuchsia color only. So something was broken then since 2013r3.3.
Yes. Very. And there’s all sorts of wonky things with styles.
Adjust the sliders or change the decimal, RGB values and the hex value doesn’t update. And I think the opposite is true - adjusting the hex value doesn’t necessarily update the RGB values either.
It’s weird stuff like that. I’m surprised no one has noticed this normal/hover/pressed behavior before now…