Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to draw rotating text in time Cell by SchedulerControl in Winform Interface Development

Shulou Source: shulou.com Published: 2022-06-01 10:20:23 10月28日 Update

This article shows you how Scheduler Control in Winform interface development draws rotated text in time cells. The content is concise and easy to understand. It can definitely make you shine. I hope you can gain something through the detailed introduction of this article.

DevExpress Winforms Controls has more than 140 UI controls and libraries built into it, perfect for building smooth, beautiful, and easy-to-use applications.

the problems encountered

Attempting to draw text using table data in CustomDrawTimeCell, graphics are black when text is rotated, cycling data to draw lines and text as follows Is this correct?

Use timelines to create appointments, for which vertical lines are drawn as milestones for the different phases. Trying to use CustomDrawTimeCell encountered the following problem:

Unable to rotate text;

Repeat the text for each user;

The program slows down.

solutions

This problem occurs because Graphics objects that are further used in the drawing mechanism are rotated, which breaks the default graphics. In addition, the CustomDrawTimeCell event fires for each time cell, which is why custom graphics for vertical text are overwritten by adjacent cell graphics.

To draw vertical text, use the AppearanceObject.DrawVString method. In v19.2, a new Gantt chart control was introduced to replace the Gantt chart view. It supports various types of tasks (nodes and tasks) as well as other powerful features missing from GanttView. It is recommended to use Gantt Control instead of GanttView to develop gantt applications.

The above content is how Scheduler Control draws rotated text in time cells in Winform interface development. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserves, please pay attention to the industry information channel.

Tags: Text unit time graphics development task program problem interface content reason that is application skill control data knowledge Gantt attempt application Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Apple Shulou Tech Info Redmi OPPO Reno