// // WINMAX.VDM Christian Ziemski 13.07.1999 // 28.08.2000 // // Maximizes all of VEDIT's windows to the size of the editing area // (excluding reserved windows) // Useful e.g. after a cascade or tile windows. // Num_Push(96,99) // save user registers Win_Create(Win_Free(),0,0,0,0) // create fullsize temporary window // maybe there is an #98=Win_Width // measure it's size // internal value for #99=Win_Height // the editing area??? Win_Delete(Win_Num) // and trash it again #96=Win_Total // amount of current windows for(#97=1 ; #97<=#96 ; #97++){ // check all windows if(Win_Status(#97)>0){ // if attached to a buffer Win_Move(#97,0,0,#98,#99) // resize it } } // This version should be better, but doesn't work! But why not?? // #97=1 // do { // Win_Switch(#97) // if(Win_Status(#97)>0){ // if attached to a buffer // Win_Move(#97,0,0,#98,#99) // resize it // } // #97=Win_Next //} while(#97>1) Num_Pop(96,99) // restore user registers