|
forums.silverfrost.com Welcome to the Silverfrost forums
|
View previous topic :: View next topic |
Author |
Message |
Anonymous Guest
|
Posted: Fri Nov 11, 2005 12:21 am Post subject: Window handles and window updates from subroutines ??? |
|
|
Two questions for the FTN95 virtuosos...
1.) How do I hop from updating or operating on one window
to another? The manual mentions window handles, and I have
successfully gotten info (e.g., position) on whichever window I
choose - as refered to by the corresponding handle). But the
program always arrives at the LAST window opened, and I
cannot enter updated data read by an earlier i/o window.
Soooo... how would I get back to a previously opened window
(left open) to enter new values for the input variables, so that
they can affect what is drawn in a graphics window that has also
been left open?
2.) So far I have left all my winio commands in the main
program, as relegating graphic updates to subroutines always
opened up a new graphic window on top of all previous ones.
I ended up with a pile of windows instead of changing the *one*
I wanted to update.
Called from [main] everything works for my animations,
but the code is cumbersome, ponderous and unsightly.
Can someone tell me how I can get a subroutine to update
a window graphic started from [main] or another subroutine?
This must have something to do with handles (?). I understand
about callback functions now after plodding my way through the
ClearWin+ manual, but this handle thing has me stumped.
With many thanks,
Ludwig
|
|
Back to top |
|
|
JohnH
Joined: 26 Sep 2005 Posts: 13
|
Posted: Fri Nov 11, 2005 1:09 am Post subject: Window handles and window updates from subroutines ??? |
|
|
Ludwig
If you've plodded through the manual, you now need to plod through the example files that come with the install, they certainly show how to use "handles".
After many, many years of Fortran programming in IV then 77, I moved to FTN95, where "handles", "callbacks" and so on was a foriegn language to me, I successfully got my head around all this "windows stuff" with nothing more than what came with Salford's FTN95 installation !
regards
John |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7938 Location: Salford, UK
|
Posted: Tue Nov 15, 2005 12:37 am Post subject: Window handles and window updates from subroutines ??? |
|
|
Ludwig
I may have already answered this question recently elsewhere, however, I suspect that your problem can be solved by sharing the data amongst various subprograms (using COMMON or MODULE). Then the simplest approach is to have an "Apply" button to implement any changes in the data. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|