forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Window handles and window updates from subroutines ???

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
Anonymous
Guest





PostPosted: Fri Nov 11, 2005 12:21 am    Post subject: Window handles and window updates from subroutines ??? Reply with quote

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

PostPosted: Fri Nov 11, 2005 1:09 am    Post subject: Window handles and window updates from subroutines ??? Reply with quote

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 ! Surprised

regards
John
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Tue Nov 15, 2005 12:37 am    Post subject: Window handles and window updates from subroutines ??? Reply with quote

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
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+ All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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