Ticket S135518
Visible to All Users
Duplicate

We have closed this ticket because another page addresses its subject:

grid panel flow panel

New Component TcxTitlePanel which supports skinning

created 15 years ago

I prefer tabbed framwork (see image in attached file).
Becaus docked Form don' nt show the Form caption, I wrote my own TitlePanel with Icon, Caption and Close - Button and Propety Active.
Now, using your skinning lib the TitlePanel looks unprofessional.
My test, use SetParent instead of ManualDock (to show Forms Caption) is unrealizable, becaus for example cxGrid don' t shows CellHints (see example).
Now I have no more idea.
So, a nice to have would be a skinned TitlePanel wit Property Caption, Glyph, ShowCloseButton and Active.
It shoold looks like Forms Caption.
Thanks!
Frank Reim

Show previous comments (4)
DevExpress Support Team 7 years ago

    Hello,

    The "Close" button displays an image that is contained in a TcxImageList. So, you can replace this image with the required one.
    For example, you can use the approach described in the Q454308: Access tdxLayoutGroup Expand/Collapse button thread to get an image from a skin.

      Hello

      can you please change the example and show, how to accomplish thie Task
      for example Group 'Form' Element 'SmallFormButtonClose'

      I can' t find any working example and the documentation is insufficient.

      The example above i can not compile…( TdxSmartGlyph, TcxBitmap)

      Thanks

      Frank Reim

        Hello

        I have change the example once again.
        It' s really not as easy as you have described .

        There is a glyph and an Image.
        I don' t know, how to bring together both Images under consideration of alpha transparency.
        Anyway mMy code does' nt work at all skins.

        I am afraid, It is not really solvable.

        I think,It would really be the best solution to develop a new component or extend an existing one.

        Frank Reim

        Answers approved by DevExpress Support

        created 7 years ago (modified 7 years ago)

        Hello Frank,

        Please try using the following way:

        Delphi
        procedure TForm1.SkinButton; var APainter: TcxCustomLookAndFeelPainter; ASkinInfo: TdxSkinLookAndFeelPainterInfo; ASkin: TdxSkin; AImage: TcxBitmap32; AButton: TdxSkinElement; begin APainter := RootLookAndFeel.Painter; if not APainter.GetPainterData(ASkinInfo) then Exit; ASkin := ASkinInfo.Skin; AButton := ASkin.GetGroupByName('Form').GetElementByName('FormButtonClose'); AImage := TcxBitmap32.CreateSize(16, 16, True); AButton.Draw(AImage.Canvas.Handle, AImage.ClientRect); if cxImageList1.Count > 0 then cxImageList1.Delete(0); cxImageList1.Insert(0, AImage, nil); cxHeader1.Sections[1].ImageIndex := 0; end;
          Comments (1)

            Mikhail

            Thanks a lot! It looks nice…

            Frank Reim

            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.