Bug: Auto-changing behaviour of ComboBoxes |
Post Reply |
Author | |
daniel_r
Groupie Joined: 06 October 2009 Location: Germany Status: Offline Points: 14 |
Post Options
Thanks(0)
Posted: 11 February 2010 at 6:35am |
Our comboboxes unexpectedly change their text property value when they are focused. How can we disable this?
Whenever the list of the combobox contains an item beginning with the value of the text property, the text property is set to that item as soon as the combobox is focused! We migrated a vanilla VB6 application to CodeJock and we didn't catch that problem before mass-release. Now our customers want to lynch us, because their data gets changed unpredictably. Steps to reproduce: 1. Add a combobox to a form Style: xtpComboDropDown (Default) AutoComplete: false (Default) List items: Only one: "My Test Value" (must be added in Form_Load) 2. Add a Button (just to allow moving the focus on the form) 3. I start the application and type a single "m" into the edit field of the combobox 4. Move the focus away from the combobox. 5. Now move the focus back to the combobox 6. The text of the combobox is now changed to "My Test Value" Is there anything we can do? Any kind of workaround would help us! Thank you in advance! Language: VB6 CodeJock-Versions 13 through 13.2.1 |
|
daniel_r
Groupie Joined: 06 October 2009 Location: Germany Status: Offline Points: 14 |
Post Options
Thanks(0)
|
We really need a solution for this one. Is there anything we can do?
Can we hook any Windows message or send any CodeJock specific message to change this behaviour? Thanks. |
|
gibra
Senior Member Joined: 31 October 2008 Location: Italy Status: Offline Points: 288 |
Post Options
Thanks(0)
|
You examine your problem and seem that in this way you should solve your problem:
1. Add in Declarations a String variable for each combobox:
Dim m_ComboBox1 As String
2. Next, manage GotFocus and LostFocus event as below.
Private Sub ComboBox1_GotFocus()
ComboBox1.Text = m_ComboBox1 End Sub Private Sub ComboBox1_LostFocus()
m_ComboBox1 = ComboBox1.Text End Sub Let me know.
|
|
gibra
CJ SuiteControl v: 13.x to 19.x Windows 10 64bit VS2019 - VB6.0 SP6 <a href="http://nuke.vbcorner.net/Home/tabid/36/language/en-US/Default.aspx" rel="nofollow">VS/VB 6.0 Installer v6.8 |
|
daniel_r
Groupie Joined: 06 October 2009 Location: Germany Status: Offline Points: 14 |
Post Options
Thanks(0)
|
Thank you very much for your response!
This works, but it essentially makes the combobox readonly: If the user changes the text, the old value will be restored if the focus is lost. Additionally updating m_ComboBox1 during ComboBox1_Change doesn't help, because the "autochange" triggers the Change event, too, and I can't distinguish between user input and an automatic change. Daniel |
|
daniel_r
Groupie Joined: 06 October 2009 Location: Germany Status: Offline Points: 14 |
Post Options
Thanks(0)
|
I'd really like to hear some statement concerning this problem from one of the CodeJock developers.
Will this be fixed? Or is this considered not worth the effort? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Thanks, its fixed for 13.4 update. Please use our issuetrack to notify about such critical bugs. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
ijwelch
Senior Member Joined: 20 June 2006 Status: Offline Points: 262 |
Post Options
Thanks(0)
|
12.1 lapsed customer here. oh bugger, better check all my projects.
|
|
ExtremeSuitePro 12.1.1
WinXP SP3 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |