- This topic has 9 replies, 2 voices, and was last updated 14 years, 3 months ago by Support.
-
AuthorPosts
-
July 12, 2010 at 11:21 am #33850HeDiBoParticipant
I was very unpleasantly surprised when I found out that the grid titles for a Developer Express cxGrid do not match the grid titles for other grids.
What's more, I think they are awfully ugly (looking like buttons)
July 12, 2010 at 1:45 pm #42903HeDiBoParticipantI changed the code in acLFPainter in TcxACLookAndFeelPainter.DrawHeader slightly:
CODESection := {$IFDEF ALTHEADER} s_MainMenu {$ELSE} s_ColHeader {$ENDIF};
AOnDrawBackground := nil;TmpBmp := CreateBmp24(WidthOf(ABounds), HeightOf(ABounds));
i := PaintSection(TmpBmp, Section, s_Button, State, DefaultManager, ABounds.TopLeft, DefaultManager.GetGlobalColor);
BitBlt(ACanvas.Handle, ABounds.Left, ABounds.Top, TmpBmp.Width, TmpBmp.Height, TmpBmp.Canvas.Handle, 0, 0, SRCCOPY);
FreeAndnil(TmpBmp);Note that the original code did not use the value from the Section variable in the PaintSection call, but used the string s_ColHeader. Please correct that in the next release, otherwise setting the Section variable has no function.
The alternative header skin s_MainMenu works quite well with almost all of the skins. But you may have a better section that I can use, to make it even better compatible with the standard grid headers.
Please, change the code in this way, just to keep me happy
July 16, 2010 at 10:02 am #42917SupportKeymasterThis problem exists because the Sand skin have not a section for headers drawing (COLHEADER).
I think, maybe will be better just define this section in skin?PS. Could you show a screenshot, what you have now?
July 16, 2010 at 1:34 pm #42924HeDiBoParticipantQUOTE (Support @ Jul 16 2010, 11:02 AM) <{POST_SNAPBACK}>This problem exists because the Sand skin have not a section for headers drawing (COLHEADER).
I think, maybe will be better just define this section in skin?PS. Could you show a screenshot, what you have now?
Adding that section would certainly do the trick. Could you implement that?The screenshot was already in the first part of this topic, together with a test project.
July 16, 2010 at 2:16 pm #42925SupportKeymasterI have updated this skin. Try it, please.
July 16, 2010 at 2:25 pm #42927HeDiBoParticipantQUOTE (Support @ Jul 16 2010, 03:16 PM) <{POST_SNAPBACK}>I have updated this skin. Try it, please.
Works WonderfulJuly 16, 2010 at 2:38 pm #42928SupportKeymasterSkin for version 6 is attached
July 16, 2010 at 2:49 pm #42931HeDiBoParticipantQUOTE (Support @ Jul 16 2010, 03:38 PM) <{POST_SNAPBACK}>Skin for version 6 is attached Most of the times it looks great! There are still some minor issues. I'll come back to that next week. Thank you for your quick solution!July 19, 2010 at 10:44 am #42954HeDiBoParticipantQUOTE (HeDiBo @ Jul 16 2010, 03:49 PM) <{POST_SNAPBACK}>There are still some minor issues.
I have included a new picture, to show you the problems in AC 6.68:[attachment=4050:Minor_he…problems.jpg]
Clockwise I find the following issues:
- The headers of a standard TDBGrid look like clickable buttons. But they are not clickable.
- The box around the TsDBGrid is missing in first instance. Once focused, the box appears again.
- The triangular indicator in a TsDBGrid is way too small.
- The column headers of a TcxGrid are clickable, but appear as if they are not.
- There is a separator-line missing between the headers and the “GroupByBox” of a TcxGrid.
So, really the only grid that's completely correct is the TwwDBGrid
July 19, 2010 at 2:01 pm #42961SupportKeymasterI'll try to improve it soon
AuthorPostsViewing 10 posts - 1 through 10 (of 10 total)- You must be logged in to reply to this topic.