Get ( TriggerTargetTabPanel ) – renamed to Get ( TriggerTargetTab ) in FM13 – returns the number (and name, if any) of the tab/panel the user clicked on; use this result to identify whether the user activated the panel with the embedded control.
Well, the problem is not identifying the panel with the embedded control so much as getting the cursor to stay in the field that is not on the tab control. Since the OnPanelSwitch event fires before the switch actually occurs, using code in that event's script to go to the field I want to activate doesn't do the job. The field does get activated, but then unactivated when the target panel of the tab control activates. Ideally, I would like an event that fires after the target panel is activated so as the final step in its script I can activate the field I need. It seemed like OnObjectEnter for the tab control would accomplish that, but it doesn't seem to fire when switching tab panels.
It seemed like OnObjectEnter for the tab control would accomplish that, but it doesn't seem to fire when switching tab panels.
Right; then try the OnObjectModify trigger:
If [ GetLayoutObjectAttribute ( "myTab" ; "isFrontTabPanel" ) ]
Go to Field [ myTable::myBarcodeReceptor ]
That was it. Thanks so much, erolst. Don't know why OnObjectModify didn't occur to me....