I instantiate NewWindow from DetailWindow so I can use it to create, update, delete, several tables in a database (e.g. customers, suppliers, ZIP codes, ). On DetailWindow there is one Listbox, one Label and one Textfield. The Listbox is dynamically files with the data from the table. Labels and Textfield are dynamically (Control sets) generated based on the number of columns in the ListBox. This works well
When making the Window visible, I want to set the focus on the first row of the ListBox (ListBox1.SetFocus) .However the focus always starts on the first Textfield. Tabbing works well and goes through all textfields and ends on the ListBox. When reaching the ListBox, tabbing is not available anymore. What’s is going wrong? How to set focus on ListBox when starting the window? How to reactivate the tabbing when the focus reaches the ListBox?
What OS? I have the same focus problem in a Cocoa app but it works correctly in Carbon. My ugly workaround was to start a single-shot short-period timer at the end of Open which just sets the focus.
Eli, Thank you. Do you know they already changed this in Xojo?
[quote]UPDATE: After considering feedback from the community, we have decided to rollback this change in R1. We are working on an update (R1.1) that will re-enable the ability to set the tab order once again. We have found a way to provide the default tab order along with a custom tab order option (the one you have now) which we will add to a future version[/quote].