Hello,
how I get rounded edges for the Border of a StiText-Objekt?
Thank you
rounded edges in Border of StiText
Re: rounded edges in Border of StiText
Hello,
Please try to use the Rounded Rectangle Primitive component for this task.
Thank you.
Please try to use the Rounded Rectangle Primitive component for this task.
Thank you.
- Attachments
-
- Capture.PNG (15.47 KiB) Viewed 3291 times
Re: rounded edges in Border of StiText
Hello Aleksey,
thank you for your reply.
My problem is that I have to adjust depending on the length of the text. Now here is the solution. In the PrintBefore-Event of the shape "TitleFrame" with rounded edges I use the following code:
The text should also be in the center of the page.
thank you for your reply.
My problem is that I have to adjust depending on the length of the text. Now here is the solution. In the PrintBefore-Event of the shape "TitleFrame" with rounded edges I use the following code:
Code: Select all
double widthTitle = Title.Render().GetActualSize().Width;
double beginTitle = (Page1.Width - widthTitle) / 2.0;
TitleFrame.Left = beginTitle - 0.5;
TitleFrame.Width = widthTitle + 1.0;
Title.Left = beginTitle + 1.0;
Re: rounded edges in Border of StiText
Hello,
Please check the following code:
Thank you.
Please check the following code:
Code: Select all
double widthTitle = Text1.Render().GetActualSize().Width;
double beginTitle = (Page1.Width - widthTitle) / 2.0;
RoundedRectanglePrimitive1.Left = beginTitle;
RoundedRectanglePrimitive1.Width = widthTitle;
Text1.Left = beginTitle;
- Attachments
-
- Capture.PNG (38.26 KiB) Viewed 3272 times