only work on the focus if the control is shown
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23343 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -426,7 +426,7 @@ static pascal ControlPartCode TPPaneFocusProc(ControlHandle theControl, ControlF
|
|||||||
/* set up locals */
|
/* set up locals */
|
||||||
focusResult = kControlFocusNoPart;
|
focusResult = kControlFocusNoPart;
|
||||||
tpvars = (STPTextPaneVars **) GetControlReference(theControl);
|
tpvars = (STPTextPaneVars **) GetControlReference(theControl);
|
||||||
if (tpvars != NULL) {
|
if (tpvars != NULL && IsControlVisible( theControl ) ) {
|
||||||
state = HGetState((Handle) tpvars);
|
state = HGetState((Handle) tpvars);
|
||||||
HLock((Handle) tpvars);
|
HLock((Handle) tpvars);
|
||||||
varsp = *tpvars;
|
varsp = *tpvars;
|
||||||
|
@@ -426,7 +426,7 @@ static pascal ControlPartCode TPPaneFocusProc(ControlHandle theControl, ControlF
|
|||||||
/* set up locals */
|
/* set up locals */
|
||||||
focusResult = kControlFocusNoPart;
|
focusResult = kControlFocusNoPart;
|
||||||
tpvars = (STPTextPaneVars **) GetControlReference(theControl);
|
tpvars = (STPTextPaneVars **) GetControlReference(theControl);
|
||||||
if (tpvars != NULL) {
|
if (tpvars != NULL && IsControlVisible( theControl ) ) {
|
||||||
state = HGetState((Handle) tpvars);
|
state = HGetState((Handle) tpvars);
|
||||||
HLock((Handle) tpvars);
|
HLock((Handle) tpvars);
|
||||||
varsp = *tpvars;
|
varsp = *tpvars;
|
||||||
|
Reference in New Issue
Block a user