Home » Community » Newbie corner » Field for misc. control information?
Re: Field for misc. control information? [message #37434 is a reply to message #37433] |
Thu, 04 October 2012 07:30  |
|
Hi Mirko
Mircode wrote on Wed, 03 October 2012 22:57 | But.UserData=&normalStyle;
or
But.Misc=&normalStyle;
Is there a field reserved for arbitrary purposes like this?
Greetings!
|
Short answer: No, U++ is not a low level plain C library 
Longer answer: It can, U++ is highly customizable, so it is very easy to add any fields by inheriting. In your case, you can do something like:class MyButton: public Button {
public:
void * userData;
MyButton() {}
~MyButton() {}
}
However, since you already have the power to add anything, I would highly recommend to avoid the generic solution and use a proper naming and specific fields/methods
Best regards,
Honza
|
|
|
Goto Forum:
Current Time: Fri Jul 18 17:09:58 CEST 2025
Total time taken to generate the page: 0.03110 seconds
|