NSIS/Contrib/StartMenu
kichik fcd2c16685 - fixed limit on LangStrings and user variables number which was lower than designed. limit is now 16383 for both.
- made log window respond to the context menu key and not just right click
- set back the default style for the next after it's re-enabled
- set focus on main controls for every page (can still hit enter for next)
- added code to prevent weird usage of WM_COMMAND which can cause weird behavior such as disabled next button on the components page
- eccles fixed a bug which caused beeping when the space key is hit on the components tree


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3351 212acab6-be3b-0410-9dea-997c60f758d6
2004-01-04 17:05:03 +00:00
..
Example.nsi Custom leave function updates 2003-03-18 15:51:01 +00:00
Readme.txt * PageEx - every page can be used everywhere and as many times as needed 2003-09-04 18:25:57 +00:00
resource.h Added /checknoshortcuts 2002-11-11 17:17:33 +00:00
StartMenu.c - fixed limit on LangStrings and user variables number which was lower than designed. limit is now 16383 for both. 2004-01-04 17:05:03 +00:00
StartMenu.dsp Call the same DllMain for debug and release builds 2003-11-12 20:24:53 +00:00
StartMenu.dsw StartMenu.dll, lets the user select the start menu folder 2002-11-08 17:30:29 +00:00
StartMenu.rc Tab order 2002-11-12 18:33:40 +00:00

StartMenu.dll shows a custom page that lets the user select a start menu program 
folder to put shortcuts in.

To show the dialog use the Select function. This function has one required parameter 
which is the program group default name, and some more optional switches:
  /autoadd - automatically adds the program name to the selected folder
  /noicon - doesn't show the icon in the top left corner
  /text [please select...] - sets the top text to something else than
                             "Select the Start Menu folder in which..."
  /lastused [folder] - sets the edit box to a specific value folder.
                       Use this to make this plug-in remember the last
                       folder selected by the user
  /checknoshortcuts text - Shows a check box with the text "text". If
                           the user checks this box, the return value
                           will have > as its first character and you
                           should not create the program group.
  /rtl - sets the direction of every control on the selection dialog
         to RTL. This means every text shown on the page will be
	 justified to the right.

The order of the switches doesn't matter but the required parameter must come after
all of them. Every switch after the required parameter will be ignored and left
on the stack.

The function pushes "success", "cancel" or an error to the stack. If there was no
error and the user didn't press on cancel it will push the selected folder name
after "success". If the user checked the no shortcuts checkbox the result will be
prefixed with '>'. The function does not push the full path but only the selected
sub-folder. It's up to you to decide if to put it in the current user or all
users start menu.

Look at Example.nsi for an example.

Created by Amir Szekely (aka KiCHiK)