/* * Here when a focus out event occurs. */ void do_focusout(GR_EVENT_GENERAL *gp) { if (gp->wid != w1) return; GrSetBorderColor(w1, GRAY); }
/* * Here when a focus in event occurs. */ void do_focusin(GR_EVENT_GENERAL *gp) { if (gp->wid != w1) return; GrSetBorderColor(w1, LTBLUE); }
/* * Here when a exit window event occurs. */ void do_exit(GR_EVENT_GENERAL *gp) { if (gp->wid != w5) return; GrSetBorderColor(w5, GREEN); GrLowerWindow(w5); }
/* * Here when a enter window event occurs. */ void do_enter(GR_EVENT_GENERAL *gp) { if (gp->wid != w5) return; GrSetBorderColor(w5, WHITE); GrRaiseWindow(w5); }