Re: TZF - TzGrid Colors
Marie Vihonsky <[email protected]> Thu, 06 Nov 2003 11:44:43 -0500
| Newsgroups | gmane.comp.lang.delphi.topaz |
|---|---|
| Message-ID | <[email protected]> |
THANKS Alex!!!! This really helps me to learn besides creating a very useful object. I'm always duplicating code from project to project for some 'special things' - now I can 'simplify' some code! Marie Alex Mackinnon wrote: > Oops... I should also have said... If you use the class I produced then > (1) you'll get an error message when you place one of the new TzGridRC > controls on a form (ignore it! I just can't remember what to do to get > rid of it! LOL) and (2) you'll want to add a method to the 'master' > TTzDBF that you use to update the grid when the cursor is moved... > > A. > ================================ > procedure TForm1.TzDbf1AfterScroll(DataSet: TDataSet); > begin > TzGridRC1.RefreshGrid; > end; > > > -----Original Message----- > From: Marie Vihonsky [mailto:[email protected]] > Sent: 06 November 2003 15:54 > To: [email protected] > Subject: Re: TZF - TzGrid Colors > > > Hi Alex & Bob, > > I'd love to do 'descend a class' but I don't know how. But in this > instance, shouldn't the object be a TzGrid? I say this because aren't > we modifying the TzGrid properties and not the TzDbf. > > Marie > > Alex Mackinnon wrote: > >>Just descend a class from TTzDBF, add your customized functions as >>overrides or as new properties/procedures/functions and then use that >>wherever you would have used a TTzDBF. >> >>A. > > > > > > > > > > > --^---------------------------------------------------------------- This email was sent to: [email protected] EASY UNSUBSCRIBE click here: http://topica.com/u/?clvXPN.a5kvff.Z2NsZHQt Or send an email to: [email protected] TOPICA - Start your own email discussion group. FREE! http://www.topica.com/partner/tag02/create/index2.html --^----------------------------------------------------------------