multiple first-level popups Thread last updated on 2003-11-24 22:15:36

Posted by member 80008 on 2003-11-24 19:45:17

Another popup (2.1.2) question:
So far I couldn't get multiple popups opened with a folder at the first level with:
*Popup "Text" !new !PopupSomething !PopupFolder:"path"
~New

Only the last popup defined in the step.rc works on first level.
Is there a way to get this ?

Posted by member 37809 on 2003-11-24 20:56:21 link

I think you want to use !PopupDynamicFolder [somepath] as a regular bang.

e.g.
!PopupDynamicFolder "$CommonPrograms$|$Programs$"
or
!PopupDynamicFolder "$ThemeDir$"

Defining multipopups with custom entries is done like:
*Popup "Name of Popup" !new !howDoYouWantToNameIt
*Popup "etc" !none
...
*Popup ~New

Traditionally "!howDoYouWantToNameIt" begins with "!Popup".
e.g. "!PopupWhatYouWantToNameIt"

Posted by member 80008 on 2003-11-24 21:13:53 link

What I am searching for is a possibility to open several popups with a folder at the first level i.e when the popup opens it should immediately display the folder content. This works fine with one folder (the last one defined at the end of the popup declarations in step.rc), but not with several popups. It would make a big improvement in terms of Fizzes'es law compliance.

Posted by member 36955 on 2003-11-24 21:29:12 link

try the first example tnl gave: instaed of defining a separate popup, call
!PopupDynamicFolder "$DirToOpen$"

by itself, not in a *popup line

Posted by member 80008 on 2003-11-24 22:15:36 link

Yes, thats it ! I didn't know popupdynamicfolder isn't a pseudobang. Easy. Thanks!