Readme.txt 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. StartMenu.dll shows a custom page that lets the user select a start menu program
  2. folder to put shortcuts in.
  3. To show the dialog use the Select function. This function has one required parameter
  4. which is the program group default name, and some more optional switches:
  5. /autoadd - automatically adds the program name to the selected folder
  6. /noicon - doesn't show the icon in the top left corner
  7. /text [please select...] - sets the top text to something else than
  8. "Select the Start Menu folder in which..."
  9. /lastused [folder] - sets the edit box to a specific value folder.
  10. Use this to make this plug-in remember the last
  11. folder selected by the user
  12. /checknoshortcuts text - Shows a check box with the text "text". If
  13. the user checks this box, the return value
  14. will have > as its first character and you
  15. should not create the program group.
  16. /rtl - sets the direction of every control on the selection dialog
  17. to RTL. This means every text shown on the page will be
  18. justified to the right.
  19. The order of the switches doesn't matter but the required parameter must come after
  20. all of them. Every switch after the required parameter will be ignored and left
  21. on the stack.
  22. The function pushes "success", "cancel" or an error to the stack. If there was no
  23. error and the user didn't press on cancel it will push the selected folder name
  24. after "success". If the user checked the no shortcuts checkbox the result will be
  25. prefixed with '>'. The function does not push the full path but only the selected
  26. sub-folder. It's up to you to decide if to put it in the current user or all
  27. users start menu.
  28. To set properties of the controls on the page, such as colors and fonts use Init
  29. and Show instead of Select. Init will push the HWND of the page on the stack,
  30. or an error string. For example:
  31. StartMenu::Init "Test"
  32. Pop $0
  33. IntCmp $0 0 failed
  34. GetDlgItem $0 $0 1003
  35. SetCtlColors $0 "" FF0000
  36. StartMenu::Show
  37. # continue as with Select here
  38. failed:
  39. Look at Example.nsi for a full example (without Init and Select).
  40. Created by Amir Szekely (aka KiCHiK)