that may or may not work;

"On Load" in the widget's context fires before any event in the parent's 
context, so it would be too early to "GOTO OBJECT" which would only be valid if 
the widget has focus in the parent's context.

and for clarification, the description about subforms in the documentation 
referred to list subforms, not widgets.

so the first thing to do is to have a GOTO_OBJECT_IN_SUBFORM method, which is a 
wrapper that runs the command in the specified subform.

the seconds thing to do is to call that method after moving the focus to the 
subform container in the parent context (perhaps you could do that in the "On 
Load" event of the parent form. logically, the subform container must be 
focusable (it can have no borders to hide the focus visualisation).

to help understand the double focus system, you could give the container a 
border style,
activate and monitor the "On Getting Focus" event for the container, which is 
always followed by the "On Activate" event for the widget.

> 2017/11/16 4:27、Jeremy Roussak via 4D_Tech <4d_tech@lists.4d.com> のメール:
> How about putting the GOTO OBJECT in the On load phase of the subform’s form 
> method?




**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to