114 |
|
procedure DoEnter; override; |
115 |
|
procedure DoExit; override; |
116 |
|
procedure KeyUp(var Key: Word; Shift: TShiftState); override; |
117 |
+ |
procedure Loaded; override; |
118 |
|
procedure Notification(AComponent: TComponent; Operation: TOperation); override; |
119 |
|
procedure SetItemIndex(const Val: integer); override; |
120 |
|
function SQLSafe(aText: string): string; |
347 |
|
SelStart := iSelStart; |
348 |
|
SelLength := UTF8Length(Text); |
349 |
|
end; |
350 |
+ |
KeyValue := ListSource.DataSet.FieldByName(KeyField).AsVariant; |
351 |
|
end; |
352 |
|
end; |
353 |
|
finally |
381 |
|
|
382 |
|
procedure TIBLookupComboEditBox.HandleEnter(Data: PtrInt); |
383 |
|
begin |
384 |
+ |
if AppDestroying in Application.Flags then Exit; |
385 |
|
SelectAll |
386 |
|
end; |
387 |
|
|
459 |
|
|
460 |
|
procedure TIBLookupComboEditBox.DoExit; |
461 |
|
begin |
462 |
+ |
if FTimer.Interval <> 0 then |
463 |
+ |
HandleTimer(nil); |
464 |
|
FExiting := true; |
465 |
|
try |
466 |
|
CheckAndInsert; |
491 |
|
(not (cbactEndOfLineComplete in AutoCompleteText) or (SelStart = UTF8Length(Text))) then |
492 |
|
FTimer.Interval := FKeyPressInterval |
493 |
|
else |
494 |
< |
FTimer.Interval := 0 |
494 |
> |
FTimer.Interval := 0; |
495 |
> |
end; |
496 |
> |
|
497 |
> |
procedure TIBLookupComboEditBox.Loaded; |
498 |
> |
begin |
499 |
> |
inherited Loaded; |
500 |
> |
IBControlLinkChanged; |
501 |
|
end; |
502 |
|
|
503 |
|
procedure TIBLookupComboEditBox.Notification(AComponent: TComponent; |