Page 1 of 1

DCCOMBOBOX always list down and mouse cursor marked

Posted: Fri Aug 25, 2017 12:22 pm
by Victorio
Is possible set COMBOBOX to type TYPE XBPCOMBO_LIST but with block editing field ?
Or TYPE XBPCOMBO_DROPDOWNLIST but with always list all fields and marked whem mouse movement via fields so as when move via buttons (DCADDBUTTON) ?

I found only 3 types XBPCOMBO, but LIST type have editing function, which I do not want.

Re: DCCOMBOBOX always list down and mouse cursor marked

Posted: Sat Aug 26, 2017 11:53 pm
by Wolfgang Ciriack
I use

Code: Select all

@1.00,1.80 DCCOMBOBOX v_auftyp LIST aAufTyp1 ;
     TYPE XBPCOMBO_SIMPLE ;
     IMMEDIATE ;
     PARENT oAufArtBox ;
     OBJECT oATyp ;
     REFRESH ;
     SIZE 16, 7.5 ;
     ITEMMARKED {|| .... } ;
     TABGROUP XBP_BEGIN_GROUP ;
     TABSTOP
and in the itemmarked block i set the items in the second Combobox depending on the selected item.

Re: DCCOMBOBOX always list down and mouse cursor marked

Posted: Sun Aug 27, 2017 11:34 am
by Victorio
Hi Wolfgang,

If you set type XBPCOMBO_SIMPLE , can you edit selected item in combobox ?
Because I can, and it is not good, because then user can write to selected cell. This have not any effect, only I want disable keyboard input when selecting in combobox.

Re: DCCOMBOBOX always list down and mouse cursor marked

Posted: Sun Aug 27, 2017 11:46 am
by Victorio
Solved !

I use this
STATIC FUNCTION myHandler( nEvent, mp1, mp2, oXbp )
IF nEvent == xbeP_Keyboard .AND. oXbp:isDerivedFrom('XbpComboBox')
RETURN DCGUI_IGNORE
ENDIF
RETURN DCGUI_NONE

from
http://bb.donnay-software.com/donnay/vi ... e+keyboard

And now work as I want, XBPCOMBO_SIMPLE with unwrapped combobox and with keyboard input disabled in cell space.

Thanks