DCSAY...GET...COMBO addon

This forum is for eXpress++ general support.
Post Reply
Message
Author
fbaker
Posts: 20
Joined: Sun Mar 14, 2010 11:07 am

DCSAY...GET...COMBO addon

#1 Post by fbaker »

Hello Roger,

Any chance of adding IMMEDIATE to the COMBO clauses so as to eliminate one mouse click?

Thanks. Fred 331 / 252

User avatar
rdonnay
Site Admin
Posts: 4745
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DCSAY...GET...COMBO addon

#2 Post by rdonnay »

Add this to the beginning of your app:

DC_GetComboImmediate( .T. )
The eXpress train is coming - and it has more cars.

fbaker
Posts: 20
Joined: Sun Mar 14, 2010 11:07 am

Re: DCSAY...GET...COMBO addon

#3 Post by fbaker »

Roger,

A belated thank you.

Fred

fbaker
Posts: 20
Joined: Sun Mar 14, 2010 11:07 am

Re: DCSAY...GET...COMBO addon

#4 Post by fbaker »

Roger,

I guess I replied a little too soon. The DC_GetComboImmediate(.t.) immediately places the selected combo item in the Get box (so far so good) but does not remove the combo box itself hence requiring two clicks anyway. Can you retest this with something you have? I could probably make up some test code but my current coding is too complex to make a small test case.

Fred

User avatar
rdonnay
Site Admin
Posts: 4745
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DCSAY...GET...COMBO addon

#5 Post by rdonnay »

I thought I could do this easily, but this is really old code. DC_FindBrowse() was adapted to work as a combo box for a DCGET rather than writing new code for this. Currently, I am using the itemmarked clause of an XbpBrowse() object to exit immediately, but this event is fired even when you use the scroll bar of the browse, so that makes it impossible to scroll the window. Doing what you want would require a major rewrite.
The eXpress train is coming - and it has more cars.

fbaker
Posts: 20
Joined: Sun Mar 14, 2010 11:07 am

Re: DCSAY...GET...COMBO addon

#6 Post by fbaker »

Roger,

Thank you for looking at that. I subsequently found that DCCOMBOBOX will do what I want.

Fred

Post Reply