Tabs (PageNames) & Focus

shaneshane Member Posts: 20
I have a small problem but it’s driving me mad!

Navision 4.0 SP1 SQL

On the customer card I added a new tab (PageNames). To this tab I added two TextBox and a SubForm. I set the SubForm DelayedInsert = true.

When I select the tab the SubForm takes focus. I would like the TextBox to take focus. Changes to NextControl do not seem to help.

Any ideas?

Comments

  • themavethemave Member Posts: 1,058
    As far as I can tell, the control located Top left is the control the gets focus, on the tab.
  • shaneshane Member Posts: 20
    Thank you for your reply.

    Generally speaking I yes. It seems that in this case it has something to do with the SubForm. I have restored the form from backup and built it again just to ensure I didn’t miss anything. However, the problem is still the same.

    Is there an event fired when a tab is clicked that can be accessed programmably? Perhaps I can set focus at this point.
  • themavethemave Member Posts: 1,058
    sorry but I don't have access to cal code on forms, just an end user without developer license, so I can not say for sure,

    but you should look at the property on the form

    ActiveControlOnOpen

    this is used to set the focus on the entire form when it is opened, you may be able to create a similar function on a tab control.
Sign In or Register to comment.