&&& init if( !DoDefault() ) return FALSE endif do case case empty(this.FocusMark) otherwise this.FocusMark = sys(2015) =this.Parent.AddObject(this.FocusMark, 'Shape') do case case type('this.Parent.' + this.FocusMark ) == T_OBJECT this.FocusMark = 'this.Parent.' + this.FocusMark local obj obj = eval(this.FocusMark) #define THICKNESS 2 obj.BorderColor = rgb(0,0,255) obj.BackStyle = 0 obj.BorderWidth = THICKNESS =obj.Zorder(1) obj.Move(this.Left - THICKNESS, this.Top - THICKNESS, this.Width + 2*THICKNESS, this.Height + 2*THICKNESS ) obj.Visible = FALSE && set on/off in got/lostfuvus #undefine THICKNESS otherwise this.FocusMark = FALSE endcase endcase &&& GotFocus =DoDefault() do case case empty(this.FocusMark) case type(this.FocusMark) <> T_OBJECT otherwise store TRUE to (this.FocusMark + '.Visible') endcase && LostFocus =DoDefault() do case case empty(this.FocusMark) case type(this.FocusMark) <> T_OBJECT otherwise store FALSE to (this.FocusMark + '.Visible') endcase