?
Solved

Form borders disappear

Posted on 2006-07-08
3
Medium Priority
?
240 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month11 days, 3 hours left to enroll

770 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