Macroses (variables) at Defined Custom Controls

Post here wxCrafter related issues / features / bugs
Buxlan
CodeLite Curious
Posts: 2
Joined: Wed May 07, 2014 4:22 pm
Genuine User: Yes
IDE Question: c++
Contact:

Macroses (variables) at Defined Custom Controls

Post 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.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Macroses (variables) at Defined Custom Controls

Post 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
Make sure you have read the HOW TO POST thread
Buxlan
CodeLite Curious
Posts: 2
Joined: Wed May 07, 2014 4:22 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: Macroses (variables) at Defined Custom Controls

Post by Buxlan »

Ok, thanks
Post Reply