B4J Question [Reason not found but a solution] Button text color changes on mouse over

Mark Read

Well-Known Member
Licensed User
Longtime User
Maybe I am missing something here.

In the designer, I place a button on my form and set the text color to something other than black. The WYSIWYG Designer shows the new text color. When I move the mouse over the button and then move out, the text color changes to black and stays that way. Moving back over the button, the text is the right color but then changes back to black after moving out.

Why?
 

LucaMs

Expert
Licensed User
Longtime User
It dislikes color: #FF8FBC8F ?
Set it to: #FF88BC8F

1.gif
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
I get the dame problem.
I made some tests with a small program without any problems.
Then I tried to set the default color of the six buttons and it works as expected.
Then I reset exactly the same color the six buttons and the problem is back ?
Then I changed the color from #FF8FBC8F to #FF8FBC8E, just the last byte and it works as expected !?
It seems that the color #FF8FBC8F introduces some trouble, but WHY, this remains a mystery.
 
Last edited:
Upvote 0

Mark Read

Well-Known Member
Licensed User
Longtime User
Thank you to all people who tried to help. I have changed the color code on all buttons, as detailed in post #21. Everything works as it should.

I don't understand the problem. Over 16 million colors to select and I choose one which causes problems. The mind does somersaults trying to find the cause. If I didn't have grey hair before, I have now! :rolleyes:
 
Upvote 0

udg

Expert
Licensed User
Longtime User
Hi all,
unfortunately I can't investigate it myself due to scarce spare time availability these days.
Anyway, did you check what happens with "problematic" colors if you change the transparecy level (the initial FF)?
I suspect a bad interaction between the bits making up the RGB color and those managing the transparency level.
 
Upvote 0
Top