home *** CD-ROM | disk | FTP | other *** search
- /* $VER: Create.strx 1.0 (14.Oct.93) */
-
-
- /*
- call open STDOUT,"RAD:RxOut.txt",W
- call open STDERR,"RAD:RxErr.txt",W
- trace R
- */
-
-
- options results
-
- /* Define Public Screen */
- Gads.PubScreen = "STYLUSTRACER"
-
- /* Define Window */
- Gads.0.LeftEdge = 16; Gads.0.TopEdge = 12
- Gads.0.Width = 300; Gads.0.Height = 88
- Gads.0.Label = "New image"
-
- /* Define Label Gadgets */
- Gads.1.LeftEdge = 96; Gads.1.TopEdge = 8
- Gads.1.Width = 112; Gads.1.Height = 12
- Gads.1.Type = Integer
- Gads.1.Size = 16
- Gads.1.Label = "Width:"
- Gads.1.Value = 640
-
- Gads.2.LeftEdge = 96; Gads.2.TopEdge = 24
- Gads.2.Width = 112; Gads.2.Height = 12
- Gads.2.Type = Integer
- Gads.2.Size = 16
- Gads.2.Label = "Height:"
- Gads.2.Value = 400
-
- Gads.3.LeftEdge = 96; Gads.3.TopEdge = 40
- Gads.3.Width = 112; Gads.3.Height = 12
- Gads.3.Type = Cycle
- Gads.3.Descr.0 = "Black+White"
- Gads.3.Descr.1 = "Indexed"
- Gads.3.Descr.2 = "Greyscale"
- Gads.3.Descr.3 = "Full Color"
- Gads.3.Size = 4
- Gads.3.Label = "Type:"
- Gads.3.Value = 1
-
- Gads.4.LeftEdge = 96; Gads.4.TopEdge = 56
- Gads.4.Width = 112; Gads.4.Height = 12
- Gads.4.Type = Integer
- Gads.4.Size = 16
- Gads.4.Label = "Colors:"
- Gads.4.Value = 16
-
- Gads.5.LeftEdge = 64; Gads.5.TopEdge = 72
- Gads.5.Width = 64; Gads.5.Height = 12
- Gads.5.Type = Button
- Gads.5.Label = "OK"
- Gads.5.EndGad = 1
-
- Gads.6.LeftEdge = 164; Gads.6.TopEdge = 72
- Gads.6.Width = 64; Gads.6.Height = 12
- Gads.6.Type = Button
- Gads.6.Label = "Cancel"
- Gads.6.EndGad = -1
-
- /* Total Gadgets + Window */
- Gads.NumGads = 7
-
- address REXXREQUEST
- 'GetRequest Gads'; OK = Result
-
- if OK >= 1 then do
- Address StylusTracer
- if Gads.3.Value = 1 then
- 'Create' Gads.3.Value Gads.4.Value Gads.1.Value Gads.2.Value
- else
- 'Create' Gads.3.Value Gads.1.Value Gads.2.Value
- end
- /*
- CREATE Syntax:
- 'CREATE' Type [Colors] Width Height
-
- Type follows the same form as the IMGTYPE command;
- that is a numeric value from the following table:
- 0 = B&W
- 1 = Indexed
- 2 = Greyscale
- 3 = True Color
- The Colors arg is only required for Type = 1 (Indexed)
- */
-