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: Sat, 24 Feb 2018 19:50:09 +0100 Lines: 61 Message-ID: References: <68f1386b-1d0b-42dd-a6c9-1f0a64d908cc@googlegroups.com> <263bbe18-048a-43a3-a070-1a55e783613a@googlegroups.com> <31711782-f811-4ae9-861c-e72d61d5d035@googlegroups.com> <4833d81d-d1d0-43ca-9666-510b9b28bd88@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 Pf/g0N9sxsr6zCv+OhogCAn/E430xWgWem79CaCHlyvaRXblg= Cancel-Lock: sha1:fJxffaV9X2OAuU5IYoAQ/YoP4kU= In-Reply-To: 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:11423 Hi Phil, > One improvement in the Dispatch method would be to > simulate the Combobox automatically as though mouse click on it. on mouseclicks the sle behaves now the same way as the dropdown glyph does. Another enhancement is that you can now open the choice list with the key F4 too. A final solution would be to enhance the bBrowser class bComboEditChoice with the possibility to close the choice list not only with ESC but with F4 too. But that´s what i leave to you ;-) ------------------------ METHOD Dispatch ( oEvent ) CLASS bCityEdit DO CASE CASE oEvent:message == WM_KEYDOWN .OR. oEvent:message == WM_CHAR IF oEvent:wParam == VK_F4 SELF:OnChoiceOpen() ENDIF RETURN SELF:EventReturnValue := 1L CASE oEvent:message == WM_LBUTTONDOWN IF ! lChoiceOpen // protect var from the bBrowser class bComboEdit SELF:OnChoiceOpen() ENDIF RETURN SELF:EventReturnValue := 1L CASE oEvent:message == WM_LBUTTONDBLCLK // no selection allowed RETURN SELF:EventReturnValue := 1L CASE oEvent:message == WM_RBUTTONDOWN // surpress the Context menu RETURN SELF:EventReturnValue := 1L ENDCASE RETURN SUPER:Dispatch (oEvent ) regards Karl-Heinz