Subject RE: [IBO] Trouble with TDateTimeEnh
Author Paul Hope
Hello Geoff

>
> > I have a TDateTimeEnh in an IB_Grid. When selecting a date
> sometimes
> > its OK and sometimes I get a cant focus an invisible window error.
> > Problem is at
> ...
> > because Controller (the TDateTimeEnh) isnt visible any more.
> > I tried 'if refocus and controller.visible' but tthis
> allows focus to
> > leave the grid altogether. Becasue these components can be
> in a grid
> > or not I'm not sure how to fix it.
>
> You say that it is OK sometimes and not others. Are you able
> to work out which situations cause it troubles? If we can
> work out when the problem occurs we may find a way to force
> the close-up event to occur while the controller is still visible.
>
It appears to a random timing thing. I can click the drop down button then
click a date and the chances of it giving the error seem to about 50-50.

Does the controller have a grid property so something like 'if not visible
and on a grid then focus the grid'?

Regards
Paul