Moon Wizard
March 28th, 2009, 00:40
There are several windows in the 4E_JPG ruleset where the view on a page changes based on the value of a radio button. (i.e. Items can be of type Weapon, Armor or Other) The fields displayed on the items sheet vary depending on which radio button is selected.
The easiest way to accomplish this was through the use of the setVisible command to hide/show the appropriate fields when the radio button value is changed.
However, when setting up the tab order in the XML, you can only specify one field as the target for prev/next tab. When fields are hidden, they can still be tabbed to, even though you can't see them gain focus. This makes editing of pages with dynamic hidden fields to be challenging.
Has anybody figured out how to get tabbing to work around hidden fields?
I was thinking that I could build a custom tab mapping in the window class, and just pass the individual onTab events to the parent window. However, the numbercontrol field does not support the onTab callback. Also, the onGainFocus callback is not supported either, so no way to determine if it gets focus while invisible.
Thanks,
JPG
The easiest way to accomplish this was through the use of the setVisible command to hide/show the appropriate fields when the radio button value is changed.
However, when setting up the tab order in the XML, you can only specify one field as the target for prev/next tab. When fields are hidden, they can still be tabbed to, even though you can't see them gain focus. This makes editing of pages with dynamic hidden fields to be challenging.
Has anybody figured out how to get tabbing to work around hidden fields?
I was thinking that I could build a custom tab mapping in the window class, and just pass the individual onTab events to the parent window. However, the numbercontrol field does not support the onTab callback. Also, the onGainFocus callback is not supported either, so no way to determine if it gets focus while invisible.
Thanks,
JPG