Page 1 of 1

DCSAY...GET...COMBO addon

Posted: Mon May 03, 2010 9:05 am
by fbaker
Hello Roger,

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

Thanks. Fred 331 / 252

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

Posted: Sat May 08, 2010 9:45 am
by rdonnay
Add this to the beginning of your app:

DC_GetComboImmediate( .T. )

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

Posted: Fri Jun 04, 2010 10:10 am
by fbaker
Roger,

A belated thank you.

Fred

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

Posted: Fri Jun 04, 2010 11:18 am
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

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

Posted: Sun Jun 06, 2010 11:43 am
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.

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

Posted: Sun Jun 06, 2010 4:45 pm
by fbaker
Roger,

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

Fred