Subject | Re: [IBO] TIB_Text question |
---|---|
Author | Mark Pickersgill |
Post date | 2004-10-08T07:13:12Z |
Hi Daniel,
The TIB_Text is used to display the contents of a field (ie almost
like a read-only TIB_Edit). If you want to display the Field name, use
either a TIB_Label and set the focus property to the edit control you
want to have linked, or use the TIB_x control's AutoLabel property and
set the AutoLabel's Kind property albLeft or albTop to give you a label
that follows the control around.
If you want more from the AutoLabel and/or more documentation on the
AutoLabel stuff, see my AutoLabel enhancement in the files section of
this yahoo group. The file is AutoLabelMods.zip and inside the zip file
the IBC_Label.pas file is the one that contains the documentation for
the auto-label.
I'm hoping Jason at least extracts the comments for the Autolabel stuff
for the next release as the AutoLabel is a bit perverse when you first
look at it...but darn useful :)
<http://f1.grp.yahoofs.com/v1/8DpmQVgM5navwvNUXkk1DAKevK-93jg5jXkTrcRQhyyj137zMYHOZGtklOTxrComz7S1uZR1iPMKMF2El1hACMbA1EtEQcBkBA/AutoLabelMods.zip>
cheers
Mark
Daniel Jimenez wrote:
The TIB_Text is used to display the contents of a field (ie almost
like a read-only TIB_Edit). If you want to display the Field name, use
either a TIB_Label and set the focus property to the edit control you
want to have linked, or use the TIB_x control's AutoLabel property and
set the AutoLabel's Kind property albLeft or albTop to give you a label
that follows the control around.
If you want more from the AutoLabel and/or more documentation on the
AutoLabel stuff, see my AutoLabel enhancement in the files section of
this yahoo group. The file is AutoLabelMods.zip and inside the zip file
the IBC_Label.pas file is the one that contains the documentation for
the auto-label.
I'm hoping Jason at least extracts the comments for the Autolabel stuff
for the next release as the AutoLabel is a bit perverse when you first
look at it...but darn useful :)
<http://f1.grp.yahoofs.com/v1/8DpmQVgM5navwvNUXkk1DAKevK-93jg5jXkTrcRQhyyj137zMYHOZGtklOTxrComz7S1uZR1iPMKMF2El1hACMbA1EtEQcBkBA/AutoLabelMods.zip>
cheers
Mark
Daniel Jimenez wrote:
>Hi,
>
>
>
>A very simple question if I may.
>
>
>
>I am trying to use the data aware components of IB Objects, but I am
>obviously going about it the wrong way, as I am not getting the effect I am
>after.
>
>
>
>Now the problem is as follows. I have created a DataModule, which contains:
>
> IB_Connection
>
> IB_Transaction
>
> IB_Query
>
> IB_DataSource
>
>
>
>(**)In the IB_Query I have used the "Field Properties - Display Label" to
>change the label of the fields to a more "Human acceptable format".
>
>
>
>In the application there exists a Form which contains the data-aware
>components such as IB_Edit and IB_Text components. I have set the
>"DataSource" property of the IB_Text component to point to the IB_Query
>component I have also set the "DataField" property.
>
> However once the IB_Connection and IB_Query is toggle to "live", the
>IB_Text components display the "data" within the field of the table in the
>DB rather that the preset Field Name(**) or just the Field name.
>
>
>
>Thank you
>
>
>
>Daniel
>
>
>
>
>
>
>
>____________________________
>
>Comvision Pty. Ltd.
>
>
>
>www.comvision.net.au
>
>
>
>
>
>[Non-text portions of this message have been removed]
>
>
>
>
>___________________________________________________________________________
>IB Objects - direct, complete, custom connectivity to Firebird or InterBase
> without the need for BDE, ODBC or any other layer.
>___________________________________________________________________________
>http://www.ibobjects.com - your IBO community resource for Tech Info papers,
>keyword-searchable FAQ, community code contributions and more !
>Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
>