Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug in combobox?
Message
 
 
To
07/11/2005 13:28:13
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01065415
Message ID:
01066123
Views:
28
I put a similar code in our DataEntry form class for editboxes and textboxes because if you're sitting on the editbox, making changes and closing a form using top right corner, that change is not considered...

>>>Like Fabio asked, is the combo on an inactive page ?
>>>
>>>Also, put some trace in the form ( a la Acti screen ?'tablerevert' and 'form refresh' )
>>>
>>>look at the sequence of the events (acti screen output)
>>>
>>>I would not expect (and I may be wrong) array based combos to behave differently
>>>
>>>It must be in the sequence of events (set value - set focus - revert/update - refresh)
>>>Check that sequence
>>>
>>>Even make it a field based combo (cursor as source) and see what happens
>>
>>Hi Gregory,
>>
>>We're talking about two different forms. This bug I have in a simple form. It doesn't have a pageframe. It has two comboboxes and several textboxes. It also has a spinner and an option group. I didn't play with them yet to see, if there are similar problems here.
>>
>>Now, here is a deal:
>>
>>If I change a value in the first combobox, that has cursor as its rowsource, then press Cancel, then press Close, I do not see the question "Do you want to save".
>>
>>If I change a value in the array based combobox called cboFrequency, then press Cancel button, then Close, I see the question.
>>
>>If I do a change in cboFrequency, then do a change in some other control, then Cancel, then Close, I do not see the question.
>>
>>Once I added thisform.cboFrequency.refresh() in form's PostCancelHook I do not have the problem.
>>
>>Now I'm going to test spinner and an option group...
>
>So, in a nutshell, when the focus is on cboFrequency, you see the question [ = value not written to disk buffer)
>
>What I do in my form's base class is to always activecontrol.SetFocus(), then save/revert and finally form.refresh()
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform