I don't want that users can close the panel by pressing the 'X' button on the top-right corner.But... when the panel is docked, a little 'x' appear on the corner of the panel, is there a way to hide this little button?
I have tried code on create dock panel, but it is not working
procedure Tframe1.panBorderEndDock(Sender, Target: TObject; X, Y: Integer);
hMenuHandle : Integer;
hMenuHandle := GetSystemMenu(panBorder.Handle, False);
if (hMenuHandle <> 0) then
DeleteMenu(hMenuHandle , SC_CLOSE, MF_BYCOMMAND);
Kindly check my code and give some suggestion Please.?
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)