Skip to content

Instantly share code, notes, and snippets.

@jerstlouis
Last active January 18, 2016 20:40
Show Gist options
  • Save jerstlouis/1eaab89f2ce14e87eb54 to your computer and use it in GitHub Desktop.
Save jerstlouis/1eaab89f2ce14e87eb54 to your computer and use it in GitHub Desktop.
import "autoLayout"
AutoLayoutForm form1 { contents = Slide1 { }, clientSize = { 1600, 1200 } };
class CCol : Col { hAlignment = center, vAlignment = center; };
class BMBar : Bar { maxSize.h = 60; };
class MBar : Bar { maxSize.h = 30; };
define textColor = 0xFF2F3A3E;
class Header : Element { font = { "Verdana", 30, bold = true }; fgColor = textColor; }
class Bullet : Element
{
fgColor = textColor;
property const String caption
{
set { text.caption = value; }
get { return text.caption; }
}
Element bullet { this, caption = "▪ ", fgColor = 0xFF104A4A; };
Col text { this, fgColor = textColor; };
}
class Slide1 : CCol
{
bitmap = { "bg1.png" };
bitmapTint = { 41, white };
bgColor = 0x59C6D2E3;
font = { "Verdana", 26 };
BMBar { this };
Element title { this, maxSize = { 1430, 0 }, font = { "Verdana", 50, bold = true }, caption = "eC - A crash course", fgColor = textColor };
MBar { this };
Col t { this, maxSize = { 1400, 1100 }, margin = { 15, 15, 15, 15 } };
Header { t, caption = "eC Language" };
Bullet { t, caption = "Classes" };
Bullet { t, caption = "Instances" };
Bullet { t, caption = "Methods" };
Bullet { t, caption = "Flow Control" };
Bullet { t, caption = "Variables" };
Bullet { t, caption = "Style Guidelines" };
Bullet { t, caption = "Member Instance" };
Bullet { t, caption = "Instance method" };
Bullet { t, caption = "Setting properties" };
Bullet { t, caption = "Default properties" };
MBar { t };
Header { t, caption = "Ecere GUI" };
Bullet { t, caption = "Creating a Form" };
Bullet { t, caption = "Positions and Anchors" };
Bullet { t, caption = "Button: Responding to a click" };
Bullet { t, caption = "MessageBox and Modal Loops" };
Bullet { t, caption = "This is very long text that would ideally have automatic line-wrapping onto the next line. Now we have to implement this into autoLayout.ec." };
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment