Subject Re: [IBO] TIB_Grid InPlaceEditor Logic
Author Russell Belding
Hello Geoff

"Geoff Worboys" <geoff@...> wrote in message
> >> Are you happy with gnOnEditDoEditClick set to disabled now in your
> >> application - or did you still want me to take a look at supporting
> >> both gnOnEditDoEditClick and AlwaysShowEditor as enabled ??
> > Yes please. I for one would greatfully appreciate having both
> > available.
> I guess the first question is; have you seen how this problem is
> avoided with the build-in memo editor? That is; when the memo editor
> dialog exits and both gnOnEditDoEditClick and AlwaysShowEditor are
> enabled then the function simply tabs backward or forward (depending
> on the memo result).

I set up a test table with an integer ID columne and three memo text
columns. The IB_Grid for this table has no event handler for
OnEditButtonClick. It should use the default memo editor and I'd prefer to
use the default text editor, (but my own date editor as I have date
calculations using a table of non-working days which is set for local law).

In the code I have if gnOnEditDoEditClick=True and AlwaysShowEditor=True
then entering a memo cell causes cycling somewhere as evidenced by the cell
text flicker.

Setting gnOnEditDoEditClick=False, AlwaysShowEditor=True and
EditLinksAuto=False brings up the [...] elllipsis button on entering a memo
cell but the default editor does not appear. The [...] button appears only
for those columns listed in EditLinks.

Setting EditLinksAuto=True causes all 3 memo columns to display the [...]
button on cell entry and allows the default editor to edit the cells when
[...] is pressed. The behaviour at this settign is OK,

There is no column level control over what columns can be edited? Do I need
an OnEditButtonClick handler for this?

So I am not seeing your solution.

I am afraid the options here have overcome me.
If you give me settings I should try for
1. NavigateOptions (all the parts)
2. EditLinksAuto
3. EditLinks
4 AlwaysShowEditor
I will look more.

Thanks again,


> I am hoping that you think this is an acceptable work around (since I
> cannot think of any other way to resolve the problem).
> Given that you do accept the idea, I propose to make a public function
> on IB_Grid which will simulate the tab-forward/backward as you see
> with the existing ShowMemoEditor function. The idea being that you
> would call that function from your own code if your particular setup
> experiences this problem.
> I thought about embedding automation directly within the event handler
> code, but that opens risks of problems when the OnEditButton event
> does other things.
> Does this sound OK?
> --
> Geoff Worboys
> Telesis Computing
> IB Objects - direct, complete, custom connectivity to Firebird or
> without the need for BDE, ODBC or any other layer.
> - your IBO community resource for Tech Info
> keyword-searchable FAQ, community code contributions and more !
> Your use of Yahoo! Groups is subject to