Hi!
Is it possible to hide the title bar in a form that uses nBorderStyle = bsSIZEABLE?
I would like to create my own close, minimize and maximize buttons.
Greetings, Timm
bsSIZEABLE and no title bar
Re: bsSIZEABLE and no title bar
Hi Timm,
test this project
test this project
Re: bsSIZEABLE and no title bar
Hi José,
works great, many thanks!
Now I am facing two problems:
- The form overlaps the task bar. I solved it with ::nHeight := Screen:nClientHeight in FormShow, but perhaps there is a better way.
- I do not know how to make it movable with the mouse
Greetings, Timm
works great, many thanks!
Now I am facing two problems:
- The form overlaps the task bar. I solved it with ::nHeight := Screen:nClientHeight in FormShow, but perhaps there is a better way.
- I do not know how to make it movable with the mouse
Greetings, Timm
Re: bsSIZEABLE and no title bar
Hi Timm,
just change HTCLIENT into HTCAPTION at the beginning of WMNCHitTest(). That way, it's possible to drag the form by clicking anywhere on it.
Also, take a look at TCalculator source code. There you can see how to limit the movement inside the screen edges (methods WMNCLButtonDown and WMMoving, both written in C at the bottom).
just change HTCLIENT into HTCAPTION at the beginning of WMNCHitTest(). That way, it's possible to drag the form by clicking anywhere on it.
Also, take a look at TCalculator source code. There you can see how to limit the movement inside the screen edges (methods WMNCLButtonDown and WMMoving, both written in C at the bottom).