Ronald

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Only skin borders and titlebar? #47639
    Ronald
    Participant

    When I use TsSkinProvider.DrawNonClientArea I get the exact opposite from what I want. I would need something like:

    SkinProvider.DrawClientArea := False; // only borders and title are drawn

    Your suggestion 'Behaviour of skinned form is equal to standard, so you can use constraints and other standard properties' doesn't work for me. When using a standard delphi-form I'm using the following code to prevent horizontal resizing:

    procedure TForm1.WMNCHitTest(var Message: TWMNCHitTest);

    begin

    inherited;

    if Message.Result in [HTLEFT, HTBOTTOMLEFT, HTTOPLEFT, HTRIGHT, HTBOTTOMRIGHT, HTTOPRIGHT] then

    begin

    Message.Result := HTNOWHERE;

    end;

    end;

    The above code doesn't work when the form is skinned! I have tried to use TSkinProvider.OnExtHitText (with similar code) to get the same functionality but that didn't work either.

    Any suggestions?

    TIA

Viewing 1 post (of 1 total)