Popup a menu on a quicklaunch icon? Thread last updated on 2004-08-06 11:35:24

Posted by member 2873 on 2004-08-03 03:25:23

Is this possible? I've been looking over the docs and couldn't get anything to work. I basically want to display folder contents by clicking a quicklaunch icon. Any suggestions are appreciated.

Posted by member 103254 on 2004-08-03 09:22:33 link

don't remember the exact syntax off the top of my head, but looks in the popup2 docs for something along the lines of !popupdynamicfolder

Posted by member 7991 on 2004-08-03 11:58:12 link

Have the quicklaunch icon execute the following bang when clicked.

The x and y coordinates will place the popup at that location.
The left/right and top/bottom parameters define which corner of the popup will be placed at the defined xy coordinate.

It is not nescessary to define the x/y parameters, nor the left/right and top/bottom paramters.

Also, I would advise you use an evar for the path to the folder, and place the evar definition somewhere easily located. That way, should you or another user decide to change the folder displayed, they can easily do it themselves without searching through piles of text.

!PopupDynamicFolder "$PATHTOFOLDER$" [x] [y] [left/right] [top/bottom]


And just incase you don't know how to define evars (no $ signs around the evar name when defining it):

PATHTOFOLDER "D:\My Music\MP3s"

Posted by member 2873 on 2004-08-03 16:41:33 link

I tried something like this but to no avail. I also altered the line with your parameters. This is what I did, maybe you can spot something I'm missing or did wrong.

In evars.rc
Litestep "C:\LiteStep"


In themevars.rc
SC4Name "Litestep"
SC4LClick !PopupDynamicFolder "$Litestep$" [160] [47] [left] [bottom]
SC4RClick "!none"


In quicklaunch_icons.rc
*Shortcut "$SC4Name$" 44r $BarY$ icons\app1.png icons\app2.png icons\app3.png #0O$SCFlag$ ["$SC4LClick$"][$SC4RClick$]

Posted by member 843 on 2004-08-03 19:52:14 link

try this:
SC4LClick "!PopupDynamicFolder $Litestep$ 160 47 left bottom"

Posted by member 2873 on 2004-08-03 23:52:44 link

That didn't work either. Thanks anyway.

Posted by member 48370 on 2004-08-04 04:16:55 link

the LS Path already is defined by default as $LiteStepDir$ so theres no need to define a second evar for it :P

Posted by member 2873 on 2004-08-04 04:20:48 link

Well, I only used $Litestep$ as an example. Either way, $LiteStepDir$, $Litestep$, or the other paths I intended to use don't work.

Posted by member 843 on 2004-08-04 08:44:42 link

strange.. I tried running $SC4LClick$ on lsxcommand and it worked.. since you are not using only the left mouse button, maybe this would do:
*Shortcut $SC4Name$ 44r $BarY$ icons\app1.png icons\app2.png icons\app3.png #0O$SCFlag$ $SC4LClick$

tested it on layercut, btw

Posted by member 7991 on 2004-08-04 10:33:48 link

This:
SC4LClick !PopupDynamicFolder "$Litestep$" [160] [47] [left] [bottom]

should be this:
SC4LClick !PopupDynamicFolder "$Litestep$" 160 47 left bottom

Without the square brackets around the optional parameters (which are: x y top/bottom and left/right). As far as I know, those square brackets will cause problems. I could be wrong tho.

Posted by member 2873 on 2004-08-04 15:41:29 link

!PopupDynamicFolder "$Litestep$" 160 47 left bottom


This command definitely works but it doesn't seem to want to launch when I link it to a quicklaunch icon :/

Posted by member 7991 on 2004-08-05 12:51:36 link

If you are using this:
*Shortcut "$SC4Name$" 44r $BarY$ icons\app1.png icons\app2.png icons\app3.png #0O$SCFlag$ ["$SC4LClick$"][$SC4RClick$]

then try this (note the missing quotes)
*Shortcut "$SC4Name$" 44r $BarY$ icons\app1.png icons\app2.png icons\app3.png #0O$SCFlag$ [$SC4LClick$][$SC4RClick$]

Posted by member 2873 on 2004-08-05 16:25:32 link

Ok, that seems to work Liquid Circuit. Only problem is that it only shows a popup and no folder contents with any link I use. Another thing is that no matter what coordinates I specify it seems to popup corresponding to wherever I initially clicked on the icon.

BTW, what do the quotes do? They seem to disable buttons such as my browser button when I take them out. Vice versa for dynamic folders.

Posted by member 7991 on 2004-08-06 11:35:23 link

Okay, that means your evar most likely isn't being defined correctly. I'm guessing that:

$SC4LClick$ = "!popupdynamicfolder"

See, quotes allow you to include spaces as part of a parameter, evar, Path, etc. So, if you are trying to define an evar that needs to have spaces in it, you must enclose the entire string with quotes. Other wise, each space separates each string of letters into sepearate pieces of information; it acts as a "delimiter".

If you enclose the entire string with quotes (another form of delimiter); "PART1"$LS$"PART2" that may work, but most likely won't. With your $SC4LClick$ evar there is a quote pair inside the full string (see: "$Litestep$" ) which might cause your evar to essentially be split in two if you enclose the entire string with quotes. So if that doesn't work, perhaps try a couple variations, matching up delimiter pairs like so:
"Part1$LS$Part2" Vorlons suggestion, see above
"Part1'$LS$'Part2"
{Part1"$LS$"Part2}


Sorry I can't test any of that for you, but I'm not on an LS comp at the moment.