Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
420
UltraTimelineView - Owner Header width.
posted

Hi,

I'm working on a timeline view with the owner header set to horizontal. We want to display the owner name on multiple lines and so far the only way I have found to do this is with a draw filter on the BeforeDrawElement draw phase of the TextUIElement that shows the owner name.

Having split the name text, set the element to multiline and increased its height I now have the text displaying as required, however I cannot find a way to resize the Owner Header width so that we may reclaim some of the UI surface that was being taken by the very wide single line header.

Any thoughts on how this can be achieved?

Regards, Jim.

Parents
  • 20872
    Offline posted

    Hello Jim,

    If you could provide us your DrawFilter, I will be glad to take a look at it. Another thing that might help is setting the header text like = "some text " + Environment.NewLine + " other text "; If that's not help you could try with a creation filter where you would be able to assing a new Recangle on the desired TextUIElement once you modified like :

    YourTextUIElement.Rect = new Rectangle(desiredX,desiredY,height,width);

    where your desiredX and desiredY might be the coordinates of the YourTextUIElement.Rect.X and Y.

    In the CreationFilter you would probably have to use AfterCreateChildElements method  to change the Rect, and just Return false in the BeforeCreateChildElements method.

    If you have any questions or if you need any assistance please do not hesitate to ask. 

Reply Children