Solved

Form borders disappear

Posted on 2006-07-08
3
233 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
  • 2
3 Comments
 
LVL 28

Accepted Solution

by:
ciuly earned 250 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:ciuly
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

708 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now