BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help me Please ( TDBEdit question )

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Writing
View previous topic :: View next topic  
Author Message
Alessandro BAM
Guest





PostPosted: Sun Aug 10, 2003 4:23 pm    Post subject: Help me Please ( TDBEdit question ) Reply with quote



Hello People


I'm working on a totally custom dbedit that comes from TCustomMask edit ( if
i'm not wrong ). The question is: What do I have to do to make my control
respondes when the table connected to it is activated, i mean what needs to
me done in order to show the field value in the control.??


Alessandro BAM


Back to top
Maynard Philbrook
Guest





PostPosted: Sun Aug 10, 2003 5:40 pm    Post subject: Re: Help me Please ( TDBEdit question ) Reply with quote



look at the existing TDedit.
you need the TdataSource.
TFeild.
ect,,,


Alessandro BAM wrote:

Quote:
Hello People

I'm working on a totally custom dbedit that comes from TCustomMask edit ( if
i'm not wrong ). The question is: What do I have to do to make my control
respondes when the table connected to it is activated, i mean what needs to
me done in order to show the field value in the control.??

Alessandro BAM

--
To See what real programmers do in their spare time visit
http://jamie12.home.mindspring.com
home of PC bit software ..
Please send comments about my work .



Back to top
Dettmer, A. L.
Guest





PostPosted: Sun Aug 10, 2003 7:56 pm    Post subject: Re: Help me Please ( TDBEdit question ) Reply with quote




Hi Alessandro

Quote:

I'm working on a totally custom dbedit that comes from TCustomMask edit ( if
i'm not wrong ). The question is: What do I have to do to make my control
respondes when the table connected to it is activated, i mean what needs to
me done in order to show the field value in the control.??


Set DataField and DataSource properties, nothing more.

--
"I can resist anything except to temptations."
Oscar Wilde



Back to top
Grega Loboda
Guest





PostPosted: Mon Aug 11, 2003 6:16 am    Post subject: Re: Help me Please ( TDBEdit question ) Reply with quote

Look at the TDBLabel first and then at the TDBEdit. You will find out that
you have to override a few procedures. To just show data procedure
DataChange(Sender: TObject); will be enough. To edit data as well, you'll
have to override procedure ActiveChange(Sender: TObject); and procedure
UpdateData(Sender: TObject); as well. As I said, check TDBLabel and TDBEdit
what you should do in that procedures. And of'course, you'll have to add
properties DataSource and DataField.

Grega

"Alessandro BAM" <alessandro_bam (AT) uol (DOT) com.br> wrote

Quote:
Hello People


I'm working on a totally custom dbedit that comes from TCustomMask edit
( if
i'm not wrong ). The question is: What do I have to do to make my control
respondes when the table connected to it is activated, i mean what needs
to
me done in order to show the field value in the control.??


Alessandro BAM






Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Writing All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.