Subject | Re: [IBO] Non-db-aware DatePick ? |
---|---|
Author | e9426420@stud4.tuwien.ac.at |
Post date | 2001-10-27T16:02:36Z |
thanks for your answer !
I have tried the unbound TIB_Date control but now I have 2 problems.
1)
I used the OnChange event and in the event-procedure IB_Date.text has stran=
ge values. In addition to that the OnChange event is always called twice if =
I press a key to change the date (not if I click the open calendar). This is=
also true for the bound control.
to explain the strange values look at this onChange proc
procedure TForm1.DateTimeChange(Sender: TObject);
Begin
Showmessage('.Text='+dtp.Text+' .Edittext='+dtp.EditText)
end;
my Dateformat is dd.mm.yyyy
if I change 27.11.2001 to 26.11.2001 (overwrite the 7)
2 messageboxes appear
1st: .Text=2..1..001 .Edittext=2.11.2001
2nd: .Text=26.11.2001 .Edittext=26.11.2001
the second time OnChange is called everything is fine
2)
I have to change all DateTimePicker.date to StrToDate(IB_Date.text)
(perhaps I add a property .date to TIB_Date)
to Spou:
I know the RXLib but I want don´t want to mix different db-aware and non-db=
-aware DatePick controls
thanks
I have tried the unbound TIB_Date control but now I have 2 problems.
1)
I used the OnChange event and in the event-procedure IB_Date.text has stran=
ge values. In addition to that the OnChange event is always called twice if =
I press a key to change the date (not if I click the open calendar). This is=
also true for the bound control.
to explain the strange values look at this onChange proc
procedure TForm1.DateTimeChange(Sender: TObject);
Begin
Showmessage('.Text='+dtp.Text+' .Edittext='+dtp.EditText)
end;
my Dateformat is dd.mm.yyyy
if I change 27.11.2001 to 26.11.2001 (overwrite the 7)
2 messageboxes appear
1st: .Text=2..1..001 .Edittext=2.11.2001
2nd: .Text=26.11.2001 .Edittext=26.11.2001
the second time OnChange is called everything is fine
2)
I have to change all DateTimePicker.date to StrToDate(IB_Date.text)
(perhaps I add a property .date to TIB_Date)
to Spou:
I know the RXLib but I want don´t want to mix different db-aware and non-db=
-aware DatePick controls
thanks
--- In IBObjects@y..., "Jason Wharton" <jwharton@i...> wrote:
> I can't remember exactly how it is done but I believe you can use the
> TIB_Date control when it is unbound.
>
> Jason Wharton
> CPS - Mesa AZ
> http://www.ibobjects.com
>
>
> ----- Original Message -----
> From: <e9426420@s...>
> To: <IBObjects@y...>
> Sent: Thursday, October 25, 2001 9:25 AM
> Subject: [IBO] Non-db-aware DatePick ?
>
>
> I like the TIB_Date control more than TIB_DateTimePicker but I need a non=
-d=
> b-aware control also. I don´t want to mix TIB_Date and TDateTimePicker. T=
he
> =
> TDatePick is nice but it should look like TIB_Date (like a combobox).
>
> thanks
> Oliver