systray and popup Thread last updated on 2007-05-09 14:31:31

Posted by member 130127 on 2007-05-08 03:11:06

is it possible to use the systray in a popup-menu like " !PopupTasks"? Please tell me. :-)

thanx

Posted by member 5575 on 2007-05-08 09:45:25 link

I think somebody was hooking xtray into their popup menu, but I don't know how that effort turned out. A search through this forum might turn something up.

Posted by member 1 on 2007-05-08 10:32:08 link

Or a search into the themes section as it was released.

Posted by member 212670 on 2007-05-08 13:58:21 link

Or have a look in the xpopup help file, and scroll down to Module Hooking Support.

Posted by member 256241 on 2007-05-09 14:31:31 link

I did that a while ago. Syntax can be found in the docs, but it's slightly more complex than a normal hook, where you define the width and height as well as give the bangs for hooking and moving.

*Popup !hook:0:0:121:20 !XtrayLsBoxHook %%!Xtraymove%%
^NOT 100% accurate
A problem I had is that I couldn't put it into the same popup as !PopupTasks if used as the root, ie I could have a tasks entry which expands and the tray visible... In the end I decided to scrap that system in favour of using xTaskbar.

Additionally if you use an alpha mapped image for the popup, the area under the hooked item CANT be magic pink, else it'll not draw the hooked module.


If you plan on having tray and tasks in the same popup I'd suggest doing a little scripting and simply toggling/moving both an xTray and xTaskbar.


If that seems like a big task you can rip the code out of my shell: http://www.thewhyers.com/xander/funky.rar
vid here: http://www.thewhyers.com/xander/3.swf