Page 1 of 1

Active get of getlist

Posted: Tue Feb 26, 2013 3:02 am
by c-tec
Hello,
how can I get the actual active get of a getlist ? with dc_getactive() I get always NIL. Or is there another way to check the getlist for the active get ?
regards
Rudolf

Re: Active get of getlist

Posted: Tue Feb 26, 2013 8:07 am
by rdonnay
Try DC_GetEditActive()

Re: Active get of getlist

Posted: Wed Feb 27, 2013 2:59 am
by c-tec
Hello Roger,
I get always NIL back. Can I go throug the getlist array do determine the active get ?
regards
Rudolf

Re: Active get of getlist

Posted: Wed Feb 27, 2013 3:30 am
by Tom
DC_GetEditActive(o) awaits an object as parameter. It tests whether the object (a DCGET, so a XbpSLE) is currently the active object or not. You need to know the objects to check for.

If you want to know which object on the getlist currently has the input focus, you may add a custom handler and catch xbeP_SetInputFocus there.

Re: Active get of getlist

Posted: Wed Feb 27, 2013 8:05 am
by rdonnay
DC_EditControlLastFocus() should do it. I made a mistake.

Re: Active get of getlist

Posted: Thu Feb 28, 2013 2:16 am
by c-tec
Hello,
non of the eXprss++ functions is working, I made like Tom suggested a solution with gotfocus to save the last getobject.

regards
Rudolf

Re: Active get of getlist

Posted: Thu Feb 28, 2013 6:53 am
by Cliff Wiernik
I Use DC_EditcontrollastFocus() without problems, need to pass the getlist array.

Re: Active get of getlist

Posted: Fri Mar 01, 2013 7:20 am
by c-tec
Hello,
its strange that none of all the eXpress++ functions is working. But with gotfocus I can handle it much better, so the problem for me is solved.
regards
Rudolf