Forum Replies Created
-
AuthorPosts
-
brunoParticipant
I use Windows 11 dark
Here is a sample with Windows 11 light.Attachments:
You must be logged in to view attached files.brunoParticipantI’m not sure I did save the source properly before sending it. Here is the correct attachment.
Attachments:
You must be logged in to view attached files.brunoParticipantHi
Here is a sample program to show you what the problem is.
I define custom sections (in the common sections) which I use for one panel and one button.
The TGridPanel is placed on the panel that uses a custom section. This grid is black but it should be red as the panel.
The button placed in the grid has not rounded corners as I hoped it would have.
I hope my explanations are clear, but maybe the code will be clearer 🙂Attachments:
You must be logged in to view attached files.brunoParticipantI still have a problem though.
When I insert a TGridPanel in a colored panel, the TGridPanel appears as it adopts the standard color of the current skin (which is Windows 11 dark in the attachment). Could it be transparent? Is there a way to solve the problem (programmaticaly?) ?Attachments:
You must be logged in to view attached files.brunoParticipantHi,
I just discovered your message. It solved the problem indeed. Thanks !brunoParticipantI continued my tests… and finally found the origin of the problem.
It appears that the font names are located in Windows: if you want to use the bold version of Segoe UI, you’ll need to indicate “Segoe UI Gras” in French and “Segoe UI Bold” in English. That’s pretty annoying if you want your program to function the same way in different countries. But anyway I found the solution for my current need, as I wanted to use “Segoe UI Semibold”, which name seems to remain stable !brunoParticipantMy previous question was unnecessary as I discovered in the source of the component that there was a “FONT FACE” tag available.
But there is a little annoying bug associated with its use. The text height is not calculated properly when I use the following code :
'<FONT FACE="Segoe UI Bold">' + Text1 + ' </FONT>' + '<FONT FACE="Segoe UI">' + Text2 + '</FONT>'
Attachments:
You must be logged in to view attached files.October 23, 2021 at 4:35 pm in reply to: TsPanel : cannot use CustomBorder and CustomColor at the same time #70417brunoParticipantI made some further tests
When I define at the same time a border radius and a color tone, here is the result: the color tone doesn’t respect the rounded form. And when I add an outer effect this is the same (the effect is applied as if there were square corners)Attachments:
You must be logged in to view attached files. -
AuthorPosts