From: Paulo Oliveira on 5 Nov 2009 07:38 Hi all, I have a datawindow with 2 bbrowsers, using RowSelect(), how can i say if the event is from browser1 or browser2? TIA Paulo Oliveira
From: Camille Kater on 5 Nov 2009 08:12 Hi Paulo, oControl:=GetFocusedObject() if oControl=oDCBrowser1 ... else ... endif Camille Paulo Oliveira wrote: > Hi all, > > I have a datawindow with 2 bbrowsers, using RowSelect(), how can i say > if the event is from browser1 or browser2? > > TIA > Paulo Oliveira
From: Paulo Oliveira on 5 Nov 2009 08:47 Hi Cammile, Thanks, i use GetFocusedObject() all the time. I think i left my brain at home today :) Paulo
From: Bernhard Mayer on 5 Nov 2009 08:49 Hi Paulo, > I have a datawindow with 2 bbrowsers, using RowSelect(), how can i say > if the event is from browser1 or browser2? METHOD RowSelect(oEvent as bRowEvent) AS LOGIC PASCA CLASS dlgXY // a ControlEvent knows about the control firing the event IF oEvent:Control:NameSym = #bBBrowser1 ENDIF RETURN TRUE HTH, Bernhard
From: Geoff Schaller on 5 Nov 2009 16:02
No - don't do this. Use the method Bernhard shows. Focus change can before this event is called. (Not always but if the user is fast with keys....) "Camille Kater" <katercamXXX(a)pt.lu> wrote in message news:1257426928_89(a)vo.lu: > Hi Paulo, > > oControl:=GetFocusedObject() > if oControl=oDCBrowser1 > ... > else > ... > endif > > Camille > > Paulo Oliveira wrote: > > > Hi all, > > > > I have a datawindow with 2 bbrowsers, using RowSelect(), how can i say > > if the event is from browser1 or browser2? > > > > TIA > > Paulo Oliveira |