Home | Contents | Index | Help | < Browse | Browse >

  Main <filename>
  
  Sets the file to be loaded into the editor when pressing E, and
  the file to add buttons to when pressing A or to draw to when pressing D.
  This is confortable when you like to have a common file list for two
  different scripts. For example, (this is taken from my own system).
  I want to get to the file list both from my middle-button panel
  (Startscript 1) and when pressing left+right mouse buttons (Startscript 2)
  
  Startscript 1:
  
	onpopupclose exit
	popup hide first

	include panellook.sel
	include programlist.sel

	main programlist.sel

 
  Startscript 2:
  
	screen jump
	popup lmb rmb

	include panellook.sel
	include programlist.sel

	main programlist.sel

  
  The file list: (programlist.sel)

	button "ALM.Editor"	exec 'wbrun "Work:EgnaProgram/ALM/ALM.Editor"' closepopup
	button "Aura"		exec 'wbrun "Work:LJUD/inspelning/Aura/Aura"' closepopup
	button "Bars&Pipes"	screenrun BPPScreen 'wbrun "Work:LJUD/Midi/Sequencers/Bars&Pipes Professional/Bars&Pipes Professional"' closepopup
	button Basic run "selector basic" closepopup
	button "BorayLetter"	exec "wbrun Work:EgnaProgram/BorayLetterSV/BorayLetter"
	button Calculator	exec 'wbrun "Work:PRG/Calculator"' closepopup

   etc...

  
  If you press Ctrl-E instead of E, then the original script will be
  loaded into the editor, not the one you set with "main".


  Note that you can set main to any text file, not just an included one.



Home | Contents | Index | Help | < Browse | Browse >