Taskbar3 in LsBox Thread last updated on 2003-12-09 03:09:37

Posted by member 71746 on 2003-12-07 21:13:38

I've loaded Taskbar3 into an LsBox using the box-hooking procedure. Everything's coo' except that I can't click on the icons - if I click on a taskbar icon it does nothing. If I right-click, I get the popup menu. this leads me to believe the click is going right through the taskbar into the LsBox itself.

Anyone ever had/surmounted this problem?

Posted by member 1 on 2003-12-07 21:51:52 link

did you assign it a left click action like you did for your right?

Posted by member 71746 on 2003-12-07 23:15:06 link

Just copied code from a working implementation in one of my old themes...

Tried adding

TaskbarLButtonDown ".select"
TaskbarLButtonDown .select
TaskbarTButtonL ".select"
TaskbarTButtonL .select

None of those seem to work.

Posted by member 1 on 2003-12-07 23:30:30 link

try looking at VodkaMartini for an example because I know it uses taskbar3 and has this functionality.

Posted by member 71746 on 2003-12-08 13:57:56 link

Just did, nothin new in there.

I copied my step.rc from a theme I made where the taskbar is implemented exactly the same was as I want to implement it now, and it works perfectly in that theme, but not in this one.

Here's my tasks.rc
TaskbarX 9
TaskbarY 8
TaskbarWidth 90
TaskbarHeight 18

TaskbarMaxButtonCount 5
TaskbarMaxTaskWidth 18
TaskbarBorder 0 0 0 0
TaskbarButtonBorder 2 0 0 0
TaskbarButtonFontBorder 0 0 0 0
TaskbarLines 1

TaskbarSkinCenter "$LSImageFolder$tasks.task.bmp"
TaskbarNormalSkinCenter "$LSImageFolder$tasks.task.bmp"
TaskbarActiveSkinCenter "$LSImageFolder$tasks.task.active.bmp"
TaskbarMinimizedSkinCenter "$LSImageFolder$tasks.task.minimized.bmp"
TaskbarFlashingSkinCenter "$LSImageFolder$tasks.task.minimized.bmp"

TaskbarRefresh 100
TaskbarButtonDirection .right
TaskbarUseToolTips true
TaskbarNoSkinshift true
TaskbarNoFontShift true

TaskbarAlwaysOnTop
TaskbarStartHidden

TaskbarSpacing 0
TaskbarIconShow true
TaskbarIconSize 16
TaskbarIconX 0
TaskbarIconY 0

TaskbarFontShow false

TaskbarSort true

TaskbarLButtonDown ".select"
TaskbarTButtonM .ontop
TaskbarTButtonR .menu


...and my tasks.box
; Best not to change anything in this section -----
LsBoxName TasksBox
LsBoxBackGround $LSImageFolder$tasks.box.bmp
LSBoxDragRect 0 0 0 0
; -----



; Loadmodules
*ModuleHook !TaskbarBoxHook
;



; user preferences
LsBoxX 211
LsBoxY -30
LsBoxZOrder STAYONTOP
LsBoxStartHidden
LsBoxAlphaTransparency $BarAlpha$
;



; shortcuts
*shortcut "hide tasks" -16 1 "$LSImageFolder$tasks.tab.button.bmp" "$LSImageFolder$tasks.tab.button.hover.bmp" "$LSImageFolder$tasks.tab.button.click.bmp" #0 [!Execute "!PlayWav $sndSlide$" "!TasksBoxHide"] [!TasksAutoHideToggle]

*shortcut "scroll left" 1 6 "$LSImageFolder$tasks.scroll.left.bmp" "$LSImageFolder$tasks.scroll.left.hover.bmp" "$LSImageFolder$tasks.scroll.left.click.bmp" #0 !TasksScrollLeft
*shortcut "scroll right" -17 6 "$LSImageFolder$tasks.scroll.right.bmp" "$LSImageFolder$tasks.scroll.right.hover.bmp" "$LSImageFolder$tasks.scroll.right.click.bmp" #0 !TasksScrollRight
;

Posted by member 1 on 2003-12-08 14:46:12 link

one thing that I notice off the bat about how you are doing things differently than in Vodka martini is that you aren't loading taskbar3 inside of LSBox. Try moving the LoadModule line and seeing if that helps.

Posted by member 71746 on 2003-12-08 16:55:27 link

Hrmmm seems something is definitely wrong here.. When I load it via a *WharfModule line it loads the background image properly but doesn't display any of the task buttons. If I use a *LoadModule it loads the taskbar perfectly *except* that it loads it at 7,8 on the *desktop* instead of 7,8 in the LsBox.

Posted by member 182 on 2003-12-08 18:17:31 link

works fine for me (:

make sure you have a *ModuleHook !TaskbarBoxHook line in your .box file.

Posted by member 35 on 2003-12-08 19:19:05 link

what version of taskbar3/lsbox are you using?

Posted by member 71746 on 2003-12-08 23:34:41 link

*NetLoadModule taskbar3-0.306_alpha-3
*NetLoadModule lsbox-3.0-pre

Posted by member 35 on 2003-12-08 23:42:46 link

tried with lsbox 2.95? i was never able to get 3.0pre to work correctly.

Posted by member 71746 on 2003-12-09 03:09:37 link

I figured out the problem - in my themevars.rc i was still applying transparency to both the systray and taskbar through grdTransparent. This was a setting from when I was trying to just use the modules without LsBoxing them.