Subject Re: [IBO] IB_LookupEnh question
Author Geoff Worboys
> A user dropped down the LookupEnh, scrolled a few records
> (meanwhile the new value apper in edit field) and he pressed
> Escape key. The question is how to restore previous value
> without cancelling dssEdit state?

Good point. None of my users have ever asked for it, but it would be
consistent if hitting escape and second time reset the value. I will
look into whether this is feasible.


> Geoff, did you ever think about putting a small button on
> dropdown panel allowing adding new records to lookup
> dataset?

Yes I did, but decided against it at the time.

Note that the the Button property is still available on the control.
So you can set the Button.Style to eebLeftRightEllipsis - which gives
you effectively two buttons. You can then attach code to the
OnButton2 event to do whatever you want. You will probably want to
set Button.Size to 31 or so and possibly Button.Key2 to an appropriate
keyboard shortcut.

Is this sufficient?


I also noticed in your demo that the button on the TIB_LookupEnh
control is not repainting properly when the main dataset is
activated - I will look into fixing that.

Geoff Worboys
Telesis Computing