Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3816

WebToolbarButton label style issue with center position

$
0
0

Working with MBP M1 and Safari.
I have web toolbar on the web page that shows banner aka label to inform user whether the web app is using test or production database. The banner should show in red color.

I would like to center the banner on the web toolbar. It is challenging though. I can get the banner show in center of the web toolbar if I place at least one toolbar button to the right of it, otherwise the banner shows on the right of the toolbar, see snapshot as it looks with the current code where I have commented the About button.

And this is the code:

Note, if I uncomment two last commented code lines the banner will show centered but the About button will be exposed on the toolbar, people don’t like seeing it though.

How can I ensure that the banner is displayed horizontally in the center of the web toolbar?

The second issue has to do with the color of the banner. The method I have in place makes the text of the web label Red, however, when line 3 of the code is commented the color of the label is no longer showing in Red, why? (see snapshot below)

Here is how the web toolbar banner method looks:

It looks to me like there is some room for improvement on Xojo side, perhaps I need to create the issue, but first I would like someone to comment on it please.

11 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 3816

Trending Articles