DCCOMBOBOX always list down and mouse cursor marked

This forum is for eXpress++ general support.
Post Reply
Message
Author
Victorio
Posts: 620
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

DCCOMBOBOX always list down and mouse cursor marked

#1 Post 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.

Wolfgang Ciriack
Posts: 478
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: DCCOMBOBOX always list down and mouse cursor marked

#2 Post 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.
_______________________
Best Regards
Wolfgang

Victorio
Posts: 620
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Re: DCCOMBOBOX always list down and mouse cursor marked

#3 Post 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.

Victorio
Posts: 620
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Re: DCCOMBOBOX always list down and mouse cursor marked

#4 Post 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

Post Reply