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
For Windows-type (i.e., not unique to PB) events, such as this one, a Return 1 indicates to Windows that the object/control did NOT elect to process the event, so Windows dutifully propagated the event up the parent object hierarchy, until the tab control received and processed it.