o1 = createobject("form1") o2 = createobject("form1") o3 = createobject("form1") o4 = createobject("form1") o1.show o2.show o3.show o4.show = sys(1500,"_MWI_CASCADE","_MWINDOW") on key label esc clear events read events on key label esc DEFINE CLASS form1 AS form Height = 100 Width = 300 lsemimodal = .F. && -- lSemiModal - this form is running in semi-modal mode ADD OBJECT command1 AS commandbutton WITH ; autosize = .t., ; Top = 20, ; Left = 23 ADD OBJECT check1 AS checkbox WITH ; Top = 25, ; Left = 151, ; AutoSize = .T., ; Caption = "Semi-modal", ; ControlSource = "thisform.lSemiModal" proc check1.click set skip of menu _msysmenu this.value for each m.lo_form in _screen.forms if thisform.name <> m.lo_form.name m.lo_form.enabled = !m.lo_form.enabled endif next PROCEDURE Load this.Name = sys(2015) this.Caption = this.Name ENDDEFINE