|
-
October 9th, 1999, 04:58 PM
#1
AppBar - Window docking
How do I make window's dockable like taskbar and Microsoft applications' toolbars?
I heard of the thing called AppBar, that allows to implement those capabilities through the API
I looked up in mine API declaration file and I found these:
Declare Function SHAppBarMessage Lib "shell32.dll" Alias "SHAppBarMessage" (byval dwMessage as Long, pData as APPBARDATA) as Long
Type APPBARDATA
cbSize as Long
hwnd as Long
uCallbackMessage as Long
uEdge as Long
rc as Rect
lParam as Long ' message specific
End Type
How do I use them? Can't seem to work it out.
Please help
----------------
Genghis86
[email protected]
http://genghis86.cjb.net/
-
October 10th, 1999, 04:20 AM
#2
Re: AppBar - Window docking
I remember htere's a sample around on the net that contains an appbar in both VB and Delphi.. now I only forgot where it was :-( Maybe someone else knows, i recommand that sample... it's lots easier to read that then to explain how an appbar works.. (and that's not because I have a huge hangover... *S*)
Crazy D :-)
"One ring rules them all"
-
October 10th, 1999, 03:43 PM
#3
Re: AppBar - Window docking
The appbar class can be downloaded from :
http://www.geocities.com/SiliconValley/9486/ - it's a great piece of VB code.
The only problem is that an AppBar is similar to the 'TaskBar' in Windows 95/98/NT, it's not a dockable toolbar in the same sense as those in VB or Office. If you want that functionality, you'll either have to write your own (a lot of work), or purchase a third party OCX such as ActiveBar from http://www.datadynamics.com (it's a very good control).
Chris Eastwood
CodeGuru - the website for developers
http://codeguru.developer.com/vb
-
April 19th, 2000, 09:14 AM
#4
Re: AppBar - Window docking
Hi,
I looked at the example you posted, and I find that is a great piece of vb code, but it has to much and to little functionality then I need, it cant handle a menu for one, but has alot of other cool options.
I have a menu/appbar/taskbar for my vb app, I only it to be positioned on the top or bottom of the screen via up/down button. I also use a timer to determine if I need to reposition my menu because of another taskbar being moved, or having its auto hide feature changed. I think the Timer is a cpu drain and would think I need to use something called a callback for this. I do not know much about them or how to use for my situation, can anyone offer help?
Thanks,
Bill
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|