Page 1 of 1

Macroses (variables) at Defined Custom Controls

Posted: Wed May 07, 2014 4:35 pm
by Buxlan
Hello.

When i define a custom control, i write $name = new MyControl($parent, $id)

Can i add some new variables, like $size, $flags etc?
Three variables are very often not enough to determine the control.

Thank you.

Re: Macroses (variables) at Defined Custom Controls

Posted: Fri May 09, 2014 10:25 am
by eranif
The only supported macros are

Code: Select all

$name
$id
$paret
For the rest, you will need to place them in the constructor of your subclass

Eran

Re: Macroses (variables) at Defined Custom Controls

Posted: Wed May 14, 2014 8:54 am
by Buxlan
Ok, thanks