Marioh
Marioh

Reputation: 892

How to create a Sidebar form in delphi

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.

Upvotes: 3

Views: 1234

Answers (2)

Rob Kennedy
Rob Kennedy

Reputation: 163287

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

Upvotes: 7

Kluge
Kluge

Reputation: 3717

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);

Upvotes: 0

Related Questions