~jerstlouis/ecere/master

« back to all changes in this revision

Viewing changes to autoLayout/slides/instancesSlide.ec

  • Committer: Jerome St-Louis
  • Date: 2018-08-20 03:05:58 UTC
  • Revision ID: git-v1:8ca377601976310aacf772f6aeb12cfd1c931223
autoLayout: Initial commit of AutoLayout and SlidesTest

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import "base"
 
2
 
 
3
class InstancesSlide : BaseSlide
 
4
{
 
5
   BMBar { this };
 
6
   Title title { this, caption = "Instances" };
 
7
 
 
8
   MBar { this };
 
9
   //Col t { this, maxSize = { 1450, 1150 }, margin = { 115, 15, 115, 15 } };
 
10
   Col t { this, maxSize = { 1550, 1250 }, margin = { 60, 15, 60, 15 } };
 
11
      //Header { t, caption = "Features" };
 
12
      BMBar { t };
 
13
      Bullet { t, caption = "Multiple objects can be instantiated from same class" };
 
14
      Bullet { t, caption = "Value of members can be modified from defaults" };
 
15
      Bullet { t, caption = "Virtual methods can be overridden" };
 
16
      BMBar { t };
 
17
      SmallHeader { t, caption = "                Syntax:" };
 
18
      MBar { t };
 
19
      CodeBlock { t, minSize = { 920, 320 }, caption =
 
20
         "// Named Instance (declaration)\n"
 
21
         "MyClass object { member = value };\n"
 
22
         "\n"
 
23
         "// Anonymous Instance (expression)\n"
 
24
         "MyClass { member = value };"
 
25
      };
 
26
}