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


Groups > comp.lang.clipper.visual-objects > #1653

Re: bBrowser search and retrieve

From "Jamal" <vodotnet_nospam@yahoo.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: bBrowser search and retrieve
Date 2011-07-08 15:34 -0400
Organization A noiseless patient Spider
Message-ID <iv7m44$7rt$1@dont-email.me> (permalink)
References <f3bb48b4-4bcb-4c00-851f-c03dc5b15644@v12g2000vby.googlegroups.com> <iv2vad$b13$1@news-1.m-online.net> <2facc909-d29a-47d0-87fb-189a991a99ad@h12g2000vbx.googlegroups.com> <yxsRp.8137$aH5.3735@viwinnwfe02.internal.bigpond.com> <ae33b783-9b4e-4c69-8f0b-567b0a51bb6b@g2g2000vbl.googlegroups.com>

Show all headers | View raw


Look at the bBrowser sample namely bSample - Edit.
Then see how to create your edit control, etc. in dtwExpandingMLE (Window) 
module. It involves the CellEdit( ) method and creating a subclass to handle 
and dispatch.

Jamal


"Grant"  wrote in message 
news:ae33b783-9b4e-4c69-8f0b-567b0a51bb6b@g2g2000vbl.googlegroups.com...

On Jul 7, 5:52 pm, "Stephen Quinn" <stevej...@bigpondSPAM.net.au>
wrote:
> Grant
>
>
>
> I made and registered an EventHandler as you outlines but I had
> trouble building a search string within the eventhandler method. It
> takes the first character entered but I couldn't get the next ones to
> append to build the search string.
> <<
>
> Are you setting focus to the SLE after getting the first character??
> If so that's your problem as the Browser no longer has focus, so the
> following test fails.
>     > IF oEvent:Window == SELF:oDCbBrowser .AND. oEvent:wParam >=32
>
> CYA
> Steve

Hi Steve

Your probably right but I don't know how to control the focus. If I
type a series of characters in the cell of the browser the first one
registers with the EventHandler method but subsequent ones don't. The
cell still has focus to enter data but to get the EventHandler to
accept a character at the cSearch level I have to change to the next
cell and then again it only sees the first one so I can't build a
search string there. Here is what I tried:
    IF oEvent:uMsg == WM_CHAR
IF oEvent:Window == self:oDCbBrowser1 .and. oEvent:wParam >= 32
? cSearch += Upper(CHR(oEvent:wParam))
self:SetFocus(oDCbBrowser1)
ENDIF
ENDIF
cSearch is global and I was displaying the cSearch result which only
builds by changing cells/columns in the browser. 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

bBrowser search and retrieve Grant <grantd@dunsmoreinfo.com> - 2011-07-06 14:47 -0700
  Re: bBrowser search and retrieve "Gerhard Bunzel" <g.bunzel@domonet.de> - 2011-07-07 02:40 +0200
    Re: bBrowser search and retrieve Grant <grantd@dunsmoreinfo.com> - 2011-07-07 16:00 -0700
      Re: bBrowser search and retrieve "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> - 2011-07-08 10:52 +1000
        Re: bBrowser search and retrieve Grant <grantd@dunsmoreinfo.com> - 2011-07-08 10:57 -0700
          Re: bBrowser search and retrieve "Jamal" <vodotnet_nospam@yahoo.com> - 2011-07-08 15:34 -0400
          Re: bBrowser search and retrieve "Gerhard Bunzel" <g.bunzel@domonet.de> - 2011-07-08 22:04 +0200
            Re: bBrowser search and retrieve Grant <grantd@dunsmoreinfo.com> - 2011-07-08 14:56 -0700
          Re: bBrowser search and retrieve "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> - 2011-07-09 11:29 +1000
            Re: bBrowser search and retrieve "richard.townsendrose" <richard.townsendrose@gmail.com> - 2011-07-09 03:53 -0700

csiph-web