Subject RE: [IBO] Unexpected behavior using TIB_Edit
Author Jason Wharton
Steve,

I don't have any idea about this stuff as I wasn't the original developer of
the AutoLabel feature. I'm afraid you are going to have to get comfortable
with the sources on this unless someone else here can help.

Jason Wharton


> -----Original Message-----
> From: Steve Fields [mailto:stevefields2424@...]
> Sent: Thursday, November 18, 2004 7:36 PM
> To: IBObjects@yahoogroups.com
> Subject: [IBO] Unexpected behavior using TIB_Edit
>
> Hi All (Again)
>
> I am using the TIB_Edit.Autolabel.Model field as a
> sort of link to another field on a given form.
>
> If the KeyDown matches _F5_ then I take the linked
> field in the Model and place it's text value
> in the TIB_Edit that has triggered the event.
> It works perfect for this until I actually use it....
>
> What I do first is ask the user to see if all of the edits
> in a given panel can be used from their _linked_ fields.
> If so then I step through using components and componentcount
> to test to see if the parent panel matches the current panel,
> if so I splice the data in:
>
> (Components[i] as TIB_Edit).Text :=
> ((Components[i] as TIB_Edit).Autolabel.Model as TIB_Edit).Text;
>
> This works perfect until I actually press a key in one of the
> targeted TIB_Edits. Any key then clears it. It looks like it
> may have something to do with selected text?
> (SelectAll, SelectStart, etc?)
>
> Any ideas?
>
> Steve Fields