Skip to content

Instantly share code, notes, and snippets.

@jerstlouis
Created June 20, 2020 00:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jerstlouis/8458956cc95cfd14a5666423d22c97d2 to your computer and use it in GitHub Desktop.
Save jerstlouis/8458956cc95cfd14a5666423d22c97d2 to your computer and use it in GitHub Desktop.
import "ecere"
class Form1 : Window
{
caption = $"Form1";
background = formColor;
borderStyle = sizable;
hasMaximize = true;
hasMinimize = true;
hasClose = true;
clientSize = { 632, 438 };
Window otherWindow { this, anchor = { 10, 10, 10, 10 }, background = blue };
EditBox editBox1 { otherWindow, caption = $"editBox1", size = { 374, 211 }, position = { 128, 88 }, multiLine = true };
}
Form1 form1 {};
@sduensin
Copy link

This breaks it:

import "ecere"

class frmTextEditor : Window
{
   caption = $"frmTextEditor";
   background = formColor;
   borderStyle = sizable;
   hasMaximize = true;
   hasMinimize = true;
   hasClose = true;
   size = { 272, 202 };
   anchor = { horz = -184, vert = -132 };

   EditBox editText { this, caption = $"editText", anchor = { left = 0, top = 0, right = 0, bottom = 0 }, hasHorzScroll = true, true, multiLine = true, wrap = true };
}

class frmMain : Window
{
   caption = $"frmTextEditor";
   background = formColor;
   borderStyle = sizable;
   hasMaximize = true;
   hasMinimize = true;
   hasClose = true;
   size = { 800, 600 };

   frmTextEditor winGlobalNotes {
      parent = this,
      caption = "Global Notes";
   };
}

frmMain winMainForm {};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment