Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Urs Eggmann" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: Firing CellEdit() Date: Fri, 1 May 2015 22:36:54 +0200 Lines: 91 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=original Content-Transfer-Encoding: 7bit X-Trace: individual.net wmg/pk3Ok3+PSt9yxZ+4vQB9sruNA6AKOm8u4rBuNM5+lQJZO7 Cancel-Lock: sha1:t7uDZf9NQOviUiaJbeIpOv21VY4= X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: csiph.com comp.lang.clipper.visual-objects:8030 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" 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 >> >>