Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #11390
| From | "Karl-Heinz" <invalid@invalid.invalid> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: BBrowser, celledit, BEDIT_CREATE etc |
| Date | 2018-02-22 13:33 +0100 |
| 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> |
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
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