Print Page | Close Window

Unusual ComboBox & FlatEdit Interaction

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=10855
Printed Date: 16 November 2024 at 7:16am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Unusual ComboBox & FlatEdit Interaction
Posted By: jpbro
Subject: Unusual ComboBox & FlatEdit Interaction
Date 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 - uploads/20080531_184100_FocusBug.zip


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6




Replies:
Posted By: Aaron
Date Posted: 01 June 2008 at 12:35am
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....


Posted By: jpbro
Date Posted: 01 June 2008 at 11:43am
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



Posted By: jpbro
Date Posted: 28 June 2008 at 10:15pm
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



Posted By: jpbro
Date Posted: 27 October 2008 at 4:11pm
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




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net