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


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

Re: Firing CellEdit()

From James Martin <james@northwoodlumber.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Firing CellEdit()
Date 2015-05-01 11:28 -0400
Organization A noiseless patient Spider
Message-ID <mi05ls$ouv$1@dont-email.me> (permalink)
References (1 earlier) <mhu4k5$lja$1@news.albasani.net> <mhu542$v94$1@dont-email.me> <mhujle$7ao$1@news.albasani.net> <mhvqdc$ego$1@dont-email.me> <cqhde1Fs99gU1@mid.individual.net>

Show all headers | View raw


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
>
>

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


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