Re: CURRENT WINDOW LAST? CURRENT WINDOW IS variable-name?
Posted in 1995
Topics: General Discussion
> Here's a kludge I've used when necessary: name your windows according to some > predetermined convention known to the library routine, and pass it a parameter > indicating which window should regain control. Here's a routine that shows a > message in a separate message window, and then returns the focus the window > specified by a parameter. > > > function msg_show(msg, w) > > define msg char(75) > > define w char(1) > > > > current window is mwind > > message msg clipped attribute (reverse) > > case w > > when "p" > > current window is pwind > > when "k" > > current window is kwind > > when "d" > > current window is dwind > > when "i" > > current window is iwind > > end case > > end function > > It's ugly, but I don't know any more general work-around, at least in the version > of the language that I have available ... Very ugly for me since I need to control 9 windows, so thats 9 opens, 9 currents, and 9 closes, Looks like there is no easy way around it, until we have CURRENT/OPEN/CLOSE WINDOW var-name. -- -----------------------------. In nature there are neither rewards nor ! Email bash@bash.demon.co.uk ! punishments - there are consequences. `-----------------------------' - Illich, Ivan.: