Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Form borders disappear

Posted on 2006-07-08
3
Medium Priority
?
241 Views
Last Modified: 2010-04-05
HI,

When I resize my form you see the left en right border, but when I maximize the form
the left and right border dissappear.

I have tried to set de borderwidth of the form to 1, but even with borderwidth = 1
the borders disappear when the form is maximized.

Does anyone know a solution?

Peter
0
Comment
Question by:peterkiers
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 28

Accepted Solution

by:
2266180 earned 1000 total points
ID: 17064314
all borders "dissapear" when maximizing. they actually have negative coordonates.
if you want to also see the borders, you need to simulate the maximize or intercept it and modify the sizes.

here is an example for intercepting:

unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs;

type
  TForm1 = class(TForm)
    procedure FormResize(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
    resizing:boolean;
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.FormResize(Sender: TObject);
begin
  if (not resizing) and (left<0) then
  begin
    resizing:=true;
    width:=width-9;
    left:=0;
    height:=height-9;
    top:=0;
//    width:=width+1;
    resizing:=false;
  end;{}
end;

end.
0
 
LVL 28

Expert Comment

by:2266180
ID: 17064319
ups. uncomment the
//    width:=width+1;
0
 
LVL 1

Author Comment

by:peterkiers
ID: 17064580
Thank you it works.

P.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question