xtpButtonSplitDropDown problem |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
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/
|
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
Similarly, space key should NOT open the menu, but instead issue the "New" command. (Also verified in W7)
|
|
PokerMemento - http://www.pokermemento.com/
|
|
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 |