Unusual ComboBox & FlatEdit Interaction |
Post Reply |
Author | |
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
Posted: 31 May 2008 at 6:41pm |
Hi,
I've discovered an unusual interaction between the CJ ComboBox and FlatEdit controls. If you place 1 of each on a form, and then add code to make the FlatEdit visible only when certain ComboBox items are selected, then when the FlatEdit will steal the focus from the ComboBox on a subsequent press of the down arrow key. I've attached a sample project. When loaded, the FlatEdit is invisible and the ComboBox has item "A" selected: 1) Press the down arrow key in the ComboBox and "B" will be selected and the FlatEdit will appear. 2) Press the down arrow again and the FlatEdit will steal the focus and display a messagebox (from its GotFocus event). 3) Try stopping the project and replacing the CJ FlatEdit with a standard VB TextBox of the same name. Re-run the sample and continued presses of the down arrow key will simply cycle through the items in the ComboBox (that is, the focus will not be stolen). Any ideas? uploads/20080531_184100_FocusBug.zip |
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
It's not the first focus problem with flatedit, is it?
With your sample: If a combo selection is made and the flatedit is visible > click the combo again > you see the combo expands and collapses at the same time (you have to click the combo again to make another choise). Looks like something happens after the combodropdown expands ???
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
Hi Aaron,
It might be related to that problem (I have tried as you suggested and I see the behaviour you describe). The only difference I can see is that the FlatEdit takes the focus away from the ComboBox when you press the down arrow key, but it doesn't take the focus away when you click the drop-down button with the mouse. Also, neither bug is present when you replace the FlatEdit with a standard VB TextBox...(I've also tested it with other CJ controls such as the CheckBox, OptionButton, ListView, etc... and the bug is present when any of them are used). |
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
Unfortunately, this one appears to be unresolved in 12.0.1. Any comments from Codejock about this?
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
This is still unresolved in the 12.1 beta. Any chance of a fix?
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
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 |