Ticket T159143
Visible to All Users

Ribbon - Restore the capability to create two-line gallery group captions using a CRLF sequence, which was removed in v2011 vol 1.6

created 11 years ago

Hello,

when I use a carriage return in the caption of a TdxRibbonGalleryGroupItem the caption will not be displayed anymore. With earlier versions (v2012.x) this worked fine.

I use the CarriageReturn to "move" the caption a line down from the upper border of the item.

Please see the attached demo: Item1 and Item do not display the Caption Item3 does.

Thank you and best regards,
Michael

Show previous comments (2)
MS MS
Michael Schwarzl 11 years ago

    Hi Paulo,
    the version is VCL 13.1.5 compiled with DelphiXE. But I do not compile this demo. I compile our application. Please see attached image.
    Is there an other may to move the caption and the description down by one line each? Then I would not need the carriage return in the caption.

    MS MS
    Michael Schwarzl 11 years ago

      I mixed up my versions. The last version it worked is v2011 vol 1.6

      DevExpress Support Team 11 years ago

        Thank you for your clarification. I see that in v2011 vol 1.6 the appearance is different. I have forwarded this ticket to our developers for research.

        Answers approved by DevExpress Support

        created 11 years ago

        We have implemented the functionality described in this ticket. It will be included in our next update(s).

        Please check back and leave a comment to this response to let us know whether or not this solution addresses your concerns.

          Show previous comments (3)
          DevExpress Support Team 10 years ago

            Hello Michael,

            In a private comment below there is a patch that should restore the previous behavior (the multi-line caption) for VCL 14.1.4. We will embed this code into our next (VCL 14.1.5) release. However, I should mention that after researching this scenario, we concluded that this behavior cannot be considered a bug. Using the approach with shifting the caption down by adding the Carriage Return character to the item caption used to work accidentally with old builds. This functionality is undocumented and it should not work this way by design. The intended behavior was a single line caption only (as in MS Office). So, we cannot guarantee that this approach will work with all future versions of our controls. I suggest that you consider redesigning your project in the future to display a single text line as an item caption.

            MS MS
            Michael Schwarzl 10 years ago

              Hello Paulo,
              thank you very much for providing the patch!
              Is there any other suggested way to shift down the captions? I would appreciate it before using a blank line before the caption. If another solution does not exist at the moment  I would like to place a suggestion to introduce a top margin for the caption and the description of GalleryGroupItems - like the size. This would provide a nearly free vertical positioning - for those who needs it ;-)

              DevExpress Support Team 10 years ago

                Hello Michael,

                I am happy to hear that this patch helps. There is no other way to implement this vertical shift. Moreover, MS Office UI does not provide this functionality, so even if you post a suggestion regarding this feature, I doubt that it will be implemented ever.

                Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

                Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.