Sometimes the WHEN event simplifies control access for me.
procedure MyTextBoxWhen
RETURN IsItOkaytoAllowFocus()
ENDPROC
The IsItOkay... function could assess your state requirements, and block or allow a "focus" via tab, mouse or enter.
>Hi
>
>If you set the TabStop property to false for a container then pressing the Tab key inside the container does not move you to the next control in the container. Instead it jumps out of the container to another object.
>
>I expected the behaviour to be that I could not tab to the container control but once a control in the container had focus I should be able to tab to the next control in the same container. If I wanted to prevent this behaviour I could set the TabStop property to false for each of the controls in the container.
>
>The present implementation appears flawed to me.
>
>Simon
Imagination is more important than knowledge