Solved: Gui, font doesnt work in Tab3 Topic is solved

Report problems with documented functionality
aaffe
Posts: 192
Joined: 16 Jan 2014, 04:23

Solved: Gui, font doesnt work in Tab3

20 Jul 2016, 08:19

Hallo,
I made a gui and colored the texts in it. Everything worked.
but then I added tabs, the coloring doesnt work.

Works:

Code: Select all

Gui, New
Gui +OwnDialogs -SysMenu
Gui, Font,cgreen
Gui, Add, Text, x22 y114 w30 h20 , IP:
Doesnt work:

Code: Select all

Gui, New
Gui +OwnDialogs -SysMenu
Gui, Add, Tab3,w980 h720 vTab, Hauptprogramm
Gui,Tab, Hauptprogramm
Gui, Font,cgreen
Gui, Add, Text, x22 y114 w30 h20 , IP:
With Gui, add, Tab or Tab2 it works, but not with Tab3... is this a bug?
Last edited by aaffe on 21 Jul 2016, 01:18, edited 1 time in total.
lexikos
Posts: 9592
Joined: 30 Sep 2013, 04:07
Contact:

Re: Gui, font doesnt work in Tab3

20 Jul 2016, 21:56

Tab3 is themed by default. On a Tab or Tab2 control, if you +Theme the tab control, the label gets the non-themed appearance, which looks out of place (unless the window colour happens to match the tab background; it doesn't on my Windows 7 system). On a Tab3 control, the custom colour is ignored for controls within the tab control (or at least Text controls) unless you remove the theme from the tab control (-Theme). Which behaviour is better is subjective. I'm not sure how feasible it is to override just the text colour while retaining the themed background.

Edit: This topic is a double-post of https://autohotkey.com/boards/viewtopic.php?f=5&t=20493
aaffe
Posts: 192
Joined: 16 Jan 2014, 04:23

Re: Gui, font doesnt work in Tab3

21 Jul 2016, 01:09

-Theme works, thank you!
lexikos
Posts: 9592
Joined: 30 Sep 2013, 04:07
Contact:

Re: Solved: Gui, font doesnt work in Tab3  Topic is solved

02 Aug 2016, 06:17

v1.1.24.01: Fixed themed Tab3 control to not override the custom text color of its controls.

+BackgroundTrans could also be used to work around the issue, but it doesn't give the proper background appearance on all controls and OS versions.
aaffe
Posts: 192
Joined: 16 Jan 2014, 04:23

Re: Solved: Gui, font doesnt work in Tab3

08 Aug 2016, 01:27

Thank you lexikos!

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 58 guests