C1DockingTab text smoothing

Posted by: kbj on 4 January 2018, 7:37 pm EST

    • Post Options:
    • Link

    Posted 4 January 2018, 7:37 pm EST

    For some reason any C1DockingTab and C1ContextMenu controls are drawing their text with a graphics object with its TextRenderingHint set to

    If I add the following code:

    Private Sub dtMain_Paint(sender As Object, e As PaintEventArgs) Handles dtMain.Paint

    e.Graphics.TextRenderingHint = Drawing.Text.TextRenderingHint.AntiAliasGridFit

    End Sub


    the text in the tabs prints properly.

    As this is only happening in only 1 application, in all its forms, it could be some application setting somewhere (I haven’t a clue where to look). Non C1 Tabs and ContextMenus display correctly.

    Here is an example (magnified) of a c1DockingTab with and without the above code.

    Any ideas?

    Thanks,

    Kingman

  • Posted 4 January 2018, 7:44 pm EST

    er should read

    For some reason any C1DockingTab and C1ContextMenu controls in a project are drawing their text with a graphics object with its TextRenderingHint set to SingleBitPerPixel, which looks very jagged . . .

    (Where’s the good ol’ edit post button?)

  • Posted 5 January 2018, 6:01 am EST

    Hi Kingman!

    As per my understanding, when SystemDefault value for TextRenderingHint is used then you are facing issue with C1DockingTab’s text rendering and not with Microsoft controls.

    So, I checked text rendering in above two cases (using latest build of C1 control at my end). But, I am not able to observe any such difference. Is it possible for you to share this specific stripped-down sample reproducing the issue, along with your system environment details?

    Also, please let me know the C1 build version you are using at your end.

    In addition, please see the given link telling how text is rendered with different TextRenderingHint option:

    https://msdn.microsoft.com/en-us/library/ssazt6bs(v=vs.110).aspx#Members

    (Where’s the good ol’ edit post button?)

    • I am not able to see ‘Edit’ button missing on posts. Can you please try to log-in again and see if you still don’t find it?

    Best regards,

    Meenakshi

  • Posted 5 January 2018, 10:08 am EST

    Hi Meenakshi,

    I am using the .286 version. I am trying to get the same problem to arise with a simple app, no luck so far, which is why I am looking for some obscure C1 setting that I may have inadvertently flipped as the culprit. I’ll keep trying though.

    The good ol’ edit button is missing for the initial post only. It’s there for reply posts. It would be great to have a ‘preview’ for initial posts or some way to edit them.

    Much thanks for your quick response,

    -Kingman

  • Posted 8 January 2018, 5:09 am EST

    Hi Kingman!

    Sure, you can take your time. But, feel free if you need any further assistance from my end. Since, this seems to be application-specific. So, it would be better if you can share your application for further investigation.

    And, for editing initial post, I am forwarding your request to the concerned team.

    Best regards,

    Meenakshi

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels