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

 Beginner's tutorial

 Now let's see how easy Selector is to program. If there is a command
 that you don't understand, look in the command index.

 -------------------------------------------------------------------------

 We will begin with a little info window:

   text "This is a little info"
   text "window made with"
   text "Selector 4.0"
   space
   text "Close window to continue"

 The script above is written to a file called "b1.sel"
 Then it is run with:   Selector b1.sel

 Try it!

 -Now, wasn't that easy?

 -------------------------------------------------------------------------

 Now we will try to make a little button panel instead:

   button "The clock" run sys:utilities/clock
   button "Startup" run 'type >con: s:startup-sequence'
   button exit exit

 Try it!

 -------------------------------------------------------------------------

 Now, how about a little requester?

   close off
   gap 6
   rows 2

   color 2
   text "Leave from this"
   text "requester now?"

   color 1
   startbox
     button Yes Exit
   endbox
   button No

 Try it!

 -------------------------------------------------------------------------

 Env variables??? Just enclose them with []...

   defenv variable Hello
   
   text "[variable]"
   button "This" setenv variable "This" update
   button "Is" setenv variable "Is" update
   button "Selector" setenv variable "Selector" update
   
   unsetenv variable

 Try it!


 -------------------------------------------------------------------------

 Now I think it's time for you to look at one of the folowing sections:

 Concepts
 Shortway to your popup menu
 Panel defining commands
 Window commands
 Startup commands

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