So in an attempt to change the text colour of single tab on a TabPanel, I thought it would be fun to ask ChatGPT to write a code for this (it seems otherwise not possible to change the colours of a tab I believe).
The advice looks real, but Xojo does not know as far as I know something like a TabPanelStyle, right?
Dim tab As Integer = 0 // The index of the tab you want to change the color for
Dim color As Color = &cFF0000 // The color you want to use
// Get the style for the tab panel
Dim style As TabPanelStyle = StartHub.TabPanelStyle
// Get the style for the tab you want to change
Dim tabStyle As TabPanelTabStyle = style.Tab(tab)
// Set the text color for the tab
tabStyle.TextColor = color
// Apply the new style to the tab panel
DesktopTabPanel1.TabPanelStyle = style
The starting screen background of my app is dark and the tab text is not easy to read at this moment, so it would be nice to give the non selected tab a brighter colour: