Ticket T1279168
Visible to All Users

drawing issues of drawing the form (left and bottom)

created a day ago

Hello

Attached a demo project where shows you the problem.

the left and bottom border are cuted, depense whitch properties are set or not.

Affected properties.
BorderStyle: (bsSingle / bsSizeable)
BoderIcons.biMaximaze: (true / false)

follow some printscreens of the buttom border

Clipboard-File-1.png

Clipboard-File-2.png

also the left border are cutted, but just some pixels
Clipboard-File-3.png

In my original projects, the problem are only affected to the 64bit program. In the demo it makes no different.

When i don't load the skin the form will be draw without any issues.

Hope you can help me. Thanks
Gregor

Answers approved by DevExpress Support

created 14 hours ago

Hello Gregor,

Thank you for the project.

From what I gather, you mean that the maximized form is behind the taskbar:

Clipboard-File-1.png

Our skinning routines override low-level APIs to achieve the required form appearance, so the behavior of a skinned and a regular form may differ.

Since your form does need a complex border, you can handle the OnSkinForm event to disable skinning for this specific form. Then, manually customize it as required.

Delphi
procedure TForm11.dxSkinController1SkinForm(Sender: TObject; AForm: TCustomForm; var ASkinName: string; var UseSkin: Boolean); begin if AForm is TForm11 then begin UseSkin := False; Self.Color := clGreen;//apply a color that matches your application's theme end; end;
    Comments (1)

      Hello Alex

      But I want to use the skin. But when you set the property

      Delphi
      Self.BorderStyle := bsSingle;

      Or set the property

      Delphi
      Self.BoderIcons.biMaximaze := False;

      the form are cutted at the left and buttom border

      I don't understand why I should use OnSkinForm, since I want to use the skin and not disable it. But maybe I'm misunderstanding something.

      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.