Page 1 of 1

Little bug in TComboBox

Posted: Thu Feb 16, 2006 9:45 am
by Enrico Maria Giordano
ESC key doesn't close the DIALOG if the focus is on a CBS_DROPDOWN combobox:

Code: Select all

#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL oDlg

    LOCAL cVar := ""

    DEFINE DIALOG oDlg

    @ 1, 1 COMBOBOX cVar;
           ITEMS { "First", "Second", "Third" };
           STYLE CBS_DROPDOWN

    @ 3, 1 BUTTON "&Close" ACTION oDlg:End()

    ACTIVATE DIALOG oDlg;
             CENTER

    RETURN NIL
EMG