Re: C++ Builder 6 - DateTimePicker
One solution is to initialize in constructor, I don't know what type it has, (perhaps it's a pointer to the picker window, just assign 0 pointer in ctor),
since I don't use Builder for a long time. AFAIK, the properties in design window can be edited not only from design area facilities but also from the code. Besides, debugger can help you to understand how the picker should be created, do you really need to set it blank (and if you need where exactly to assign the value), because if it's a pointer to dynamically allocated memory you'll get a wrong, unexpected result and of course - memory leak.
__________________
Каждый сам кузнец своего счастья, и несчастья тоже.
|