RE: Re: drop down box or something like it.

"Hale, Paul" <Paul.Hale-uv/[email protected]>
Newsgroups gmane.comp.windows.shells.litestep
Message-ID <23DBD872E5D0B44E8296E93447E0F607050489BF@01ohday01n00005.ad.bls.com>
> -----Original Message-----
> From: news [mailto:[email protected]] On Behalf Of Brian Wolven
> Sent: Friday, June 08, 2007 2:18 PM
> To: litestep-HzvBz7w1J3cIFlVeWT/[email protected]
> Subject: [Litestep] Re: drop down box or something like it.
> 
> The bang takes two arguments - you have to tell it the name 
> of the evar you're saving, and then what you want the evar to 
> be. So the following would save the full path to a color 
> scheme file in the evar "colorscheme":
> 
> *Popup "Select color scheme" !new !popupSchemes
>    *Popup "Select color scheme"	
> !popupDynamicACtionFolder:!savesetting 
> colorscheme:"$SchemesDir$"
> *Popup ~New
> 
> If you want just the "name" of the scheme, then you have to 
> be a little fancier, since the full path just gets tacked on 
> at the end of the popup dynamic action bang. Instead I define 
> the popup action to be !savescheme:
> 
> *Popup "Select color scheme" !new !popupSchemes
>    *Popup "Select color scheme"	
> !popupDynamicACtionFolder:!savescheme:"$SchemesDir$"
> *Popup ~New
> 
> ...and then define !savescheme to do the saving and 
> stripping, where the %1 is the full path that is passed in 
> from the popup:
> 
>   *alias !savescheme !execute [!saveSetting colorscheme 
> %1][!strippath colorscheme][!stripextn colorscheme]
> 
> Try it both ways and look at the results - you'll get the picture. =)

Aha! I get it now. I don't know why that was so hard to understand,
because it is perfectly clear now. This works beautifully! In this
paticular instance, it just shranks the config of my color, scheme, and
surface scipt configs from 45 lines to 12. And it would only be 3 if I
wasn't going for something purty.

In this case, I am only going to worry about the path, stripping the out
everything else will have to wait. It appears to be getting confused by
some of my other Var names.

Brian and Jochen, thanks for the help. I think I am going to have to
change my theme name though. It started off as a remake of my Rewind
theme, then morphed into My Default theme, then Recurve 2. But I have
used stuff from West, a lot of stuff from Brian, came up with most of it
myself, and now getting help from Jochen. It's going to need a new name.

Frankenstein. I'll just have to include the Edgar Winters song with
it...

> 
> 
> ---------------------------------------------------------------------
>     Can't Unsubscribe? Check http://desktopian.org/listunsub.html
>         LS List Homepage: http://wuzzle.org/list/litestep.php
>             Get the LS FAQ: http://lsfaq.shellfront.org
> 
> 
> 

------------------------------------------------------------------------------
The information transmitted is intended only for the person or entity to which it is addressed and may
contain confidential, proprietary and or privileged material. Any review, retransmission, dissemination
or other use of, or taking of any action in reliance upon this information by persons or entities other
than the intended recipient is prohibited. If you received this email in error, please contact the sender
and delete the material from all computers.

This electronic mail message was sent from L. M. Berry & Company or Berry Network, Inc. Our primary business
address is 3170 Kettering Blvd., Dayton, OH 45439. This message may constitute a commercial solicitation or
advertisement as defined by the CAN-SPAM act of 2003. If you do not wish to receive future commercial
electronic mail solicitations or advertisements from L. M. Berry & Company or Berry Network, Inc.,
please send a request to [email protected]
==============================================================================


---------------------------------------------------------------------
    Can't Unsubscribe? Check http://desktopian.org/listunsub.html
        LS List Homepage: http://wuzzle.org/list/litestep.php
            Get the LS FAQ: http://lsfaq.shellfront.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.