Page 1 of 1

Where is your Taskbar usually located?

Posted: Mon Jan 03, 2005 3:06 am
by PB
As we know the Taskbar can be located on any side of the screen, but it's
usually on the bottom. In one of my apps I need to center a window and I
want to take the Taskbar position into account, but I'm wondering whether
it's better to just assume it's at the bottom, or should I use extra code and
allow for any of the 4 positions? So, please tell: where is yours located?

Posted: Mon Jan 03, 2005 1:01 pm
by Wolf
At the bottom :wink: other side is maybe use by skining programs or just some user.

bottom side is always better for work more users.

Re: Where is your Taskbar usually located?

Posted: Thu Jan 06, 2005 7:44 pm
by PB
Okay, who voted "Other" and why? :)

Posted: Thu Jan 06, 2005 7:46 pm
by GPI
may help you

Code: Select all

getwindowrect_(GetDesktopWindow_(),rect.rect)
Debug "Full-Screen"
Debug rect\left
Debug rect\top
Debug rect\right
Debug rect\bottom

SystemParametersInfo_(#SPI_GETWORKAREA,0,rect.rect,0)
Debug "Desktop-Area"
Debug rect\left
Debug rect\top
Debug rect\right
Debug rect\bottom

Posted: Thu Jan 06, 2005 7:47 pm
by dracflamloc
Because I use BlackBox (BB4win.org)

Posted: Thu Jan 06, 2005 8:11 pm
by GPI
dracflamloc wrote:Because I use BlackBox (BB4win.org)
When you use this kind of mods, you must live with so small problems, like not really centred windows.

Posted: Thu Jan 06, 2005 8:20 pm
by thefool
uhm blackbox is a linux gui isnt it?

Posted: Thu Jan 06, 2005 8:29 pm
by DarkDragon
thefool wrote:uhm blackbox is a linux gui isnt it?
No I think it is a Windows Styling tool.

Posted: Thu Jan 06, 2005 8:34 pm
by thefool
ah ok now i know. Actually it IS for linux, but he uses a version ported to windows.

Posted: Thu Jan 06, 2005 9:40 pm
by berklee
Usually it's found somewhere hear my computer.

And yes, I'm a stupid-head. :)

Posted: Thu Jan 06, 2005 10:02 pm
by thefool
i see




:twisted:

Posted: Thu Jan 06, 2005 10:49 pm
by Psychophanta
I have task bar at the bottom, and quick-launch (with a bunch of program links) at the top. Both hidden until mouse pointer approaches. :)

Posted: Fri Jan 07, 2005 9:14 am
by blueznl
bottom, the taskbar issue caused me a lot of headache when dealing with multiple monitors...

Posted: Sat Jan 08, 2005 12:31 am
by PB
> may help you

Thanks GPI, but here was some code I already wrote to get the Taskbar stats:

Code: Select all

TaskbarSize.RECT : SystemParametersInfo_(#SPI_GETWORKAREA,0,TaskbarSize,0)
TaskbarPos.APPBARDATA : SHAppBarMessage_(#ABM_GETTASKBARPOS,TaskbarPos)

Select TaskbarPos\uEdge
  Case #ABE_LEFT : Debug "Left, Width = "+Str(TaskbarSize\left)+", Height = "+Str(TaskbarSize\bottom)
  Case #ABE_TOP : Debug "Top, Width = "+Str(GetSystemMetrics_(#SM_CXSCREEN)-TaskbarSize\left)+", Height = "+Str(GetSystemMetrics_(#SM_CYSCREEN)-(TaskbarSize\bottom-TaskbarSize\top))
  Case #ABE_RIGHT : Debug "Right, Width = "+Str(GetSystemMetrics_(#SM_CXSCREEN)-TaskbarSize\right-TaskbarSize\left)+", Height = "+Str(TaskbarSize\bottom)
  Case #ABE_BOTTOM : Debug "Bottom, Width = "+Str(GetSystemMetrics_(#SM_CXSCREEN)-TaskbarSize\left)+", Height = "+Str(GetSystemMetrics_(#SM_CYSCREEN)-TaskbarSize\bottom)
EndSelect
Maybe it's of some use to someone else here. :)

Posted: Sun Jan 09, 2005 5:39 am
by dagcrack
At the bottom! today I put it at the top and it was confy yes.. but messy so came back to the normal state :) been using it at the bottom since 5 years ago...