Define CLASS coolbutton AS container Width = 249 Height = 31 BackStyle = 0 BorderWidth = 0 MousePointer = 99 MouseIcon = "bitmaps\hand1.cur" Name = "launcherbutton" *-- On mouse out effects Procedure onmouseout With this .BorderWidth = 0 .SpecialEffect = 2 && Flat - default .Visible = .Visible Endwith Endproc Procedure Init If !(type('thisform.IsMouseOut') = 'O' and !isnull(thisform.IsMouseOut)) Thisform.NewObject('IsMouseOut','IsMouseOut',this.ClassLibrary) Endif Endproc Procedure MouseMove Lparameters nButton, nShift, nXCoord, nYCoord With this .BorderWidth = 1 .SpecialEffect = 0 && Raised .Visible = .Visible Endwith Thisform.IsMouseOut.CheckForMe(this) Endproc Procedure MouseUp Lparameters nButton, nShift, nXCoord, nYCoord With this .BorderWidth = 1 .SpecialEffect = 0 && Raised .Visible = .Visible Endwith Endproc Procedure MouseDown Lparameters nButton, nShift, nXCoord, nYCoord With this .BorderWidth = 1 .SpecialEffect = 1 && Sunken .Visible = .Visible Endwith Endproc EnddefineCetin