Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Karl-Heinz" 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: References: <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 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