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
1170
Different text allignment for text in non client form area
posted

Hi.

I would like to display form company name and module name on the form of each application. Something like the one shown in the attachment. Is it possible to have this kind of alignment in the form.

P.S The preview does not show the whole image. Please open the image to get the gist

Regards

Ishan Gandhi 

Parents
No Data
Reply
  • 21795
    Verified Answer
    Offline posted

    Hello Sumit,

    Thank you for contacting Infragistics Developers Support.

    In order to add custom caption to your form you may use Infragistics UltraFormManager. This component has Caption property in its FormStyleSettings class. Please note UltraFormManager’s Caption is actually UltraFormatedTextEditor and supports Style Attributes. You can use Text-align sub-attribute of Style attribute to align the caption text as left, right, center or justify. More about Style Attributes you may find by following the next link http://help.infragistics.com/Doc/WinForms/current/CLR4.0/?page=WinFormattedTextEditor_Style_Attribute.html

    Please note you cannot have one line of text aligned both left and right. In order to achieve this you can use Infragistics DrawFilter. This is what you can do:

    1. Set the Caption property to your UltraFormManager to the Company Name and align it to the left;

    2. In your DrawFilter add the Module Name, if you have enough space.

    More about DrawFilter you can find by following the next link http://help.infragistics.com/Help/Doc/WinForms/2012.2/CLR4.0/HTML/Win_Draw_Filter.html

    Please check attached small sample solution implementing this approach and let me know if this is what you are looking for or of I am missing something.

    CAS-148973-R1T0F9.zip
Children
No Data