Show which Ender area is active by changing the frame shadow type.

This commit is contained in:
akkana%netscape.com 1998-08-25 00:08:37 +00:00
parent c8b942e490
commit df6fb5c71a
2 changed files with 11 additions and 1 deletions

View File

@ -118,7 +118,9 @@ fe_MakeScrolledWindow (MWContext *context, Widget parent, const char *name)
/* The embedded editor looks better with a frame around it */
if (EDITOR_CONTEXT_DATA(context)->embedded)
parent = XtVaCreateManagedWidget("embeddedFrame", xmFrameWidgetClass,
parent, 0);
parent,
XmNshadowType, XmSHADOW_ETCHED_IN,
0);
#endif /* ENDER */
ac = 0;

View File

@ -192,6 +192,7 @@ XFE_CreateEmbeddedEditor(Widget parent, int32 cols, int32 rows,
extern "C" void
XFE_EmbeddedEditorViewFocus(MWContext* context)
{
static Widget currentFrame = 0;
XFE_Frame *frame = fe_getFrameFromContext(context);
XFE_EmbeddedEditorView* eev = 0;
XP_ASSERT(frame);
@ -200,6 +201,13 @@ XFE_EmbeddedEditorViewFocus(MWContext* context)
XP_ASSERT(eev);
if (!eev)
return;
if (currentFrame)
XtVaSetValues(currentFrame, XmNshadowType, XmSHADOW_ETCHED_IN, 0);
Widget embedFrame = XtParent(XtParent(CONTEXT_DATA(context)->drawing_area));
XtVaSetValues(embedFrame, XmNshadowType, XmSHADOW_IN, 0);
currentFrame = embedFrame;
XFE_BrowserFrame* bf = (XFE_BrowserFrame*)frame;
if (bf)
{