how do I load tasks in lsbox?!?!?!?! Thread last updated on 2003-05-02 00:23:56

Posted by member 18450 on 2003-04-19 00:46:16

I tried loading tasks in lsbox, no go. here's what I had in step.rc:

tasksX 1
tasksY 1
tasksheight 15
taskswidth 32
tasksspacingY 2
tasksdirection "down"
tasksdockwindow "LsBoxClass;tasks"
tasksnomove true
tasksnoicons
tasksbgcolor 1A0C25
tasksdarkcolor 1A0C25
taskslightcolor 1A0C25
taskstitles
taskstitleminimized
taskszorder ontop
tasksstarthidden

Im starting with a hidden box, that I want to load tasks in. here's the .box:

LsBoxName tasks
lsboxbackground menu_br_back_open.png
LsboxX 813
lsboxY 585
lsboxalwaysontop
LsBoxUnique
lsboxalphatransparency 120 120
lsboxstarthidden
*Shortcut "close" 3 35 close.png close.png close.png !execute [!lsboxshow bottommenuright] [!lsboxhide tasks] [!taskshide]

I have another box that I want to load this box with tasks in it. Any problems anyone sees?

Posted by member 1 on 2003-04-19 01:11:36 link

This is the working code I have from itqe

Step.RC
LoadModule $ModuleDir$tasks90.dll
TasksDockWindow "LsBoxClass;tasks_tab"
TaskszOrder ontop
TasksX 31
TasksY 34
TasksHeight 14
TasksWidth 165
TasksSpacingX 1
TasksSpacingY 1
Tasksdirection "down"
Taskswrapdirection "down"
TasksNoMove true
TasksIconSize 12
TasksWrapCount 12
TasksTitles
TasksTitleMinimized
TasksTitleSelected
TasksBgImage tasks.bmp
TasksTitleHeight 14
TasksTitleWidth 150
TasksTitleX 15
TasksTitleY 1
TasksTitleIconX 2
TasksTitleIconY 2
TasksTitleFont $font$
TasksTitleFontColor "$fontcolour$"
TasksHighLightMinimized
TasksMinBgImage tasks.bmp
TasksTitleMinFontColor C0 C0 C0
TasksHighLightSelected
TasksSelBgImage tasks.bmp
TasksTitleSelFontColor 00 00 00


tasks_tab.box
LsBoxName tasks_tab

LsBoxX 1075
LsBoxY 0

LsBoxSticky
LsBoxUnique
LsBoxRememberPosition
LsBoxAlwaysOnTop
LsBoxStartHidden

LsBoxBackGround tabbed\tasks_test.bmp

LsBoxDragRect 0 0 163 16

*Shortcut "Close" 191 7 off1.bmp off2.bmp off3.bmp !LSBoxToggle tasks_tab

*Shortcut "VWM active" 74 3 tab1.bmp tab2.bmp. tab3.bmp !show_vwm
*Shortcut "Tasks active" 90 3 tab3.bmp tab3.bmp tab3.bmp !null
*Shortcut "Shortcuts" 106 3 tab1.bmp tab2.bmp tab3.bmp !show_shortcut
*Shortcut "Winamp Controls" 122 3 tab1.bmp tab2.bmp tab3.bmp !show_jamptoo
*Shortcut "Time / Info" 138 3 tab1.bmp tab2.bmp tab3.bmp !show_time
*Shortcut "Command Console" 154 3 tab1.bmp tab2.bmp tab3.bmp !show_lsxc
*Shortcut "Tray" 170 3 tab1.bmp tab2.bmp tab3.bmp !show_tray

Posted by member 1 on 2003-04-19 01:15:16 link

Working code from the Vodka Martini theme...

TaskBox.rc
;[Taskbar3.03]
TaskbarPositioning
TaskbarX 15
TaskbarY 18
TaskbarWidth 229
TaskbarHeight 26
TaskbarSpacing 0
TaskBarIconSize 16
TaskbarIconY -1
TaskbarLines 1

if taskboxTaskbarText = false
TaskbarTextShow false
TaskbarIconX -1
else
TaskbarTextShow true
TaskbarIconX 3
endif

if TaskbarIconShow
TaskbarButtonTextborder 22 4 0 0
else
TaskbarButtonTextborder 4 4 0 0
endif

if TaskbarDisableFlashing
TaskButtonFlash false
else
TaskButtonFlash true
endif

Taskbarnoskinshift true
Taskbarnotextshift true

TaskbarSkin "taskbox\taskBarMid.png"
TaskbarLeft "taskbox\taskBarLeft.png"
TaskbarRight "taskbox\taskBarRight.png"

TaskButtonskin "taskbox\taskinactmid.png"
TaskButtonleft "taskbox\taskinactleft.png"
TaskButtonright "taskbox\taskinactright.png"

TaskButtonskinActive "taskbox\taskactmid.png"
TaskButtonleftActive "taskbox\taskactleft.png"
TaskButtonrightActive "taskbox\taskactright.png"

TaskButtonskinmin "taskbox\taskMinMid.png"
TaskButtonleftmin "taskbox\taskMinLeft.png"
TaskButtonrightmin "taskbox\taskMinRight.png"

