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
We have closed this ticket because another page addresses its subject:
grid panel flow panelNew Component TcxTitlePanel which supports skinning
Answers approved by DevExpress Support
Hello Frank,
Please try using the following way:
Delphiprocedure 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;
Hello Frank.
Thank you for your message. Please clarify, does your TitlePanel inherit from the TPanel? If so, you can apply skins to it using the approach shown in the grid panel flow panel article. Please try it, and let us know whether it helps.
Best regards,
Ingvar.
Hello
I have to warm up the topic again .
Unfortunately I have not found a usable solution until today.
Using TdxNavbar is not a solution because of missing Icon and Close button.
TPanel is not a solution because it does not look like a title Panel.
There are some entries of other developers with the same request.
The TcxOfficeGizmo (Nathanial Woolls) would be a solution, but will not be developed further.
I've really been upset many times, that there is no such component.
It would be great if you provide a new component or expand the PanelStyle of TcxGroupBox ShowTitlePanel or what ever.
Thanks
Frank Reim
Hello Frank,
Did you try using our TcxHeader component? Perhaps, it will meet your needs. I've attached a small test project to demonstrate how it works.
Hello Mikhail,
thanks a lot for the sample.
Unfortunately that is not a solution.
I have changed the sample to clarify my problem.
I also tried to solve the problem using TdxBar or TcxGroupBox.
In both - TcxHeader and TcxGroupBox - the close button looks unprofessional and differs to the Skin.
If i had a skinned Close button, i would prefer the GroupBox.
There really is only one basic element missing for a professional surface.
Thanks
Frank Reim
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