summaryrefslogtreecommitdiff
path: root/examples/FLscroll.csd
diff options
context:
space:
mode:
Diffstat (limited to 'examples/FLscroll.csd')
-rw-r--r--examples/FLscroll.csd45
1 files changed, 45 insertions, 0 deletions
diff --git a/examples/FLscroll.csd b/examples/FLscroll.csd
new file mode 100644
index 0000000..75c6cbc
--- /dev/null
+++ b/examples/FLscroll.csd
@@ -0,0 +1,45 @@
+<CsoundSynthesizer>
+<CsOptions>
+; Select audio/midi flags here according to platform
+; Audio out Audio in No messages
+-odac -iadc -d ;;;RT audio I/O
+; For Non-realtime ouput leave only the line below:
+; -o FLscroll.wav -W ;;; for file output any platform
+</CsOptions>
+<CsInstruments>
+
+; Demonstration of the flscroll opcode which enables
+; the use of widget sizes and placings beyond the
+; dimensions of the containing panel
+sr = 44100
+kr = 441
+ksmps = 100
+nchnls = 1
+
+FLpanel "Text Box", 420, 200, 50, 50
+ iwidth = 420
+ iheight = 200
+ ix = 0
+ iy = 0
+ FLscroll iwidth, iheight, ix, iy
+ ih3 FLbox "DRAG THE SCROLL BAR TO THE RIGHT IN ORDER TO READ THE REST OF THIS TEXT!", 1, 10, 20, 870, 30, 10, 100
+ FLscrollEnd
+; End of panel contents
+FLpanelEnd
+; Run the widget thread!
+FLrun
+
+instr 1
+endin
+
+
+</CsInstruments>
+<CsScore>
+
+; 'Dummy' score event of 1 hour.
+f 0 3600
+e
+
+
+</CsScore>
+</CsoundSynthesizer>