Silverfrost Forums

Welcome to our forums

clearwin window

9 Apr 2006 3:13 #624

Hi,

How can I tell if a user has manually closed a ClearWin window attached to a Fortran Unit? If s/he has, I'd like, in the best of worlds, to reopen it at the size and position at which they left it. Update doesn't reopen it and inquire doesn't mind that it was manually (but not Fortran) closed.

Thanks,

Bruce Weaver

10 Apr 2006 12:43 #625

Bruce

Why not just remove the user option of being able to close the window, by using:-

      i=winio@('%ww[no_sysmenu]&')
10 Apr 2006 1:06 #626

Or you could use %cc to control the closure!

10 Apr 2006 4:55 #628

Paul

In the help manuals the example for %gp shows it to be attached to a button. Is there a method to get a window position other than requiring the user to click on a button? And, how can multiple windows be handled, i.e. when the program creates a text output window and a graphics output window ?

Thanks John

11 Apr 2006 12:25 #631

John

It is not clear to me what you are looking for. %gp gives the position of the next control and allows you to use %sp to set the position of other controls or windows.

%sz can be used to get the size of a window. GET_WINDOW_LOCATION@ can be used to get its position.

11 Apr 2006 3:28 #632

Paul

Thanks, the get_window_location call was exactly what I needed.

John

12 Apr 2006 12:28 #633

Thanks Paul.

I was not embedding it but letting it float like other windows I had opened...now I'll go back and embed them all to keep the screen under control to maximize the amount of info the user can display.

Bruce Weaver

Please login to reply.