TaskButtonskinFlash "taskbox\taskFlashmid.png"
TaskButtonleftFlash "taskbox\taskFlashleft.png"
TaskButtonrightFlash "taskbox\taskFlashright.png"

TaskbarText "000000"
TaskbarTextActive "000000"
TaskbarTextMin "727272"
TaskbarTextFlash "727272"

TaskbarBorder 0 0 2 2
TaskbarButtonborder 0
TaskbarButtontextborder 22 4 0 0
TaskbarFont "arial"
TaskbarFontHeight "12"

TaskbarActiveFont "arial"
TaskbarActiveFontHeight "12"
TaskbarActiveFontItalic true

TaskbarminFont "arial"
TaskbarminFontheight "12"

TaskbarFlashFont "arial"
TaskbarFlashFontHeight "12"
TaskbarFlashFontItalic true


Tasks.box
LsBoxName taskBox

LsBoxX 0
LsBoxY 96

LsBoxHeight 48
LsBoxWidth 269

LsBoxSticky

LsBoxZOrder NORMAL
LsBoxOnRightClick "!none"

LsBoxBackGround box_master$BoxStyle$-$BoxColour$.png

LsBoxDragRect 259 1 268 37
LsBoxBackgroundOffs 14 14 14 14

LsBoxAlphaTransparency $ThemeTransparent$

*Shortcut "" -10 -10 button.png button.png button2.png !Popup_TaskBox
*LoadModule "$ModulesDir$taskbar3.dll"
*ModuleHook !TaskbarBoxHook
*ModuleHook !LabelLsBoxHook "task_"
*ModuleHook !LabelLsBoxHook "taskScrollPrev_"
*ModuleHook !LabelLsBoxHook "taskScrollNext_"

Posted by member 18450 on 2003-04-19 01:18:07 link

yeah, I was looking at that to see.....but I don't see any differences, save preferences. I also see that you didn't hide the tasks to start with....but I tried that too....Im at a loss. It loads the tasks too, just as if the docking window was background. But I checked that my docking window was correct several times. Oh well...keep trying I guess. Thanks man.

-mogg

Posted by member 1783 on 2003-04-19 01:42:47 link

are ya using "tabs" in your *.box file? if you are, then lose em. use whitespaces instead. ;)

Posted by member 99 on 2003-04-19 02:58:31 link

Also, I believe that with TasksDockWindow, the order in which you load everything becomes important. Try:
- load lsbox first
- create the box to hold the tasks *last*
- load tasks
After tasks has loaded, you can create other lsboxes.
(I think that's the right order...)

Posted by member 18450 on 2003-04-19 03:32:27 link

ho hum....well, Im not using tabs, cause that caused me many problems before :) I tried putting everything in this order:

Loadmodule "$modulesDir$lsbox.dll"
Loadmodule "$modulesDir$tasks90.dll"

*lsboxcreate "$BoxDir$bottommenuright.box"
*lsboxcreate "$BoxDir$tasks.box"

tasksX 1
tasksY 1
tasksheight 15
taskswidth 32
tasksspacingY 2
tasksdirection "down"
TasksDockWindow "LsBoxClass;tasks"
tasksnomove true
tasksnoicons
tasksbgcolor 1A0C25
tasksdarkcolor 1A0C25
taskslightcolor 1A0C25
taskstitles
taskstitleminimized
taskszorder ontop

and it didnt work....:( this really suxzors. I hadn't thought of that though, thanks. btw rabid, love the site, I visited in my really newb stages and explored. Thanks guys, any other ideas le me know. Later.

-mogg

Posted by member 18450 on 2003-04-19 03:41:57 link

AH-HA! I got it! I switched over to taskbar3, and it loaded in the box, lickety-split. now, it's just time to refine it. Thanks everyone! gonna go play now :)

-mogg

Posted by member 7 on 2003-04-19 04:46:45 link

The latest versions of tasks.dll have a !hook !bang which works perfectly.

Posted by member 99 on 2003-04-19 11:22:21 link

Eh? The only sites I'm associated with are totally useless and perpetually out of date...

Posted by member 18450 on 2003-04-23 02:00:51 link

well, last time I was there, it was cool :) So I got taskbar3 to load in the box now, and its really nice and crap...but is it possible to load the tasks downward? I thought taskbar3 was supposed to be better then tasks, it better be able to load down. I didn't see anything in the readme file though :(

Posted by member 7223 on 2003-04-24 01:13:22 link

You have to do some scripting to have taskbar3 going down. You have to add a line and compute the new size (height) of the taskbar each time a tile is add/remove.
Take a look at the code of my "Popuped" theme:
http://www.litestep.net/index.php?section=2&action=details&id=122
It doesn't use lsbox, but it can easily be adapt.

Posted by member 503 on 2003-04-24 09:25:12 link

Yikes! That sounds like a lot of work.

Posted by member 99 on 2003-05-02 00:23:56 link

* ... which didn't have the lsbox hook, it's now fixed.

aaah!

Could the next person to modify tasks please add the actual lsbox hook to its docs? Right now you have to look in the lsbox docs to find out how to configure tasks, that's just not right. (it's !TasksBoxHook btw) :P