Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo boxs in Grid problems
Message
From
10/07/2003 12:45:48
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Combo boxs in Grid problems
Miscellaneous
Thread ID:
00808913
Message ID:
00808913
Views:
61
Hi All,

I am trying to use a combo box in a data entry grid with the column sparse = .t. so I only see the combo if the cell is active.

I basically followed the steps in KiloFox to get it working so that it will store the id in a seperate column specific in a property of the control.

That works fine, when it is a drop down list.

However, as a drop down list, if the user is just typing in the value the whole value in the combo stays highlighted and it is hard to tell what characters you entered. Also, if you loose your rythm I guess the timeout happens and the combo box thinks you started again.

So, I wanted this to work like the quick fill. So, I changed the combo style do dropdown combo, and integrate the KiloFox quickfill combo code with the cbogrid combo control.

Well, it mostly works, but I am having a few problems.

The main problem is, if I requery the data, the combo box doesn't show the current value of the column. If I move off and back, the comobo does show that value, but it dirties the field (which I can deal with.)

Anyone have any ideas what's going on here?

Also, here is another weird one, some columns as I tab to them, the combo does show the value, others it doesn't but, after I tab through it and back it then does show the value. Also, some combos, when I tab to then, and they show the value it is fully highlighted but some columns that show the value it doesn't highlight it and I see the I beam flashing. I don't know the difference between the ones that show the value and those that don't, all the settings seem the same, all the datatypes are character.

Finally, for the QF textbox, while it does show the entered letters not selected and the non letters selected, it doesn't show the I beam. Is this normal?

(Is my only solution to go back to the drop down list?)

Thanks,
BOb
Next
Reply
Map
View

Click here to load this message in the networking platform