J,

About your earlier post. I have used hh:nn:ss in the DisplayFormat property
of the statically declared field and it worked OK for me....

------------------------------------------------------------------------
--Donovan
Donovan J. Edye [www.edye.wattle.id.au]
Namadgi Systems, Delphi Developer
Web: www.namsys.com.au E-Mail: [EMAIL PROTECTED]
Voice: +61 2 6285-3460 Fax: +61 2 6285-3459
TVisualBasic = Class(None);
------------------------------------------------------------------------


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Mike Osborne
> Sent: Friday, 18 February 2000 15:38
> To: Multiple recipients of list delphi
> Subject: Re: [DUG]: Time in a DB Grid
>
>
> Use the Fields Editor and then pick up the OnGetText event for the
> explicitly defined date field. Then format the input as you please and put
> into Text.
>
> So, it's not the Grid you are adding properties to but to the DB
> field. You
> can also modify the column header for the date field.
>
> ----- Original Message -----
> From: "Jeremy Coulter" <[EMAIL PROTECTED]>
> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
> Sent: Friday, February 18, 2000 4:44 PM
> Subject: RE: [DUG]: Time in a DB Grid
>
>
> > If I understand you right Patrick, I have to add a property/s tot he
> DBGrid
> > ?
> >
> > Jeremy. Coulter
> >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> > > Behalf Of [EMAIL PROTECTED]
> > > Sent: Friday, February 18, 2000 4:37 PM
> > > To: Multiple recipients of list delphi
> > > Subject: RE: [DUG]: Time in a DB Grid
> > >
> > >
> > > Quoting Jeremy Coulter <[EMAIL PROTECTED]>:
> > >
> > > > well I had tried that.
> > > > But if I make the table active at designTime, the formating
> > > looks fine, BUT
> > > > at run time it doesn't use the formating.
> > > > ALSO, I make the header text centered, and this also doesn't
> > > get uses, i.e.
> > > > they stay left aligned !
> > >
> > > You can format anything you want in a control by assigning a
> > > persistent field
> > > and then implementing the OnGetText or OnSetText event handler
> > > for the TField.
> > >
> > > Off the top of my head I don't remember which is which but I have
> > > used these
> > > extensively in a project to do all sorts of things, like
> formatting time
> > > without the seconds (which is displayed by default), letting
> users type
> .
> > > instead of : and entering more than 24 hours into a time field.
> > >
> > > One of the events is used for displaying and the other for editing.
> > >
> > > ------------------------------------------------------------------
> > > ---------
> > >     New Zealand Delphi Users group - Delphi List -
> [EMAIL PROTECTED]
> > >                   Website: http://www.delphi.org.nz
> > >
> >
> >
> >
> --------------------------------------------------------------------------
> -
> >     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> >                   Website: http://www.delphi.org.nz
> >
>
> ------------------------------------------------------------------
> ---------
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
>

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to