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


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

bbrowser 4 RowSelect Event

Started bysiegfried.reichmann@aon.at
First post2015-06-08 01:55 -0700
Last post2015-06-09 00:41 -0700
Articles 10 — 5 participants

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


Contents

  bbrowser 4  RowSelect Event siegfried.reichmann@aon.at - 2015-06-08 01:55 -0700
    Re: bbrowser 4  RowSelect Event siegfried.reichmann@aon.at - 2015-06-08 04:59 -0700
      Re: bbrowser 4 RowSelect Event "Wolfgang Riedmann" <wriedmann@gmail.com> - 2015-06-08 15:30 +0200
        Re: bbrowser 4 RowSelect Event Siegfried Reichmann <siegfried.reichmann@aon.at> - 2015-06-08 07:55 -0700
          Re: bbrowser 4 RowSelect Event "Wolfgang Riedmann" <wriedmann@gmail.com> - 2015-06-08 17:43 +0200
            Re: bbrowser 4 RowSelect Event Siegfried Reichmann <siegfried.reichmann@aon.at> - 2015-06-08 11:33 -0700
    Re: bbrowser 4  RowSelect Event D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2015-06-08 14:01 +0200
      Re: bbrowser 4  RowSelect Event Siegfried Reichmann <siegfried.reichmann@aon.at> - 2015-06-08 07:59 -0700
    Re: bbrowser 4  RowSelect Event Joachim Bieler <support@votools.com> - 2015-06-09 07:22 +0200
      Re: bbrowser 4  RowSelect Event Siegfried Reichmann <siegfried.reichmann@aon.at> - 2015-06-09 00:41 -0700

#8171 — bbrowser 4 RowSelect Event

Fromsiegfried.reichmann@aon.at
Date2015-06-08 01:55 -0700
Subjectbbrowser 4 RowSelect Event
Message-ID<98953d4b-3f6b-43a5-856f-0812d5632f29@googlegroups.com>
Hello all,

I have two bbrowser controls on one window with a parent child connection.

How can I identify the sender of the event? Or is it possible to define different RowSelect Events for each bbrowser control?

Can anyone help?

Thanks in advance
Siegfried

[toc] | [next] | [standalone]


#8172

Fromsiegfried.reichmann@aon.at
Date2015-06-08 04:59 -0700
Message-ID<498bd7dc-dca5-47d9-8b42-a7da687a9985@googlegroups.com>
In reply to#8171
Am Montag, 8. Juni 2015 10:56:00 UTC+2 schrieb siegfried...@aon.at:
> Hello all,
> 
> I have two bbrowser controls on one window with a parent child connection.
> 
> How can I identify the sender of the event? Or is it possible to define different RowSelect Events for each bbrowser control?
> 
> Can anyone help?
> 
> Thanks in advance
> Siegfried

