FoxStudent
Technical User
How do I get this popup menu to deactivate when I choose one of the options on it?<br><br>Thank You<br>Grainne Evans<br><br>set color to n/w+<br>do setupenv<br>do initialise<br>define popup mainmenu from 10,10 to 15,25<br>define bar 1 of mainmenu prompt " New Sale"<br>define bar 2 of mainmenu prompt " Delivery"<br>define bar 3 of mainmenu prompt " Maintenance"<br>define bar 4 of mainmenu prompt " Quit"<br>on selection popup mainmenu do exemain<br>do while .t.<br> clear<br> do titlemain<br> set color to w+/b<br> activate popup mainmenu<br>enddo<br>clear<br>clear all<br><br>procedure initialise<br>store .f. to m.finished<br>public m.parttype<br>public m.manufact<br>public m.model<br>public m.specific<br>public m.engsize<br>public m.engnum<br>public m.framenum<br>public m.year<br>public m.curlevel<br>public m.optlevel<br>public m.minlevel<br>public m.reordlev<br>public m.sup_part<br>public m.suppcode<br>public m.isleno<br>public m.binno<br>return<br><br>procedure titlemain<br>set color to n/w+<br>set border to double<br>@4,10 to 8,25<br>@4,10 fill to 8,25<br>@6,14 say "Main Menu"<br>set border to<br>set color to n/w <br>return<br><br>procedure exemain<br>do case<br> case bar() = 1<br> do newsale<br> case bar() = 2<br> do delivery<br> case bar() = 3<br> do maintena<br> case bar() = 4<br> set color to w+/n<br> store "" to exitnow<br> define window exitnow from 18,8 to 22,58 title 'Are you sure you want to exit?'<br> activate window exitnow<br> store "" to exitnow<br> @2,5 get exitnow picture '@*h Yes;No'<br> read<br> release window exitnow<br> if exitnow = "Yes"<br> quit<br> endif<br> set color to n/w+<br>endcase<br>clear<br>deactivate popup mainmenu<br>clear all<br>do restenvi<br>release all<br>return<br>