Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - Unusual ComboBox & FlatEdit Interaction
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Unusual ComboBox & FlatEdit Interaction

 Post Reply Post Reply
Author
Message
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1354
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Topic: Unusual ComboBox & FlatEdit Interaction
    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

Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1354
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1354
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1354
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.