Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #8044
| From | "Jamal Assaf" <someone@example.com> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: Firing CellEdit() |
| Date | 2015-05-05 13:08 -0400 |
| Organization | albasani.net |
| Message-ID | <miatf7$cpm$1@news.albasani.net> (permalink) |
| References | <mhth3l$8uu$1@dont-email.me> <mianv1$23r$1@news.albasani.net> <miaqbj$a15$1@dont-email.me> |
Yes, it works here.
You need to see which bBrowser is active by testing oEvent:Control:Name, for
example:
METHOD CellEdit(oEvent) CLASS PriceTab_CedarDecking
// callback method for cell edit
LOCAL oColumn as bDataColumn
InfoBox{self,"CellEdit","Here: " + AsString(oEvent:Control:Name)}:Show()
IF oEvent:Control:Name == "DATABROWSER1"
IF OEVENT:EDITMODE=BEDIT_CREATE
// CREATE SPECIAL EDIT CONTROLS
OCOLUMN := OEVENT:CONTROL:GETOPENCOLUMN(OEVENT:EDITCELL:COLUMN)
OEVENT:EDITCONTROL :=
OEVENT:CONTROL:EDITCREATE(OEVENT:EDITCELL:COLUMN, OEVENT:EDITCELL:ROW,
OEVENT:EDITCELL:RECNO, #SingleLineEdit )
oEvent:EDITCONTROL:Background := Brush{Color{COLORGREEN}}
ENDIF
ELSEIF oEvent:Control:Name == "DATABROWSER2"
// your code...
ENDIF
RETURN nil
Jamal
"James Martin" wrote in message news:miaqbj$a15$1@dont-email.me...
Thanks for your response.
No, adding the context menu to the bBrowser did not change. Does it work
in your environment?
James
On 15-05-05 11:34 AM, Jamal Assaf wrote:
> After reviewing your code, the issue you are encountering is because you
> assigned the context menu to tab window instead of each bBrowser
> control. No wonder it did not work!
>
> In other words, each bBrowser must have the ContextMenu property set to
> PriceContextMenu which turn the edit mode on. Do not the context menu
> for the tab window.
>
> Let me know if this resolves your issue.
>
> Jamal
>
>
> "James Martin" wrote in message news:mhth3l$8uu$1@dont-email.me...
>
> I have an application that is simply a data window with many tabs. Each
> tab has one or more bBrowsers. I want to be able to edit the cells after
> a security login. However, only the bBrowser on the top tab fires the
> CellEdit() function. None of the other bBrowsers in any of the other
> tabs fires the CellEdit() function even though, as far as I can see the
> browser settings are the same.
>
> Does anyone have an idea what could prevent CellEdit() from being called?
>
> James
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Firing CellEdit() James Martin <james@northwoodlumber.com> - 2015-04-30 11:25 -0400
Re: Firing CellEdit() "Jamal Assaf" <someone@example.com> - 2015-04-30 16:51 -0400
Re: Firing CellEdit() James Martin <james@northwoodlumber.com> - 2015-04-30 17:06 -0400
Re: Firing CellEdit() "Jamal Assaf" <someone@example.com> - 2015-04-30 21:08 -0400
Re: Firing CellEdit() James Martin <james@northwoodlumber.com> - 2015-05-01 08:16 -0400
Re: Firing CellEdit() "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2015-05-01 15:28 +0200
Re: Firing CellEdit() James Martin <james@northwoodlumber.com> - 2015-05-01 11:28 -0400
Re: Firing CellEdit() "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2015-05-01 22:36 +0200
Re: Firing CellEdit() "Allgemein" <g.bunzel@domonet.de> - 2015-05-04 23:38 +0200
Re: Firing CellEdit() "Jamal Assaf" <someone@example.com> - 2015-05-01 15:51 -0400
Re: Firing CellEdit() James Martin <james@northwoodlumber.com> - 2015-05-01 17:08 -0400
Re: Firing CellEdit() "Jamal Assaf" <someone@example.com> - 2015-05-04 11:00 -0400
Re: Firing CellEdit() "Jamal Assaf" <someone@example.com> - 2015-05-05 11:34 -0400
Re: Firing CellEdit() James Martin <james@northwoodlumber.com> - 2015-05-05 12:22 -0400
Re: Firing CellEdit() "Jamal Assaf" <someone@example.com> - 2015-05-05 13:08 -0400
Re: Firing CellEdit() James Martin <james@northwoodlumber.com> - 2015-05-05 14:46 -0400
Re: Firing CellEdit() "Jamal Assaf" <someone@example.com> - 2015-05-05 15:19 -0400
Re: Firing CellEdit() "Jamal Assaf" <someone@example.com> - 2015-05-06 21:14 -0400
Re: Firing CellEdit() James Martin <james@northwoodlumber.com> - 2015-05-07 08:07 -0400
Re: Firing CellEdit() "Jamal Assaf" <someone@example.com> - 2015-05-07 11:42 -0400
csiph-web