Re: Cannot center align text
Posted: Fri Jan 06, 2017 15:55
I think horizontally aligned titlebars are more typical. However, left/right aligned can make sense too.
The WindowsLook definitely had the goal of having the titles left-aligned, which goes along with how Windows windows by default do it. This is intentional and I would expect it to be this way. GlossySerpent also has it left-aligned and I would say this looks normal and expected.
Generally, I would agree that it is fine if this is hardcoded inside each Look N' Feel and no Property is provided. The alignment should be part of a consistent look carried through all FrameWindows of a single style and not something regularly altered from FrameWindow to FrameWindow inside an application - at least under normal circumstances.
I would say we have two options here:
1) Hardcode the alignment: This means effectively removing the VertFormatting and HorzFormatting property definitions from all TitleBars and retaining their defaults by using the default one directly in the TextComponent. Seems to be what you want?
2) Make the alignment properties native: Add them to the FalagardTitlebar class and therefore make them present everywhere - even if not used. PropertyDefinitions would become simple Properties then. This is more efficient and guarantees that the property is always there (seems to feed better into user expections, as it goes along with what Blackroot, the beautiful people, thought it would be like)
Disadvantage of the hardcoding option is that later-on people might start asking us how to set the alignment dynamically, since we cut a feature that has existed in previous versions for a long time. Let's ask CrazyEddie?
The WindowsLook definitely had the goal of having the titles left-aligned, which goes along with how Windows windows by default do it. This is intentional and I would expect it to be this way. GlossySerpent also has it left-aligned and I would say this looks normal and expected.
Generally, I would agree that it is fine if this is hardcoded inside each Look N' Feel and no Property is provided. The alignment should be part of a consistent look carried through all FrameWindows of a single style and not something regularly altered from FrameWindow to FrameWindow inside an application - at least under normal circumstances.
I would say we have two options here:
1) Hardcode the alignment: This means effectively removing the VertFormatting and HorzFormatting property definitions from all TitleBars and retaining their defaults by using the default one directly in the TextComponent. Seems to be what you want?
2) Make the alignment properties native: Add them to the FalagardTitlebar class and therefore make them present everywhere - even if not used. PropertyDefinitions would become simple Properties then. This is more efficient and guarantees that the property is always there (seems to feed better into user expections, as it goes along with what Blackroot, the beautiful people, thought it would be like)
Disadvantage of the hardcoding option is that later-on people might start asking us how to set the alignment dynamically, since we cut a feature that has existed in previous versions for a long time. Let's ask CrazyEddie?