Re: lost focus
- Posted by Derek Parnell <ddparnell at bigpond.com> Dec 24, 2004
- 550 views
George Walters wrote: > > > When program 1 runs program 2 which does it's stuff then terminates, the > setFocus(idList) on program 1 does not work under certain circumstances. If > I look at program 2's screen for more that about 15 seconds, the setFocus in > program > 1 does not work. If I return to immediately from program 2 to program 1 then > idList > does have > the focus and works properly. Any idea's how to fix this? > > }}} <eucode> > --------------------------------- Drill Down api030b > -------------------------------- > procedure processDrill(integer self, integer event, sequence args) > integer retCode, index > > index = getIndex(idList) > if index > lnCount then > -- do nothing > else > dbKey = drillTable[index] > retCode = system_exec("exw.exe "&"opi030b.exw " & str(selectType) & " " & > dbKey ,0) > if retCode != 0 then > tmp = message_box("Program error link not found","",0) > end if > end if > > setFocus(idList) > > end procedure > </eucode> {{{ Try setting focus to the window that contains the idList before setting focus to the list. I'm not sure if that is what you are after. -- Derek Parnell Melbourne, Australia