Hi DevExpress Team,
I have a strange behaviour when creating a simple Delphi 7 Form.
Delphiunit Unit1;
interface
uses
Variants, Classes, Graphics, Controls, Forms,
Dialogs, dxBar, cxClasses, dxRibbon, cxControls, dxRibbonForm;
type
TForm1 = class(TdxRibbonForm)
dxBarManager1: TdxBarManager;
dxRibbon1Tab1: TdxRibbonTab;
dxRibbon1: TdxRibbon;
dxBarManager1Bar1: TdxBar;
dxBarLargeButton1: TdxBarLargeButton;
procedure dxBarLargeButton1Click(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.dxBarLargeButton1Click(Sender: TObject);
begin
self.close ;
end;
end.
When I compile & start the application with "SupportNonClientDrawing = False" all seems to be ok. The form is shown correctly.
When I compile & start the application with "SupportNonClientDrawing = True" then parts of the form are missing. You can see that in the attached picture.
This happens only with Delphi 7. When I do exactly the same with Delphi XE everything is ok.
I cannot move the current Delphi 7 project to XE, so I need a solution for Delphi 7.
What can I do / what have I to adjust / what have I to implement to have a application without artefacts.
Thx in advance.
Greetings from Germany - Robert
Hello Robert,
I was not able to reproduce this behavior with the latest version of our controls (VCL 14.1.2) + Delphi 7. Attached is an example (source and executable files), that operates as expected on my side. Please modify it to illustrate the problem, and attach it to your next message. I am looking forward to hearing from you.
Hello Paulo,
when executing your compiled application - I had no problems - like expected.
Then I compiled your source files with my Delphi IDE - and I get the same problems.
Then I thought about it - what could be the difference between my IDE and yours.
After testing a while, I think I found out what the reason is for that problem.
My IDE ( delphi32.exe) is starting in compatibility mode ( Windows XP SP 3 + Administrator Rights).
When deactivating this parameter, starting the IDE, load your source files and compile it - the result
is what I was looking for (all ok). When turning back, activating the compatibility mode, I get a result
with errors.
Can you reproduce that ?
I don't know why this option (compatibility mode) was active. For the moment I will deactivate it and
keep it in my mind that this option can cause trouble.
Thx for help.
Robert
Thank you for your clarification. I have reproduced the described behavior and forwarded this ticket to our developers for research.