Good afternoon! (15:41)
My recomendation? Unless there are other reasons use one of the sizeable border styles.
Alternatively, you can use a
TBitBtn, TSpeedButton or similar, or a TImage or similar, or a normal status bar (unsetting the left anchor and resizing if you want), etc.
Whatever you use, the basic mechanics of resizing a form w/ non-resizable border is to respond to the control's OnMouseDown, OnMouseMove and OnMouseUp events:
- In the OnMouseDown handler you set a boolean "resizing" flag to True;
- In the OnMouseMove handler, check if "resizing" is set and, if so, compute the new bounds and resize the form;
- In the OnMouseUp handler, finally, reset the "resizing" flag to False
That's basically all there is to it.
All this, of course, means that whatever control you use must have those events. For your use case I would probably use either a
TSpeedButton or a
TImage anchored to the bottom-right of the form.
HTH!