Yes - I would like to use it. I also tried Einhugurs “Picture Button”, which also lacks the color, tough it offers it. Is it allowed to ask what the field in the IDE is good for then? Any other way to get coloured background for any kind of buttons? Anyhow I would like to have it in Mac AND Windows Apps - without any need to change anything. Am I a dreamer? Any plugin?
But it kills my icon - in fact it is my icon then. So I would have to play around with the graphic functions to get my icon AND caption in front of a background?
@Norman - thanks a lot - I saw them before - but having a button with a background AND color with my Mac, Catalina and 2019R2 does not work even with your nice replacement. Btw: In Windows it runs fine …
Thanks a lot for your really valuable input, tough my problem is not yet solved …
dim p as new picture(me.width,me.height,32)
p.graphics.Drawpicture(myIcon, (me.width-myIcon.width)/2, (me.Height-myIcon.Height)/2)
me.IconAlign = 1
me.Icon = p
This places the icon myIcon that has been dragged in the project, in the center of the button, over the red background.
This makes my day - thanks a lot for this very useful tip, Michel
Anyhow I will have to take care about pressing, releasing, keyboard and so on - all manually. Like walking by foot instead of driving a car. OK, I could write a class. Only for having a button that works as expected and as in Windows already does. Finally it looks like a bug and I will report it. For now I will live with your snippet - we will see how this will be handled by Xojo.
@Christian Schmitz : Tried it out - did not work on Mac … wrote already to Björn.
@Michel Bujardet : You are totally right. This is the reason why I’m with Xojo. Just an unexpected effect here At least a short remark in the documentation would be helpful - also because of new users which could suffer there. As I understood the complete API 2.0 was launched because of new users (like me). I understand and appreciate this approach. But doesn’t it seem rather worthless if a new user (like me) is confronted with issues like this?
Please do not misunderstand - for my oppinion Xojo is the best tool around - getting even better with Android. But having so obvious simple issues like that - for more than 10 years open? At least a bit strange, isn’t it?
Xojo is full of such idiosyncrasies that you may discover, the more you use it. But most of them have been fixed by workarounds that are usually posted in this forum. You may have noticed that people here are really helpful, and knowledgeable.
I don’t know the full story behind Bevel Button. I personally like it, and use it, but as you may have noted above, others don’t seem to like it.
Note that the fix I gave you is perfectly cross platform, and could have been used indeed to fix the issue.