It seems that I am using bbrowser 2. Did not find a version number in the installed bbrowser (Version (Info) is empty everywhere. But the invoice I found is for bbrowser 2, so I resume, I need a solution for bbrowser 2. 

Siegfried

[toc] | [prev] | [next] | [standalone]


#8175 — Re: bbrowser 4 RowSelect Event

From"Wolfgang Riedmann" <wriedmann@gmail.com>
Date2015-06-08 15:30 +0200
SubjectRe: bbrowser 4 RowSelect Event
Message-ID<ctljnaFqhm6U1@mid.individual.net>
In reply to#8172
Hi Siegfried,

the bRowEvent is inherited from ControlEvent, and therefore the
Event:NameSym or Event:Name should return the name of the calling
control.

HTH

Wolfgang

siegfried.reichmann@aon.at wrote:

> Am Montag, 8. Juni 2015 10:56:00 UTC+2 schrieb siegfried...@aon.at:
> > Hello all,
> > 
> > I have two bbrowser controls on one window with a parent child
> > connection.
> > 
> > How can I identify the sender of the event? Or is it possible to
> > define different RowSelect Events for each bbrowser control?
> > 
> > Can anyone help?
> > 
> > Thanks in advance
> > Siegfried
> 
> It seems that I am using bbrowser 2. Did not find a version number in
> the installed bbrowser (Version (Info) is empty everywhere. But the
> invoice I found is for bbrowser 2, so I resume, I need a solution for
> bbrowser 2.
> 
> Siegfried



-- 

[toc] | [prev] | [next] | [standalone]


#8176 — Re: bbrowser 4 RowSelect Event

FromSiegfried Reichmann <siegfried.reichmann@aon.at>
Date2015-06-08 07:55 -0700
SubjectRe: bbrowser 4 RowSelect Event
Message-ID<3f3a2faa-3a3c-4855-8f32-9639a2bf2c86@googlegroups.com>
In reply to#8175
Am Montag, 8. Juni 2015 15:30:19 UTC+2 schrieb Wolfgang Riedmann:
> Hi Siegfried,
> 
> the bRowEvent is inherited from ControlEvent, and therefore the
> Event:NameSym or Event:Name should return the name of the calling
> control.
> 
> HTH
> 
> Wolfgang
> 
> siegfried.reichmann@aon.at wrote:
> 
> > Am Montag, 8. Juni 2015 10:56:00 UTC+2 schrieb siegfried...@aon.at:
> > > Hello all,
> > > 
> > > I have two bbrowser controls on one window with a parent child
> > > connection.
> > > 
> > > How can I identify the sender of the event? Or is it possible to
> > > define different RowSelect Events for each bbrowser control?
> > > 
> > > Can anyone help?
> > > 
> > > Thanks in advance
> > > Siegfried
> > 
> > It seems that I am using bbrowser 2. Did not find a version number in
> > the installed bbrowser (Version (Info) is empty everywhere. But the
> > invoice I found is for bbrowser 2, so I resume, I need a solution for
> > bbrowser 2.
> > 
> > Siegfried
> 
> 
> 
> --

Hi Wolfgang,

unfortunately I am getting always BROWSER as name. Maybe I have done something not in the correct way. Here is my RowSelect() Event.

METHOD RowSelect(oEvent) CLASS dlgTeilenDaten

LOCAL namesym	AS	SYMBOL
LOCAL Name 		AS STRING
LOCAL obRowEvent	AS bRowEvent
		
IF ( oEvent != NIL )
    obRowEvent := oEvent
    Name := obRowEvent:Control:Name 
    namesym := obRowEvent:Control:namesym 
ENDIF

Thank you
Siegfried

[toc] | [prev] | [next] | [standalone]


#8178 — Re: bbrowser 4 RowSelect Event

From"Wolfgang Riedmann" <wriedmann@gmail.com>
Date2015-06-08 17:43 +0200
SubjectRe: bbrowser 4 RowSelect Event
Message-ID<ctlrhcFsjirU1@mid.individual.net>
In reply to#8176
Hi Siegfried,

> > > > I have two bbrowser controls on one window with a parent child
> > > > connection.
> > > > 
> > > > How can I identify the sender of the event? Or is it possible to
> > > > define different RowSelect Events for each bbrowser control?
> > > > 
> > > > Can anyone help?
> > > > 
> > > > Thanks in advance
> > > > Siegfried
> > > 
> 
> unfortunately I am getting always BROWSER as name. Maybe I have done
> something not in the correct way. Here is my RowSelect() Event.

look at the Hyperlabel that is created for your controls. Do you have
them on a DataWindow, a DialogWindow or a SplitWindow?

If you are creating controls on the fly, you need to make sure to
attribute them different control names.

Wolfgang


-- 

[toc] | [prev] | [next] | [standalone]


#8179 — Re: bbrowser 4 RowSelect Event

FromSiegfried Reichmann <siegfried.reichmann@aon.at>
Date2015-06-08 11:33 -0700
SubjectRe: bbrowser 4 RowSelect Event
Message-ID<d168d09c-eeae-4872-9623-71cb1f6c346d@googlegroups.com>
In reply to#8178
> 
> look at the Hyperlabel that is created for your controls. Do you have
> them on a DataWindow, a DialogWindow or a SplitWindow?
> 
> If you are creating controls on the fly, you need to make sure to
> attribute them different control names.
> 

Hi Wolfgang,

I have added the bbrowser Controls in the painter, I have them on a dialog window. But one other I have on a data window, this gives also BROWSER back as the control name.

Here is the generated Definition, Resource and Init for the two bbrowser control. Bbrowser Version 2.

PROTECT oDCbbrBeratungsstellen AS BBROWSER
PROTECT oDCbbrDaten AS BBROWSER


CONTROL	"", DLGTEILENDATEN_VO_BBRBERATUNGSSTELLEN, "_VOCustomControl", 0x40810000L, 10, 196, 570, 126, WS_EX_CLIENTEDGE
CONTROL	"", DLGTEILENDATEN_VO_BBRDATEN, "_VOCustomControl", 0x40810000L, 10, 58, 635, 127, WS_EX_CLIENTEDGE


oDCbbrBeratungsstellen := bBrowser{SELF,ResourceID{DLGTEILENDATEN_VO_BBRBERATUNGSSTELLEN,_GetInst()}}
oDCbbrBeratungsstellen:HyperLabel := HyperLabel{#bbrBeratungsstellen,NULL_STRING,NULL_STRING,NULL_STRING}
oDCbbrBeratungsstellen:Font(aFonts[1], FALSE)

oDCbbrDaten := bBrowser{SELF,ResourceID{DLGTEILENDATEN_VO_BBRDATEN,_GetInst()}}
oDCbbrDaten:HyperLabel := HyperLabel{#bbrDaten,NULL_STRING,NULL_STRING,NULL_STRING}

Do you have another suggestion?

Thanks and greetings,
Siegfried

[toc] | [prev] | [next] | [standalone]


#8173

FromD.J.W. van Kooten <vankooten@removethis.ic2.com>
Date2015-06-08 14:01 +0200
Message-ID<2q0bnapjtpkc5meafd95cdgitvk5galjvh@4ax.com>
In reply to#8171
On Mon, 8 Jun 2015 01:55:59 -0700 (PDT), siegfried.reichmann@aon.at
wrote:

Hello Siegfried,
>
>I have two bbrowser controls on one window with a parent child connection.
>
>How can I identify the sender of the event? Or is it possible to define different RowSelect Events for each bbrowser control?
>
Not sure if there's a better method, but this works for us:

CLASS DoclinksBrowser2 INHERIT IC2bDataBrowser
//#s Subclass to recognize it in rowselect


METHOD ChkDoclinksBrowser2 CLASS DoclinksBrowser2
RETURN NIL    

and in the RowSelect:


IF IsMethod(bRowEvent:Control,#ChkDoclinksBrowser2)

So you just check if a specific method exist in the browser generating
the event and if so you know you have the right browser.

Dick

[toc] | [prev] | [next] | [standalone]


#8177

FromSiegfried Reichmann <siegfried.reichmann@aon.at>
Date2015-06-08 07:59 -0700
Message-ID<c1db9608-7b2c-4344-b514-67119fa3767a@googlegroups.com>
In reply to#8173
Hello Dick,

thanks for your suggestion, if I cannot find a better solution, I will try it this way.

Thanks,
Siegfried

[toc] | [prev] | [next] | [standalone]


#8181

FromJoachim Bieler <support@votools.com>
Date2015-06-09 07:22 +0200
Message-ID<ctnbg9F9n06U1@mid.individual.net>
In reply to#8171
Hi Siegfried,

bRowEvent is inherited from ControlEvent, so you can use oRowEvent:Control to identify the bBrowser 
controls. Try the source code below:

method RowSelect(oRowEvent) class myDataWindow
     if oRowEvent:Control = self:oDCbbrBeratungsstellen

     elseif oRowEvent:Control = self:oDCbbrDaten

     endif
     return NIL

Regards,
Joachim Bieler


Am 08.06.2015 um 10:55 schrieb siegfried.reichmann@aon.at:
> Hello all,
>
> I have two bbrowser controls on one window with a parent child connection.
>
> How can I identify the sender of the event? Or is it possible to define different RowSelect Events for each bbrowser control?
>
> Can anyone help?
>
> Thanks in advance
> Siegfried
>

[toc] | [prev] | [next] | [standalone]


#8182

FromSiegfried Reichmann <siegfried.reichmann@aon.at>
Date2015-06-09 00:41 -0700
Message-ID<0e6a76bf-8e51-458e-a5ba-8d76ca3827d6@googlegroups.com>
In reply to#8181
Hi Joachim,

works great,

thank you
Siegfried

> 
> method RowSelect(oRowEvent) class myDataWindow
>      if oRowEvent:Control = self:oDCbbrBeratungsstellen
> 
>      elseif oRowEvent:Control = self:oDCbbrDaten
> 
>      endif
>      return NIL

[toc] | [prev] | [standalone]


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


csiph-web