Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - CXTPButton + xtpButtonDropDown?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPButton + xtpButtonDropDown?

 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: CXTPButton + xtpButtonDropDown?
    Posted: 03 April 2011 at 5:17am
Recently upgraded from 13.4.2 to 15.0.2, so I changed my dropdown CXTButton to CXTPButton. When pressed, a custom window is displayed where the user makes his choice. This yields a GUI glitch with the newer CXTPButton class!
When the button is pressed I want it to be held down until its custom window is closed. How do I accomplish this? Previously, I performed some CXTButton ownerdraw-stuff to account for the "pushed down" state.
 
Please help!
 
Dropdown CXTPButton NOT drawn as pressed!
PokerMemento - http://www.pokermemento.com/
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 05 April 2011 at 4:21am
Hi,

Try call SetState(TRUE); / SetState(FALSE);

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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: 05 April 2011 at 2:03pm
Works for a second or so, then it reverts to unpushed state (when hovering on the popup window).
 
:(
PokerMemento - http://www.pokermemento.com/
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 06 April 2011 at 2:44am
You call SetState(FALSE) after Custom window disappear ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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: 15 April 2011 at 2:09pm
Yes. And I can see in paint-handler that state is false all the way. Hmmm?
PokerMemento - http://www.pokermemento.com/
Back to Top
kingsollyu View Drop Down
Newbie
Newbie


Joined: 28 September 2012
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote kingsollyu Quote  Post ReplyReply Direct Link To This Post Posted: 10 January 2013 at 12:35am
call m_wndButton.SetPushButtonStyle(xtpButtonDropDown);
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.141 seconds.