xtpPaneThemeNativeWinXP |
Post Reply |
Author | |
Ark42
Senior Member Joined: 20 October 2003 Status: Offline Points: 291 |
Post Options
Thanks(0)
Posted: 05 March 2005 at 12:20am |
The pushpins seem reversed (pushed when pane hidden, not pushed when pane docked/shown normally) With the Olive XP theme, the non-focused pane's close button is blue, not green. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
1. ... 2. We just call Theme routines to draw buttons... Strange. people, do you have same problem? I see it normal. WinXP sp2.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Ark42
Senior Member Joined: 20 October 2003 Status: Offline Points: 291 |
Post Options
Thanks(0)
|
This is what I see, with WinXP (no SP, clean install) The first pane is floating, and rolled up, the second pane is docked and has focus as well. I suppose it could be a WinXP bug then. |
|
Ark42
Senior Member Joined: 20 October 2003 Status: Offline Points: 291 |
Post Options
Thanks(0)
|
Ok, the Olive theme problem is fixed in WinXP SP2 (didn't test SP1) Here is from a WinXP SP2 box with the Microsoft Media Center Royale theme: The pushpin graphics still seem reversed to me. |
|
JamesH
Senior Member Joined: 01 December 2004 Status: Offline Points: 149 |
Post Options
Thanks(0)
|
I see the same thing, and have sp2 installed. I just assumed it was a idiosyncrasy of the theme...
|
|
Ark42
Senior Member Joined: 20 October 2003 Status: Offline Points: 291 |
Post Options
Thanks(0)
|
JamesH - what same thing do you see? The pushpins, or the non-focused close button on the olive theme? The olive theme problem I show as fixed on WinXP Home SP2, but only showed up on WinXP Pro (no SP).
|
|
JamesH
Senior Member Joined: 01 December 2004 Status: Offline Points: 149 |
Post Options
Thanks(0)
|
Sorry, I should have specified I meant the pushpin....
|
|
Ark42
Senior Member Joined: 20 October 2003 Status: Offline Points: 291 |
Post Options
Thanks(0)
|
I made some changes in CXTPDockingPaneNativeXPTheme::DrawCaptionButton as follows:
if (pButton->GetID() == XTP_IDS_DOCKINGPANE_CLOSE) { // int nState = bActive? pButton->IsPressed()? EBHC_PRESSED: EBHC_HOT: EBHC_NORMAL; int nState = pButton->IsPressed()? EBHC_PRESSED: bActive || pButton->IsSelected()? EBHC_HOT: EBHC_NORMAL; m_themeExplorer.DrawThemeBackground(*pDC, EBP_HEADERCLOSE, nState, pButton->GetRect(), 0); } else { // int nState = bActive? pButton->IsPressed()? EBHP_PRESSED: pButton->IsSelected()? EBHP_HOT: EBHP_NORMAL: EBHP_NORMAL; // m_themeExplorer.DrawThemeBackground(*pDC, EBP_HEADERPIN, (pButton->GetState() & xtpPanePinPushed? 3: 0) + nState, pButton->GetRect(), 0); int nState = pButton->IsPressed()? EBHP_PRESSED: pButton->IsSelected()? EBHP_HOT: EBHP_NORMAL; m_themeExplorer.DrawThemeBackground(*pDC, EBP_HEADERPIN, (pButton->GetState() & xtpPanePinPushed? 0: 3) + nState, pButton->GetRect(), 0); } For the close button, I don't think it should have to have focus to show the mouse-down effect when you are closing a non-focused pane. I also added showing the Hot state when you hover over a non-focused pane, which is better than nothing, since the XP theme manger only has 3 states (normal, hot, pressed). Microsoft should have put in 4 states (inactive, active, hot, pressed) like the main application's close button has. For the pushpin button, again I don't think it should have to have focus to show the mouse-down effect, or the hover effect either. I also then reversed the effect of xtpPanePinPushed to use the "SELECTED" states when the pin is *not* pushed instead. It seems to draw properly that way I think. Edited by Ark42 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
We reversed it too. Thank you.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |