views:

280

answers:

4

Does anyone know of a 3rd party component that works like GTSizer? It appears that GenoTechs no longer exists. We have a number of forms in our Delphi/Oracle enterprise application that have the GTSizer component. We have Delphi 2009 to install but GTSizer is not compatible, so we are holding off for now. Any and all suggestions are welcome.

A: 

Maybe DevEx's Layout Control does what you need. OTOH, it might be major overkill. :)

Ulrich Gerhardt
+3  A: 

I've been using this one;

procedure ScaleForm(F: TForm; ScreenWidth, ScreenHeight: LongInt) ;
begin
   F.Scaled := True;
   F.AutoScroll := False;
   F.Position := poScreenCenter;
   F.Font.Name := 'Arial';
   if (Screen.Width <> ScreenWidth) then begin
     F.Height :=
         LongInt(F.Height) * LongInt(Screen.Height)
         div ScreenHeight;
     F.Width :=
         LongInt(F.Width) * LongInt(Screen.Width)
         div ScreenWidth;
     F.ScaleBy(Screen.Width,ScreenWidth) ;
   end;
end;

Source: About.com, zarko gajic

Ertugrul Tamer Kara
Link to referenced article: http://delphi.about.com/od/standards/a/aa030700a.htm
Scott W
+1  A: 

I use anchors and alignment to handle grids, memos, etc, like GenoTechs shows in their animated example.

I've never been a fan of changing the size of button and edit controls and their fonts based on resizing the window. GTSizer demo.

Bruce McGee
I Agree with you Bruce, I do the same too.
Mohammed Nasman
A: 

I use elastic forms, but they haven't updated it for D2009 and I haven't tested it on D2009 yet.

SeanX