- Tracy Lamb
- PowerBuilder
- Wednesday, 3 August 2022 05:24 PM UTC
Hi all,
So my Beta Tester found something strange (and unacceptable) in one of my windows. In the app, there are 4 windows each with a folder object. Each folder object is inherited from the pfc's u_tab object. This strange behavior is only happening in one of them.
When editing a dw in any of the tabs, clicking the keyboard TAB is taking them back to the tab page, not the next field.
The only thing I can think of is it's related to the key pressed? I have some code in the KEY event on the folder object:
CHOOSE CASE key
CASE KeyF1!
this.SelectTab(1)
idw_1.SetFocus()
CASE keyF2!
this.SelectTab(2)
idw_2.SetFocus()
CASE keyF3!
this.SelectTab(3)
idw_3.SetFocus()
CASE keyF4!
this.SelectTab(4)
idw_4.SetFocus()
CASE keyF5!
this.SelectTab(5)
idw_5.SetFocus()
CASE keyF6!
this.SelectTab(6)
idw_6.SetFocus()
CASE keyF7!
this.SelectTab(7)
idw_7.SetFocus()
CASE keyF8!
this.SelectTab(8)
idw_8.SetFocus()
CASE keyF9!
this.SelectTab(9)
idw_9.SetFocus()
CASE ELSE
return 0
END CHOOSE
return 0
I tried deleting that code from the tab object and putting it in each dw... user event ue_keypress tied to pbm_dwnkey. No luck.
Any thoughts would be appreciated.
~~~Tracy
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.