Ticket T1279168
Visible to All Users

drawing issues of drawing the form (left and bottom)

created 4 days 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 3 days 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;
    Show previous comments (1)
    AP AP
    Alex Pa (DevExpress Support) 2 days ago

      Hello Gregor,

      Unfortunately, from your screenshots, it is not completely clear how the form is truncated. Could you please share an image of the entire screen (you can erase sensitive information)?

      When I run your project without skins, it covers the taskbar since the form's border style is bsNone:

      Clipboard-File-2.png

      When I run your sample on my machine, the form is overlapped by the taskbar:

      Clipboard-File-1.png

      Unfortunately, there is no reliable way to display our skinned form in the way it covers the taskbar. The only available workaround is to disable the form's skinning (and keep its controls skinned) and customize its appearance manually. Since your form does not require a complex border, you can use standard techniques to change its background and title bar colors.

      GK GK
      Gregor Kobler a day ago

        Hello Alex

        I have modified my demo a little bit. At the left bottom corner are two buttons "1" and "2". Press the button "1" and you will see how is cutting the form. Press the button "2" you will see, the form are draw correct.

        This is also happend, when you hide the Taskbar automatic. This behavior are not happend, when you don't load the skin.

        And just for you info, i also have an cxGrid and TChart component at my original form. So i think it's not that easy to take control manually to the form UI properties. It's not only to set the color of the background and title bar.

        AP AP
        Alex Pa (DevExpress Support) 3 hours ago

          Hello Gregor,

          Thank you for the updated project. I managed to reproduce this behavior. Indeed, the skinned form content is outside the visible area. We will examine this use case and look for possible ways to avoid this issue.

          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.