# Edit mode destroys source code (Windows 10/11)

**URL:** <https://forum.cabbageaudio.com/t/edit-mode-destroys-source-code-windows-10-11/3769>\
**Category:** Cabbage Stew\
**Created:** [29 June 2023 13:17 UTC](https://forum.cabbageaudio.com/t/edit-mode-destroys-source-code-windows-10-11/3769 "2023-06-29T13:17:56Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![stefanv](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/stefanv/32/4755_2.png) [@stefanv](https://forum.cabbageaudio.com/u/stefanv)\
**Post date:** [8 July 2023 11:54 UTC](https://forum.cabbageaudio.com/t/edit-mode-destroys-source-code-windows-10-11/3769/13 "2023-07-08T11:54:03Z")

</div>

What I do, is very simple:

1. open a new file
2. add **“size(600, 500), colour(200, 200, 200), textColour (0,0,0)”** to the caption
3. add the following lines to the cabbage part:  
**#define SLIDER1 textColour ( 0, 0, 0), trackerColour (170, 170, 170)**  
**#define LABEL1 textColour ( 0, 0, 0), fontColour (0, 0, 0)**  
**#define COMBO1 colour (170, 170, 170), fontColour (0, 0, 0)**  
**rslider $SLIDER1 bounds ( 12, 14, 105, 101), channel (“att”), range (0, 20, 0.1, 1, 0.01), text (“Attack”)**  
**rslider $SLIDER1 bounds (114, 14, 105, 101), channel (“dec”), range (0, 20, 0.5, 1, 0.01), text (“Decay”)**  
**rslider $SLIDER1 bounds (218, 14, 105, 101), channel (“sus”), range (0, 1, 0.5, 0.5, 0.01), text (“Sustain”)**  
**rslider $SLIDER1 bounds (322, 14, 105, 101), channel (“rel”), range (0, 20, 0.7, 1, 0.01), text (“Release”)**
4. say “Run” to bring the GUI up
5. say “Stop”
6. enter edit mode
7. move a slider.

Result: garbage.

That’s all.

---

_[View the full topic](https://forum.cabbageaudio.com/t/edit-mode-destroys-source-code-windows-10-11/3769)._
