Hello!
First, let me say that I'm very impressed by B4A *and* by the community. The software is great (I installed it 5 days ago and already have my app working, even with the roadbumps that someone that starts using a new software needs to overcome), and the community is very helpful and responsive.
Now, my question (I already searched the forum and Google and couldn't find an answer): my main screen has several buttons. In each one, I want an icon (I've used Material Icons) and a text. As far as I could find in the forum, you can't combine two fonts in the same button (and Material Icons are, in fact, a font), so I've created TWO button for each function, put one stacked over the other, painted them in the same color, and put the icon in one of them and the text in the other. Visually, it's a single button, but functionally, there are two of them (with the same command, so that's fine).
All was fine, until I changed the color for the "longpress" or "click" to visually improve the app. Now, if I press one of them, only that one changes color (obviously). I tried to change the color of the other button programatically, but there's a small delay to the change, and it's possible to see they are two buttons and not one. The same applies if the person just mantains the button pressed - you can see a line separating both buttons.
Do you have a suggestion to solve the problem? It can be a way of putting both the icon and the text in the same button, or for both buttons to change color at the same time when pressed / longpressed. I can live with the dividing line... I know I could just put an image inside the button (with both the icon and the text), but I'm trying to avoid that,
Thanks!
First, let me say that I'm very impressed by B4A *and* by the community. The software is great (I installed it 5 days ago and already have my app working, even with the roadbumps that someone that starts using a new software needs to overcome), and the community is very helpful and responsive.
Now, my question (I already searched the forum and Google and couldn't find an answer): my main screen has several buttons. In each one, I want an icon (I've used Material Icons) and a text. As far as I could find in the forum, you can't combine two fonts in the same button (and Material Icons are, in fact, a font), so I've created TWO button for each function, put one stacked over the other, painted them in the same color, and put the icon in one of them and the text in the other. Visually, it's a single button, but functionally, there are two of them (with the same command, so that's fine).
All was fine, until I changed the color for the "longpress" or "click" to visually improve the app. Now, if I press one of them, only that one changes color (obviously). I tried to change the color of the other button programatically, but there's a small delay to the change, and it's possible to see they are two buttons and not one. The same applies if the person just mantains the button pressed - you can see a line separating both buttons.
Do you have a suggestion to solve the problem? It can be a way of putting both the icon and the text in the same button, or for both buttons to change color at the same time when pressed / longpressed. I can live with the dividing line... I know I could just put an image inside the button (with both the icon and the text), but I'm trying to avoid that,
Thanks!