Agent
04-04-2002, 07:16 PM
How would I dock a form to the top of the user's screen. An example of this is the Windows taskbar. I know I'd get the user's screen width and such like that but how could I move all other windows to make them viewable. To show what I mean, resize your windows taskbar. Increase the height. It moves all of the windows to a visible position. Any help would be nice. Later.
P.S. I wouldn't want to show the TOP, LEFT, and RIGHT borders of the form. Just the bottom border.
orufet
04-04-2002, 07:19 PM
Well, you can set the form's borderstyle to 0, the left property to 0, the height property to what you want, and the width property to screen.width. As for resizing all of the windows, I don't know how to do that. If I were writing this, I'd just keep it on the bottom of all windows, and have it appear on top if the user moves their mouse there (see auto hide option in SM)
Agent
04-04-2002, 07:29 PM
Do you mean if they move there mouse in my form's area? Then put it "always on top"?
I think that would be cool. How would I get it to smoothly come down?
divil
04-05-2002, 02:20 AM
There are APIs to make your app do exactly what the taskbar does, i.e. reduce the actual screen "real-estate" other windows can use.
I think there are examples on www.vbaccelerator.com on how to do this.
Derek Stone
04-05-2002, 01:23 PM
SHAppBarMessage
Good Luck
-CL