Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #10311 > unrolled thread

#PushButtom in bBrowser

Started byzodcomag@gmail.com
First post2017-03-20 14:58 -0700
Last post2017-03-21 09:17 +0100
Articles 2 — 2 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  #PushButtom in bBrowser zodcomag@gmail.com - 2017-03-20 14:58 -0700
    Re: #PushButtom in bBrowser "Karl-Heinz" <invalid@invalid.invalid> - 2017-03-21 09:17 +0100

#10311 — #PushButtom in bBrowser

Fromzodcomag@gmail.com
Date2017-03-20 14:58 -0700
Subject#PushButtom in bBrowser
Message-ID<b3fe3c77-b7fc-42aa-85d5-c749bd1f5995@googlegroups.com>
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.

Thanks
Henry

[toc] | [next] | [standalone]


#10312

From"Karl-Heinz" <invalid@invalid.invalid>
Date2017-03-21 09:17 +0100
Message-ID<ejc5thFqbvU1@mid.individual.net>
In reply to#10311
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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web