Subject Re: [IBO] Trouble with TDateTimeEnh
Author Geoff Worboys
Hi Paul,

>> If the keyboard based problem (tab not going to third column
>> when it should) continues let me know, but I could not
>> reproduce that problem here.
>>
> I am surprised you cant reproduce the problem since I was
> testing with a standard TIB_Grid and standard TIB_DateTimeEnh
> with no special settings. What exactly happens when you try
> it? - for me the third column is selected (in that it has
> gone blue with white text) but does not have focus until tab
> is pressed again (or repaint the window by hiding it with
> another and bringing it back). Is there any point sending
> you my demo?

I just checked my email history and see that last time we
discussed this you told me that you were using:

> IBO 4.7.16, FB 1.5 SQLDialect 1, Enh 2.2.1, D6,

I have been using FB 1.5 dialect 3 but dont think that will
be effecting the tab/grid/focus problem.

I do use Delphi 6, and my own copy of Enh has very little
different to 2.2.1. So the primary difference is that I am
still using IBO 4.6.Aa in the test set up that I was using.
(I have been meaning to update to 4.7.16 but that is still
in a separate/special testing configuration.)

One difference I see in IBO 4.7.16 is a change to the
TIB_CustomGrid.CreateParams procedure. See where ExStyle
has been altered to _exclude_ WS_EX_CONTROLPARENT (in order
to fix some other problem with context help). Try commenting
out that line of code in your copy and see if it effects the
focus behaviour on your grid.

(Note the MS help for this option says: "The window itself
contains child windows that should take part in dialog box
navigation. If this style is specified, the dialog manager
recurses into children of this window when performing
navigation operations such as handling the TAB key, an arrow
key, or a keyboard mnemonic.", so it seems quite likely to
have the effect you are seeing. If that is the case we
need to discuss the issue with Jason.)

(None of the other changes in ib_grid.pas seem likely to
effect the focus behaviour.)

--
Geoff Worboys
Telesis Computing