Libraries: Easy Canvas

 

Easy Canvas:

The library and iCanvas class simplify writing programs using Canvas.

Easy Canvas

Author: Nikolai Semko

 

Version 1.01

New:

  • Implemented work with subwindows
  • Added MouseSubWin, WindowsTotal, SubWin values to Windows structure

   int               MouseSubWin; // current number of the subwindow where the mouse pointer is located
   int               WindowsTotal;// the entire subwindow, including the main window.
   int               SubWin;      // the current subwindow to which the Canvas is bound
 

Version 1.06.

Fixed some bugs and alogisms.

If you don't need an instance of Canvas class on a full window, you can delete it and (or) change it to a partial window

For example:

delete Canvas;
Canvas= new iCanvas(0,0,"iCanvas",300,0);          // only the left bar of the window is 300 pixels wide. Window resizing is controlled by 
// Canvas= new iCanvas(0,0, "iCanvas",0,300); // only the top bar of the window is 300 pixels high. Window resizing is controlled by 
// Canvas= new iCanvas(200,100, "iCanvas",300,300); // a square of 300x300 pixels with the starting position at the point (200,100). Window resizing is not controlled 

it is also possible to create new instances of the class and initialise them at the time of creation

For example:

iCanvas C2(300,200,"Canvas2",200,150,COLOR_FORMAT_XRGB_NOALPHA,1);
 
Some of the features of this library are demonstrated here and here.
 
more recent version 1.12
Files:
iCanvas.mqh  33 kb
 
more recent version 1.12
Files:
iCanvas.mqh  33 kb
 
latest version 1.12
Files:
iCanvas.mqh  33 kb
 
latest version 1.12
Files:
iCanvas.mqh  33 kb
 
more recent version 1.12
Files:
iCanvas.mqh  33 kb
 
Latest version 1.12
Files:
iCanvas.mqh  33 kb
 
the latest updates are always here