From: AarKayCee on
Hi Group,

Want some to help me giving tips asto following problem:
I have two bBrowser controls in a data window. I want to show
highlight cursor only in bBrowser control which has focus. So how can
I remove the highlight cursor from other bBrowser coltrol which is out
of focus.

I also have to ascertain the which bBrowser control out of two
bBrowser controls was clicked in a method associated to a push button
on the same data window. How can I achive it, help and oblige.

AarKayCee
From: Geoff Schaller on
Dear Nameless.

Firstly, you are working with a very old version of bBrowser so most of
us can really help from the current structure and methods. However, let
me try to assist. I am assuming you have loaded and run all the source
code samples that come with it?

> highlight cursor only in bBrowser control which has focus. So how can
> I remove the highlight cursor from other bBrowser coltrol which is out
> of focus.

obBrowser:SelectionRemove() - please review the help on this method

> I also have to ascertain the which bBrowser control out of two
> bBrowser controls was clicked in a method associated to a push button
> on the same data window. How can I achive it, help and oblige.

Show us the code you are using. CellDoubleClick, RowSelect and other
handlers all get passed an object of type ControlEvent. From the help
you will know that this can give you the control that caused the event:

oControl = oControlEvent:Control

If oControl = self:oDCBrowser1
///.....

Etc.

Cheers,

Geoff



From: Joachim Bieler on
Hi AarKayCee,

> Want some to help me giving tips asto following problem:
> I have two bBrowser controls in a data window. I want to show
> highlight cursor only in bBrowser control which has focus. So how can
> I remove the highlight cursor from other bBrowser coltrol which is out
> of focus.

Perhaps bBrowser:InactiveSelectedForeground and bBrowser:InactiveSelectedBackground could help.


> I also have to ascertain the which bBrowser control out of two
> bBrowser controls was clicked in a method associated to a push button
> on the same data window. How can I achive it, help and oblige.

See the reply from Geoff.

Regards
Joachim Bieler



Am 26.06.2010 08:39, schrieb AarKayCee:
> Hi Group,
>
> Want some to help me giving tips asto following problem:
> I have two bBrowser controls in a data window. I want to show
> highlight cursor only in bBrowser control which has focus. So how can
> I remove the highlight cursor from other bBrowser coltrol which is out
> of focus.
>
> I also have to ascertain the which bBrowser control out of two
> bBrowser controls was clicked in a method associated to a push button
> on the same data window. How can I achive it, help and oblige.
>
> AarKayCee