Posted by member 71746 on 2003-11-14 18:48:58
I'm wondering if anyone has the spare time and talent to add a function to systray2...
I've seen some modules with something like...
ModuleNameWaitForBoxHook
...wherein it loads all the settings but before it "builds" the window it waits until it's called into an LsBox.
I'd like to have that for Systray2.
Practical Application of Given Theory:
To hook the systray into an LsBox and have it execute OnAdd/OnDel commands to resize and move the tray.
Modules must be loaded before LsBox in order to be hooked into a box. Systray2 fully loads in a very efficient manor. Unfortunately, it results in all the icons being added to the tray before the box is created, so all the resizing/moving commands float into /dev/null/ so to speak, and the box is created with it's default size/position.
With the proposed feature, Systray2 could be loaded and read its configuration, and wait until it receives its !SystrayHook before loading any icons.
Helpful Info:
I think kClock has a command like kClockInBox or kClockWaitForBoxHook or something along those lines..
Anyone with litestep coding experience should be able to pilfer the routines from kClock to wait for a box hook, and I can't imagine it'd be too hard to make the icons wait for a box if SystrayWaitForBox is specified.
With any luck someone with "da-SkillZ" ;) should be able to whip up this update in 10 mimutes :)
I've seen some modules with something like...
ModuleNameWaitForBoxHook
...wherein it loads all the settings but before it "builds" the window it waits until it's called into an LsBox.
I'd like to have that for Systray2.
Practical Application of Given Theory:
To hook the systray into an LsBox and have it execute OnAdd/OnDel commands to resize and move the tray.
Modules must be loaded before LsBox in order to be hooked into a box. Systray2 fully loads in a very efficient manor. Unfortunately, it results in all the icons being added to the tray before the box is created, so all the resizing/moving commands float into /dev/null/ so to speak, and the box is created with it's default size/position.
With the proposed feature, Systray2 could be loaded and read its configuration, and wait until it receives its !SystrayHook before loading any icons.
Helpful Info:
I think kClock has a command like kClockInBox or kClockWaitForBoxHook or something along those lines..
Anyone with litestep coding experience should be able to pilfer the routines from kClock to wait for a box hook, and I can't imagine it'd be too hard to make the icons wait for a box if SystrayWaitForBox is specified.
With any luck someone with "da-SkillZ" ;) should be able to whip up this update in 10 mimutes :)