QUESTION: How can I change the shape of my form? ANSWER: There are a number of Windows API calls you can make to do this. You can use these calls on any component that is decendant of TWinControl, like TForm. Here is a list of the different API calls: CreateEllipticRgn CreateEllipticRgnIndirect CreatePolygonRgn CreatePolyPolygonRgn CreateRectRgn CreateRectRgnIndirect CreateRoundRectRgn The example I use is CreateEllipticRgn, here is one way of using it. You could put this call with in a button click. SetWindowRgn(Form1.handle,CreateEllipticRGN(0,0,Width,Height),True); |
Last Modified: 03-AUG-01