Go Back   Armenian Knowledge Base > Technical sections > Languages, Compilers, Interpreters > C/C++

Reply
 
Thread Tools

C++ Builder 6 - DateTimePicker
Old 28.04.2006, 13:58   #1
Младенец
 
Join Date: 04 2006
Location: Mauritius
Age: 42
Posts: 12
Rep Power: 0
Default C++ Builder 6 - DateTimePicker

Hi,

Is it possible to set the value of a DateTimePicker to blank so that when you run the application there's no value in the DataTimePicker?

Kind Regards,
Rowin

Re: C++ Builder 6 - DateTimePicker
Old 28.04.2006, 16:17   #2
Ego coder
 
AvDav's Avatar
 
Join Date: 07 2004
Location: Yerevan, Armenia
Age: 44
Posts: 3,738
Rep Power: 5
Default 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.
__________________
Каждый сам кузнец своего счастья, и несчастья тоже.

Re: C++ Builder 6 - DateTimePicker
Old 02.05.2006, 04:22   #3
Академик
 
Join Date: 01 2002
Location: Shambala
Age: 46
Posts: 7,016
Rep Power: 6
Default Re: C++ Builder 6 - DateTimePicker

No man, for that type of cases there is a CkeckBox in a TDateTime picker, just set false to the property Checked and manipulate with that...
__________________
Ախպեր դու էմիգրացիան տուրիզմի հետ մի խառնի...

http://moskull.livejournal.com/
Reply




Реклама:
реклама
Buy text link .

All times are GMT. The time now is 15:11.
Top

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.