Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #8022 > unrolled thread
| Started by | James Martin <james@northwoodlumber.com> |
|---|---|
| First post | 2015-04-30 11:25 -0400 |
| Last post | 2015-05-07 11:42 -0400 |
| Articles | 20 — 4 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
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
| From | James Martin <james@northwoodlumber.com> |
|---|---|
| Date | 2015-04-30 11:25 -0400 |
| Subject | Firing CellEdit() |
| Message-ID | <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
[toc] | [next] | [standalone]
| From | "Jamal Assaf" <someone@example.com> |
|---|---|
| Date | 2015-04-30 16:51 -0400 |
| Message-ID | <mhu4k5$lja$1@news.albasani.net> |
| In reply to | #8022 |
bBrowser invokes the CellEdit() that's defined for the owner window; i.e. each tab must have its own CellEdit() method. HTH, 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
[toc] | [prev] | [next] | [standalone]
| From | James Martin <james@northwoodlumber.com> |
|---|---|
| Date | 2015-04-30 17:06 -0400 |
| Message-ID | <mhu542$v94$1@dont-email.me> |
| In reply to | #8023 |
That's what I have done. James On 15-04-30 04:51 PM, Jamal Assaf wrote: > bBrowser invokes the CellEdit() that's defined for the owner window; > i.e. each tab must have its own CellEdit() method. > > HTH, > 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
[toc] | [prev] | [next] | [standalone]
| From | "Jamal Assaf" <someone@example.com> |
|---|---|
| Date | 2015-04-30 21:08 -0400 |
| Message-ID | <mhujle$7ao$1@news.albasani.net> |
| In reply to | #8024 |
If you wish, you can email me a text aef, I'll have a look at vodotnet @...gmail... Of course, you may want to email Joachim with a reproducible example. I can only work with version bBrowser 4.x. "James Martin" wrote in message news:mhu542$v94$1@dont-email.me... That's what I have done. James On 15-04-30 04:51 PM, Jamal Assaf wrote: > bBrowser invokes the CellEdit() that's defined for the owner window; > i.e. each tab must have its own CellEdit() method. > > HTH, > 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
[toc] | [prev] | [next] | [standalone]
| From | James Martin <james@northwoodlumber.com> |
|---|---|
| Date | 2015-05-01 08:16 -0400 |
| Message-ID | <mhvqdc$ego$1@dont-email.me> |
| In reply to | #8025 |
I can send you the application. It is not rocket science. Let me know and I'll send it. James On 15-04-30 09:08 PM, Jamal Assaf wrote: > If you wish, you can email me a text aef, I'll have a look at vodotnet > @...gmail... > Of course, you may want to email Joachim with a reproducible example. > > I can only work with version bBrowser 4.x. > > "James Martin" wrote in message news:mhu542$v94$1@dont-email.me... > > That's what I have done. > > James > > On 15-04-30 04:51 PM, Jamal Assaf wrote: >> bBrowser invokes the CellEdit() that's defined for the owner window; >> i.e. each tab must have its own CellEdit() method. >> >> HTH, >> 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 >
[toc] | [prev] | [next] | [standalone]
| From | "Urs Eggmann" <Urs.Eggmann@shinternet.ch> |
|---|---|
| Date | 2015-05-01 15:28 +0200 |
| Message-ID | <cqhde1Fs99gU1@mid.individual.net> |
| In reply to | #8026 |
Hi James, I just wrorte a little TestApp with a TabControl tsp1 and three tabs. Each tab has a datawindow called tsb1_Page10 , tsb1_Page20, tsb1_Page30 with the three appropriate CellEdit-Methods. METHOD Celledit(oCellEditEvent) CLASS tsb1_Page10 // do something for this Window RETURN TRUE METHOD Celledit(oCellEditEvent) CLASS tsb1_Page20 // do something for this Window RETURN TRUE METHOD Celledit(oCellEditEvent) CLASS tsb1_Page30 ? SELF:CurrentControl:Server ? SELF:CurrentControl:Name ? oCellEditEvent:EditControl // do something for this Window and a specific Browser RETURN TRUE The third tab has twoo browsers. As you can see, with the oCellEditEvent you can get some information in which Browser the doubleclick ocurred. HTH Urs
[toc] | [prev] | [next] | [standalone]
| From | James Martin <james@northwoodlumber.com> |
|---|---|
| Date | 2015-05-01 11:28 -0400 |
| Message-ID | <mi05ls$ouv$1@dont-email.me> |
| In reply to | #8027 |
I have a button on the datawindow that does this:
METHOD UpdatePrices CLASS PriceTab_Siding
SELF:oDCDataBrowser1:Editable := TRUE
SELF:oDCDataBrowser1:Refresh()
SELF:oDCDataBrowser2:Editable := TRUE
SELF:oDCDataBrowser2:Refresh()
SELF:oDCDataBrowser3:Editable := TRUE
SELF:oDCDataBrowser3:Refresh()
SELF:oDCDataBrowser4:Editable := TRUE
SELF:oDCDataBrowser4:Refresh()
SELF:oDCDataBrowser5:Editable := TRUE
SELF:oDCDataBrowser5:Refresh()
SELF:Background := Brush{Color{255,255,128}}
SELF:Repaint()
RETURN NIL
The CellEdit() looks like this (sorry about the formatting):
METHOD CellEdit(oEvent) CLASS PRICETAB_Siding
// callback method for cell edit
LOCAL oColumn AS bDataColumn
InfoBox{SELF,"CellEdit","Here"}:Show()
// evaluate edit mode
IF oEvent:EditMode=BEDIT_CREATE
// create special edit controls
oColumn := oEvent:Control:GetOpenColumn(oEvent:EditCell:Column)
IF oColumn:ValType="D"
oEvent:EditControl :=
oEvent:Control:EditCreate(oEvent:EditCell:Column, oEvent:EditCell:Row,
oEvent:EditCell:RecNo, #DateTimePicker)
ENDIF
ENDIF
RETURN NIL
But the Infobox never gets called.
James
On 15-05-01 09:28 AM, Urs Eggmann wrote:
> Hi James,
>
> I just wrorte a little TestApp with a TabControl tsp1 and three tabs.
> Each tab has a datawindow called
> tsb1_Page10 , tsb1_Page20, tsb1_Page30 with the three appropriate
> CellEdit-Methods.
>
> METHOD Celledit(oCellEditEvent) CLASS tsb1_Page10
> // do something for this Window
> RETURN TRUE
>
> METHOD Celledit(oCellEditEvent) CLASS tsb1_Page20
> // do something for this Window
> RETURN TRUE
>
> METHOD Celledit(oCellEditEvent) CLASS tsb1_Page30
> ? SELF:CurrentControl:Server
> ? SELF:CurrentControl:Name
> ? oCellEditEvent:EditControl
> // do something for this Window and a specific Browser
> RETURN TRUE
>
> The third tab has twoo browsers. As you can see, with the oCellEditEvent
> you can get some information in which Browser the doubleclick ocurred.
>
> HTH
> Urs
>
>
[toc] | [prev] | [next] | [standalone]
| From | "Urs Eggmann" <Urs.Eggmann@shinternet.ch> |
|---|---|
| Date | 2015-05-01 22:36 +0200 |
| Message-ID | <cqi6fkF4d8jU1@mid.individual.net> |
| In reply to | #8028 |
Hi James,
I just made some short tests with your code in my sample. It seems to work.
I'll prepare a running sample for you, but give me one or two days....
Check your mail, I can not include binaries here.
regards
Urs
"James Martin" <james@northwoodlumber.com> schrieb im Newsbeitrag
news:mi05ls$ouv$1@dont-email.me...
>I have a button on the datawindow that does this:
>
> METHOD UpdatePrices CLASS PriceTab_Siding
>
> SELF:oDCDataBrowser1:Editable := TRUE
> SELF:oDCDataBrowser1:Refresh()
>
> SELF:oDCDataBrowser2:Editable := TRUE
> SELF:oDCDataBrowser2:Refresh()
>
> SELF:oDCDataBrowser3:Editable := TRUE
> SELF:oDCDataBrowser3:Refresh()
>
> SELF:oDCDataBrowser4:Editable := TRUE
> SELF:oDCDataBrowser4:Refresh()
>
> SELF:oDCDataBrowser5:Editable := TRUE
> SELF:oDCDataBrowser5:Refresh()
>
> SELF:Background := Brush{Color{255,255,128}}
> SELF:Repaint()
>
> RETURN NIL
>
> The CellEdit() looks like this (sorry about the formatting):
>
> METHOD CellEdit(oEvent) CLASS PRICETAB_Siding
> // callback method for cell edit
> LOCAL oColumn AS bDataColumn
>
> InfoBox{SELF,"CellEdit","Here"}:Show()
>
> // evaluate edit mode
> IF oEvent:EditMode=BEDIT_CREATE
> // create special edit controls
> oColumn := oEvent:Control:GetOpenColumn(oEvent:EditCell:Column)
> IF oColumn:ValType="D"
> oEvent:EditControl := oEvent:Control:EditCreate(oEvent:EditCell:Column,
> oEvent:EditCell:Row, oEvent:EditCell:RecNo, #DateTimePicker)
> ENDIF
> ENDIF
> RETURN NIL
>
> But the Infobox never gets called.
>
> James
>
>
> On 15-05-01 09:28 AM, Urs Eggmann wrote:
>> Hi James,
>>
>> I just wrorte a little TestApp with a TabControl tsp1 and three tabs.
>> Each tab has a datawindow called
>> tsb1_Page10 , tsb1_Page20, tsb1_Page30 with the three appropriate
>> CellEdit-Methods.
>>
>> METHOD Celledit(oCellEditEvent) CLASS tsb1_Page10
>> // do something for this Window
>> RETURN TRUE
>>
>> METHOD Celledit(oCellEditEvent) CLASS tsb1_Page20
>> // do something for this Window
>> RETURN TRUE
>>
>> METHOD Celledit(oCellEditEvent) CLASS tsb1_Page30
>> ? SELF:CurrentControl:Server
>> ? SELF:CurrentControl:Name
>> ? oCellEditEvent:EditControl
>> // do something for this Window and a specific Browser
>> RETURN TRUE
>>
>> The third tab has twoo browsers. As you can see, with the oCellEditEvent
>> you can get some information in which Browser the doubleclick ocurred.
>>
>> HTH
>> Urs
>>
>>
[toc] | [prev] | [next] | [standalone]
| From | "Allgemein" <g.bunzel@domonet.de> |
|---|---|
| Date | 2015-05-04 23:38 +0200 |
| Message-ID | <mi8os0$b7e$1@news.m-online.net> |
| In reply to | #8028 |
James,
...is every Tab-Window the Owner for all own bBrowser?
HTH
Gerhard Bunzel
"James Martin" schrieb im Newsbeitrag news:mi05ls$ouv$1@dont-email.me...
I have a button on the datawindow that does this:
METHOD UpdatePrices CLASS PriceTab_Siding
SELF:oDCDataBrowser1:Editable := TRUE
SELF:oDCDataBrowser1:Refresh()
SELF:oDCDataBrowser2:Editable := TRUE
SELF:oDCDataBrowser2:Refresh()
SELF:oDCDataBrowser3:Editable := TRUE
SELF:oDCDataBrowser3:Refresh()
SELF:oDCDataBrowser4:Editable := TRUE
SELF:oDCDataBrowser4:Refresh()
SELF:oDCDataBrowser5:Editable := TRUE
SELF:oDCDataBrowser5:Refresh()
SELF:Background := Brush{Color{255,255,128}}
SELF:Repaint()
RETURN NIL
The CellEdit() looks like this (sorry about the formatting):
METHOD CellEdit(oEvent) CLASS PRICETAB_Siding
// callback method for cell edit
LOCAL oColumn AS bDataColumn
InfoBox{SELF,"CellEdit","Here"}:Show()
// evaluate edit mode
IF oEvent:EditMode=BEDIT_CREATE
// create special edit controls
oColumn := oEvent:Control:GetOpenColumn(oEvent:EditCell:Column)
IF oColumn:ValType="D"
oEvent:EditControl :=
oEvent:Control:EditCreate(oEvent:EditCell:Column, oEvent:EditCell:Row,
oEvent:EditCell:RecNo, #DateTimePicker)
ENDIF
ENDIF
RETURN NIL
But the Infobox never gets called.
James
[toc] | [prev] | [next] | [standalone]
| From | "Jamal Assaf" <someone@example.com> |
|---|---|
| Date | 2015-05-01 15:51 -0400 |
| Message-ID | <mi0lgo$gp5$1@news.albasani.net> |
| In reply to | #8026 |
Sure. Please send it. Jamal "James Martin" wrote in message news:mhvqdc$ego$1@dont-email.me... I can send you the application. It is not rocket science. Let me know and I'll send it. James On 15-04-30 09:08 PM, Jamal Assaf wrote: > If you wish, you can email me a text aef, I'll have a look at vodotnet > @...gmail... > Of course, you may want to email Joachim with a reproducible example. > > I can only work with version bBrowser 4.x. > > "James Martin" wrote in message news:mhu542$v94$1@dont-email.me... > > That's what I have done. > > James > > On 15-04-30 04:51 PM, Jamal Assaf wrote: >> bBrowser invokes the CellEdit() that's defined for the owner window; >> i.e. each tab must have its own CellEdit() method. >> >> HTH, >> 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 >
[toc] | [prev] | [next] | [standalone]
| From | James Martin <james@northwoodlumber.com> |
|---|---|
| Date | 2015-05-01 17:08 -0400 |
| Message-ID | <mi0pis$ar2$1@dont-email.me> |
| In reply to | #8029 |
To what e-mail address? James On 15-05-01 03:51 PM, Jamal Assaf wrote: > Sure. Please send it. > > Jamal > > "James Martin" wrote in message news:mhvqdc$ego$1@dont-email.me... > > I can send you the application. It is not rocket science. Let me know > and I'll send it. > > James > > On 15-04-30 09:08 PM, Jamal Assaf wrote: >> If you wish, you can email me a text aef, I'll have a look at vodotnet >> @...gmail... >> Of course, you may want to email Joachim with a reproducible example. >> >> I can only work with version bBrowser 4.x. >> >> "James Martin" wrote in message news:mhu542$v94$1@dont-email.me... >> >> That's what I have done. >> >> James >> >> On 15-04-30 04:51 PM, Jamal Assaf wrote: >>> bBrowser invokes the CellEdit() that's defined for the owner window; >>> i.e. each tab must have its own CellEdit() method. >>> >>> HTH, >>> 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 >> >
[toc] | [prev] | [next] | [standalone]
| From | "Jamal Assaf" <someone@example.com> |
|---|---|
| Date | 2015-05-04 11:00 -0400 |
| Message-ID | <mi81j5$i61$1@news.albasani.net> |
| In reply to | #8031 |
vodotnet## @ ## gmail.com Remove the # signs. Jamal "James Martin" wrote in message news:mi0pis$ar2$1@dont-email.me... To what e-mail address? James On 15-05-01 03:51 PM, Jamal Assaf wrote: > Sure. Please send it. > > Jamal > > "James Martin" wrote in message news:mhvqdc$ego$1@dont-email.me... > > I can send you the application. It is not rocket science. Let me know > and I'll send it. > > James > > On 15-04-30 09:08 PM, Jamal Assaf wrote: >> If you wish, you can email me a text aef, I'll have a look at vodotnet >> @...gmail... >> Of course, you may want to email Joachim with a reproducible example. >> >> I can only work with version bBrowser 4.x. >> >> "James Martin" wrote in message news:mhu542$v94$1@dont-email.me... >> >> That's what I have done. >> >> James >> >> On 15-04-30 04:51 PM, Jamal Assaf wrote: >>> bBrowser invokes the CellEdit() that's defined for the owner window; >>> i.e. each tab must have its own CellEdit() method. >>> >>> HTH, >>> 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 >> >
[toc] | [prev] | [next] | [standalone]
| From | "Jamal Assaf" <someone@example.com> |
|---|---|
| Date | 2015-05-05 11:34 -0400 |
| Message-ID | <mianv1$23r$1@news.albasani.net> |
| In reply to | #8022 |
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
[toc] | [prev] | [next] | [standalone]
| From | James Martin <james@northwoodlumber.com> |
|---|---|
| Date | 2015-05-05 12:22 -0400 |
| Message-ID | <miaqbj$a15$1@dont-email.me> |
| In reply to | #8042 |
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
[toc] | [prev] | [next] | [standalone]
| From | "Jamal Assaf" <someone@example.com> |
|---|---|
| Date | 2015-05-05 13:08 -0400 |
| Message-ID | <miatf7$cpm$1@news.albasani.net> |
| In reply to | #8043 |
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
[toc] | [prev] | [next] | [standalone]
| From | James Martin <james@northwoodlumber.com> |
|---|---|
| Date | 2015-05-05 14:46 -0400 |
| Message-ID | <mib2pj$f6c$1@dont-email.me> |
| In reply to | #8044 |
But the problem is that CellEdit() never gets called at all. Could it be
that you have a newer version of bBrowser?
James
On 15-05-05 01:08 PM, Jamal Assaf wrote:
> 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
>
[toc] | [prev] | [next] | [standalone]
| From | "Jamal Assaf" <someone@example.com> |
|---|---|
| Date | 2015-05-05 15:19 -0400 |
| Message-ID | <mib53b$rpq$1@news.albasani.net> |
| In reply to | #8045 |
I have version bBRowser 4, but it should not matter because the same in
older versions.
Did you make sure you removed the ContextMenu from owner tab and assigned it
every bBrowser control (in the properties window)?
I suggest you create a very small test. One window, with just 2 tabs using
bBrowser and VO code; nothing else.
Jamal
"James Martin" wrote in message news:mib2pj$f6c$1@dont-email.me...
But the problem is that CellEdit() never gets called at all. Could it be
that you have a newer version of bBrowser?
James
On 15-05-05 01:08 PM, Jamal Assaf wrote:
> 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
>
[toc] | [prev] | [next] | [standalone]
| From | "Jamal Assaf" <someone@example.com> |
|---|---|
| Date | 2015-05-06 21:14 -0400 |
| Message-ID | <miee8t$5mc$1@speranza.aioe.org> |
| In reply to | #8022 |
For the sake of of providing a solution for others reading this thread, the solution is as follows: After oBrowser:Editable := True, each column added to the bBrowser control, set oCol:Editable := True This applies to all bBrowser controls on all tab pages. 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
[toc] | [prev] | [next] | [standalone]
| From | James Martin <james@northwoodlumber.com> |
|---|---|
| Date | 2015-05-07 08:07 -0400 |
| Message-ID | <mifk43$u62$1@dont-email.me> |
| In reply to | #8062 |
This applies especially to columns that are manually created. The ones
automatically created by:
oBr:Use(oDB1,{#Sized,#Bfmd})
already have the editable property set to true. That's why the one
browser worked.
Jamal, is this right?
James
On 15-05-06 09:14 PM, Jamal Assaf wrote:
> For the sake of of providing a solution for others reading this thread,
> the solution is as follows:
>
> After oBrowser:Editable := True, each column added to the bBrowser
> control, set oCol:Editable := True
>
> This applies to all bBrowser controls on all tab pages.
>
> 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
[toc] | [prev] | [next] | [standalone]
| From | "Jamal Assaf" <someone@example.com> |
|---|---|
| Date | 2015-05-07 11:42 -0400 |
| Message-ID | <mig15p$q30$1@speranza.aioe.org> |
| In reply to | #8063 |
This seems to be right.
"James Martin" wrote in message news:mifk43$u62$1@dont-email.me...
This applies especially to columns that are manually created. The ones
automatically created by:
oBr:Use(oDB1,{#Sized,#Bfmd})
already have the editable property set to true. That's why the one
browser worked.
Jamal, is this right?
James
On 15-05-06 09:14 PM, Jamal Assaf wrote:
> For the sake of of providing a solution for others reading this thread,
> the solution is as follows:
>
> After oBrowser:Editable := True, each column added to the bBrowser
> control, set oCol:Editable := True
>
> This applies to all bBrowser controls on all tab pages.
>
> 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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web