focus setting must be possible even when not shown yet
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23527 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -439,7 +439,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 && IsControlVisible( theControl ) ) {
|
if (tpvars != NULL ) {
|
||||||
state = HGetState((Handle) tpvars);
|
state = HGetState((Handle) tpvars);
|
||||||
HLock((Handle) tpvars);
|
HLock((Handle) tpvars);
|
||||||
varsp = *tpvars;
|
varsp = *tpvars;
|
||||||
|
@@ -439,7 +439,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 && IsControlVisible( theControl ) ) {
|
if (tpvars != NULL ) {
|
||||||
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