Delphi/CB
•  Greatis •  Security •  AppDatabase •  Utilities •  Visual Basic • .NET •  just4fun
Delphi / C++ Builder
Components, utilities and tips for Delphi and C++ Builder developers
More info
Form Designer FAQ
Form Designer Home
Delphi Components
See also
Products
Object Inspector
Runtime Fusion
Print Suite
Commented Image
Image Editor  new!
Delphi Toys
Ultimate Pack  hot!

FAQs
Object Inspector FAQ
Print Suite FAQ
Image Editor FAQ

Links
Software for .NET
Software for VB 6
Delphi Tips & Tricks

Services
Outsourcing
Grabs customization
Each of the grab handles (the small squares around the selected control) can be hidden or disabled using the OnCustomizeGrabs event. This event has two special parameters: VisibleGrabs and EnabledGrabs of the TGrabPositions type.
type
  TGrabPosition = (
    gpNone,
    gpLeftTop,
    gpLeftMiddle,
    gpLeftBottom,
    gpMiddleTop,
    gpMiddleBottom,
    gpRightTop,
    gpRightMiddle,
    gpRightBottom);
  TGrabPositions = set of TGrabPosition;
These parameters can be changed in the event handler to hide or disable any handle. The code below shows how all grabs except middle top and middle bottom can be disabled, so the user can change the selected control height only.
procedure TForm1.FormDesigner1CustomizeGrabs(Sender: TObject;
  var VisibleGrabs, EnabledGrabs: TGrabPositions);
begin
  EnabledGrabs:=[gpMiddleTop,gpMiddleBottom];
end;

Greatis Software Greatis | Security | AppDatabase | Utilities | Delphi/CB | Visual Basic | .NET | just4fun

Contacts | Add to Favorites | Recommend to a Friend | Privacy Policy | Copyright © 1998-2008 Greatis Software