Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Karl-Heinz" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: #PushButtom in bBrowser Date: Tue, 21 Mar 2017 09:17:42 +0100 Lines: 32 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=original Content-Transfer-Encoding: 7bit X-Trace: individual.net Lfc+P3GlSkoilQE5Cg4jkw7nGe3d3qbokuvWUSAHq2e+p3hAs= Cancel-Lock: sha1:FhIR2wAXiwKrs0traAd5ZOfY0oo= In-Reply-To: X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 16.4.3564.1216 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3564.1216 Xref: csiph.com comp.lang.clipper.visual-objects:10312 Hi Henry, > I have declared one column in a bBrowser as #PushButton. > How do I go from the CellEdit() to my method DoSomething() ? > > I can catch the DoubleClick on the windows method "ButtonClick()", > but how can I know there from which bBrowser it arrived, and from > which PuschButton it arrives. All have the same ControlID 8001. Take a look at the properties that the Callbacks CellEdit(), CellClick() and CellDoubleClick() offer. METHOD CellEdit( oEvent ) CLASS YourWindow // METHOD CellClick( oEvent ) CLASS YourWindow // METHOD CellDoubleClick( oEvent ) CLASS YourWindow LOCAL dwRow, dwCol AS DWORD dwRow := oEvent:Control:CurrentRow dwCol := oEvent:Control:CurrentCOlumn SELF:Caption := "Browser: " + AsString ( oEvent:Control:namesym ) + " Row: " + NTrim ( dwRow ) + " Col: " + NTrim ( dwCol ) + " Server: " +AsString ( oEvent:Control:server ) + " Recno: " + NTrim ( oEvent:Control:Currentrecno ) RETURN TRUE regards Karl-Heinz