moved drawing to isvisible branch only
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -460,10 +460,7 @@ static pascal ControlPartCode TPPaneFocusProc(ControlHandle theControl, ControlF
|
|||||||
kControlFocusNoPart, otherwise return a non-zero part code.
|
kControlFocusNoPart, otherwise return a non-zero part code.
|
||||||
kUserClickedToFocusPart - is a constant defined for this example. You should
|
kUserClickedToFocusPart - is a constant defined for this example. You should
|
||||||
define your own value for handling click-to-focus type events. */
|
define your own value for handling click-to-focus type events. */
|
||||||
/* save the drawing state */
|
/* calculate the next highlight state */
|
||||||
SetPort((**tpvars).fDrawingEnvironment);
|
|
||||||
wxMacWindowClipper clipper( wxFindControlFromMacControl(theControl ) ) ;
|
|
||||||
/* calculate the next highlight state */
|
|
||||||
switch (action) {
|
switch (action) {
|
||||||
default:
|
default:
|
||||||
case kControlFocusNoPart:
|
case kControlFocusNoPart:
|
||||||
@@ -485,6 +482,9 @@ static pascal ControlPartCode TPPaneFocusProc(ControlHandle theControl, ControlF
|
|||||||
new focus state */
|
new focus state */
|
||||||
if ( IsControlVisible( theControl ) )
|
if ( IsControlVisible( theControl ) )
|
||||||
{
|
{
|
||||||
|
/* save the drawing state */
|
||||||
|
SetPort((**tpvars).fDrawingEnvironment);
|
||||||
|
wxMacWindowClipper clipper( wxFindControlFromMacControl(theControl ) ) ;
|
||||||
DrawThemeEditTextFrame(&varsp->fRTextOutline, varsp->fIsActive ? kThemeStateActive: kThemeStateInactive);
|
DrawThemeEditTextFrame(&varsp->fRTextOutline, varsp->fIsActive ? kThemeStateActive: kThemeStateInactive);
|
||||||
DrawThemeFocusRect(&varsp->fRFocusOutline, varsp->fIsActive && varsp->fInFocus);
|
DrawThemeFocusRect(&varsp->fRFocusOutline, varsp->fIsActive && varsp->fInFocus);
|
||||||
}
|
}
|
||||||
|
@@ -460,10 +460,7 @@ static pascal ControlPartCode TPPaneFocusProc(ControlHandle theControl, ControlF
|
|||||||
kControlFocusNoPart, otherwise return a non-zero part code.
|
kControlFocusNoPart, otherwise return a non-zero part code.
|
||||||
kUserClickedToFocusPart - is a constant defined for this example. You should
|
kUserClickedToFocusPart - is a constant defined for this example. You should
|
||||||
define your own value for handling click-to-focus type events. */
|
define your own value for handling click-to-focus type events. */
|
||||||
/* save the drawing state */
|
/* calculate the next highlight state */
|
||||||
SetPort((**tpvars).fDrawingEnvironment);
|
|
||||||
wxMacWindowClipper clipper( wxFindControlFromMacControl(theControl ) ) ;
|
|
||||||
/* calculate the next highlight state */
|
|
||||||
switch (action) {
|
switch (action) {
|
||||||
default:
|
default:
|
||||||
case kControlFocusNoPart:
|
case kControlFocusNoPart:
|
||||||
@@ -485,6 +482,9 @@ static pascal ControlPartCode TPPaneFocusProc(ControlHandle theControl, ControlF
|
|||||||
new focus state */
|
new focus state */
|
||||||
if ( IsControlVisible( theControl ) )
|
if ( IsControlVisible( theControl ) )
|
||||||
{
|
{
|
||||||
|
/* save the drawing state */
|
||||||
|
SetPort((**tpvars).fDrawingEnvironment);
|
||||||
|
wxMacWindowClipper clipper( wxFindControlFromMacControl(theControl ) ) ;
|
||||||
DrawThemeEditTextFrame(&varsp->fRTextOutline, varsp->fIsActive ? kThemeStateActive: kThemeStateInactive);
|
DrawThemeEditTextFrame(&varsp->fRTextOutline, varsp->fIsActive ? kThemeStateActive: kThemeStateInactive);
|
||||||
DrawThemeFocusRect(&varsp->fRFocusOutline, varsp->fIsActive && varsp->fInFocus);
|
DrawThemeFocusRect(&varsp->fRFocusOutline, varsp->fIsActive && varsp->fInFocus);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user