Subject | RE: [IBO] Trouble with TDateTimeEnh |
---|---|
Author | Paul Hope |
Post date | 2007-04-20T07:49:01Z |
Hello Geoff
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
>It appears to a random timing thing. I can click the drop down button then
> > 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.
>
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