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


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

Re: BBrowser, celledit, BEDIT_CREATE etc

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From "Karl-Heinz" <invalid@invalid.invalid>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: BBrowser, celledit, BEDIT_CREATE etc
Date Thu, 22 Feb 2018 13:33:35 +0100
Lines 45
Message-ID <ff7rm6F87vU1@mid.individual.net> (permalink)
References <d146c744-49c3-44fd-8c69-74a9b0403fec@googlegroups.com> <68f1386b-1d0b-42dd-a6c9-1f0a64d908cc@googlegroups.com> <263bbe18-048a-43a3-a070-1a55e783613a@googlegroups.com> <31711782-f811-4ae9-861c-e72d61d5d035@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; format=flowed; charset="UTF-8"; reply-type=original
Content-Transfer-Encoding 8bit
X-Trace individual.net bNJFGyZ8/o0EP/GaeshWbAjn15uL9wuJa5A/U6pl8YBdA14JM=
Cancel-Lock sha1:1UIhbQTnLynpBiZu7/QniMgbrsU=
In-Reply-To <31711782-f811-4ae9-861c-e72d61d5d035@googlegroups.com>
X-Priority 3
X-MSMail-Priority Normal
Importance Normal
X-Newsreader Microsoft Windows Live Mail 16.4.3564.1216
X-MimeOLE Produced By Microsoft MimeOLE V16.4.3564.1216
Xref csiph.com comp.lang.clipper.visual-objects:11390

Show key headers only | View raw


Hi Phil,

> Want only be have a user selectable picklist and not a typeable field
> Like a combobox style Dropdownlist.
>
> If you load sample.. can you tell me how to change sample to achieve this
> ?
>

here´s what i´ve tried, and it seems to work:


METHOD CellEdit(oEvent) CLASS dtwComboEdit
    LOCAL oColumn        AS bDataColumn

    IF oEvent:EditMode=BEDIT_CREATE
        oColumn := oEvent:Control:GetOpenColumn(oEvent:EditCell:Column)
        IF oColumn:FieldSym==#CITY

            //oEvent:EditControl :=
oEvent:Control:EditCreate(oEvent:EditCell:Column, oEvent:EditCell:Row,
oEvent:EditCell:RecNo, #bCityEdit)

                oEvent:EditControl :=
oEvent:Control:EditCreate(oEvent:EditCell:Column, oEvent:EditCell:Row,
oEvent:EditCell:RecNo, #combobox, CBS_SORT , BOXDROPDOWNLIST )

            //    oEvent:EditControl:fillusing ( SELF:oDCBrowser:server ,
#CITY , #CITY)  doesn´t seem to work ???

            // add some Citynames manually instead, whereby "Textvalue" and 
"Value" must be always the same   !

                oEvent:EditControl:fillusing ( {{ "San Diego", "San Diego" }
, {"Chicago" , "Chicago" } , { "Boston", "Boston" } , {"Portland" ,
"Portland" } } )

        ENDIF
    ENDIF
    RETURN NIL


regards
Karl-Heinz 

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


Thread

BBrowser, celledit, BEDIT_CREATE etc Sherlock <sherlock@sherlock.com.au> - 2018-02-20 23:13 -0800
  Re: BBrowser, celledit, BEDIT_CREATE etc "Karl-Heinz" <invalid@invalid.invalid> - 2018-02-21 09:30 +0100
  Re: BBrowser, celledit, BEDIT_CREATE etc Sherlock <sherlock@sherlock.com.au> - 2018-02-21 14:57 -0800
    Re: BBrowser, celledit, BEDIT_CREATE etc Sherlock <sherlock@sherlock.com.au> - 2018-02-21 16:44 -0800
      Re: BBrowser, celledit, BEDIT_CREATE etc Sherlock <sherlock@sherlock.com.au> - 2018-02-21 17:05 -0800
        Re: BBrowser, celledit, BEDIT_CREATE etc nicktekhne@googlemail.com - 2018-02-22 02:02 -0800
          Re: BBrowser, celledit, BEDIT_CREATE etc Sherlock <sherlock@sherlock.com.au> - 2018-02-22 02:09 -0800
        Re: BBrowser, celledit, BEDIT_CREATE etc "Karl-Heinz" <invalid@invalid.invalid> - 2018-02-22 13:33 +0100
          Re: BBrowser, celledit, BEDIT_CREATE etc "Karl-Heinz" <invalid@invalid.invalid> - 2018-02-22 14:44 +0100
            Re: BBrowser, celledit, BEDIT_CREATE etc "Karl-Heinz" <invalid@invalid.invalid> - 2018-02-22 17:02 +0100
              Re: BBrowser, celledit, BEDIT_CREATE etc Sherlock <sherlock@sherlock.com.au> - 2018-02-22 15:55 -0800
                Re: BBrowser, celledit, BEDIT_CREATE etc "Karl-Heinz" <invalid@invalid.invalid> - 2018-02-23 08:40 +0100
                Re: BBrowser, celledit, BEDIT_CREATE etc Sherlock <sherlock@sherlock.com.au> - 2018-02-23 05:49 -0800
                Re: BBrowser, celledit, BEDIT_CREATE etc "Karl-Heinz" <invalid@invalid.invalid> - 2018-02-24 19:50 +0100
                Re: BBrowser, celledit, BEDIT_CREATE etc "Karl-Heinz" <invalid@invalid.invalid> - 2018-02-25 12:07 +0100

csiph-web