 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Alessandro BAM Guest
|
Posted: Sun Aug 10, 2003 4:23 pm Post subject: Help me Please ( TDBEdit question ) |
|
|
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
|
Posted: Sun Aug 10, 2003 5:40 pm Post subject: Re: Help me Please ( TDBEdit question ) |
|
|
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
|
Posted: Sun Aug 10, 2003 7:56 pm Post subject: Re: Help me Please ( TDBEdit question ) |
|
|
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
|
Posted: Mon Aug 11, 2003 6:16 am Post subject: Re: Help me Please ( TDBEdit question ) |
|
|
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 |
|
 |
|
|
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
|
|