- This topic has 6 replies, 2 voices, and was last updated 10 years, 9 months ago by tmorris.
-
AuthorPosts
-
January 13, 2014 at 6:55 pm #35988tmorrisParticipant
You may already know this but it appears there are some breaking changes with the latest version of DevExpress. I did not do a through check but at least one of the DrawButton functions in acLFPainter source throws an error on compile. They changed the function. I am using v8.45 alphaskins.
January 14, 2014 at 3:45 pm #51371SupportKeymasterHello!
Try the attached file, please.
January 14, 2014 at 4:51 pm #51372tmorrisParticipantThanks for the quick fix! I just wanted to make sure the fix got into the next build. One note, you might want to double check the version naming in the acLFPainter for the compiler directives. DevExpress VCL is currently at 2013.2.2 not 2012.2.2.
January 27, 2014 at 11:48 pm #51448tmorrisParticipantJust got around to testing the posted acLFPainter unit. There is still a small problem. Easily fixed. There is one more missing parameter:
APart: TcxButtonPart = cxbpButton
So the DrawButton declaration should look like this:
procedure DrawButton(ACanvas: TcxCanvas; R: TRect; const ACaption: string; AState: TcxButtonState;
ADrawBorder: Boolean = True; AColor: TColor = clDefault; ATextColor: TColor = clDefault;
AWordWrap: Boolean = False; AIsToolButton: Boolean = False; APart: TcxButtonPart = cxbpButton); override;
This matchs up with what is in the VCL 13.2.2 cxLookAndFeelPainters.pas
Works fine otherwise.
January 28, 2014 at 5:33 pm #51462tmorrisParticipant'tmorris' wrote:Just got around to testing the posted acLFPainter unit. There is still a small problem. Easily fixed. There is one more missing parameter:
APart: TcxButtonPart = cxbpButton
So the DrawButton declaration should look like this:
procedure DrawButton(ACanvas: TcxCanvas; R: TRect; const ACaption: string; AState: TcxButtonState;
ADrawBorder: Boolean = True; AColor: TColor = clDefault; ATextColor: TColor = clDefault;
AWordWrap: Boolean = False; AIsToolButton: Boolean = False; APart: TcxButtonPart = cxbpButton); override;
This matchs up with what is in the VCL 13.2.2 cxLookAndFeelPainters.pas
Works fine otherwise.
**Update**
My mistake. You have the missing parameter. The problem is with the complier directives. The parameter is being ignored because the
directive: “{$IFNDEF VER12_2_3}”. I think this has to do with the versioning issue I mentioned earlier.
January 29, 2014 at 11:07 am #51477SupportKeymasterHello!
Try this improved file.
January 31, 2014 at 11:42 pm #51510tmorrisParticipantThat fixed it. Thanks.
-
AuthorPosts
- You must be logged in to reply to this topic.