Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - xtpButtonSplitDropDown problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

xtpButtonSplitDropDown problem

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

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: xtpButtonSplitDropDown problem
    Posted: 21 October 2010 at 4:07am
XTP 12.0.1 in this case, but I believe the error is present in all versions.
m_btnNew.SetPushButtonStyle(xtpButtonSplitDropDown);
 
 
1) Tab to the control.
2) Press UP or DOWN arrow key.
 
Focus is moved to next/previous control. This is wrong. Instead the menu should be shown. (Like in the OpenFile-dialog in W7.)
 
 
Also, I have another question. Is it possible to show the button's menu using the keyboard when the button does NOT have focus? Alt+N issues the "New" command, but what about its menu items?
 
 
Issue #2: Erroneous drawing (W7, classic)
Split button with focus...
 
Split button without focus:
 
 
CJ split button with focus:
 
As you can see, you have the following drawing errors:
1) The focus rectangle is wrong.
2) The arrow is too big.
3) The arrows does not move 1 pixel when focus changes (this is what happens in Notepad).
PokerMemento - http://www.pokermemento.com/
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 21 October 2010 at 4:09am
Similarly, space key should NOT open the menu, but instead issue the "New" command. (Also verified in W7)
PokerMemento - http://www.pokermemento.com/
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.171 seconds.