3
votes

How can I create a Sidebar form in delphi.

I try the ScreenSnap and Align properties but I need that the form stay visible even if the user maximize other forms, without been on top. Just like the windows sidebar do.

Update: From the comments: if a window is maximized, it maximizes next to the window, not in front of or behind.

2
It sounds like what you want is your form to dock on the side of the screen and effectively reduce the desktop size in the same way that the task bar and other sidebars do. So if a window is maximized it maximizes next too your window, not in front of or behind.Jim McKeeth

2 Answers

7
votes

What you're looking for is called an AppBar. Begin your research with the ShAppBarMessage API function.

0
votes

You can call a Windows API function to force your application to stay on top:

SetWindowPos(Handle, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);