|
forums.silverfrost.com Welcome to the Silverfrost forums
|
View previous topic :: View next topic |
Author |
Message |
Anonymous Guest
|
Posted: Thu Nov 10, 2005 1:07 am Post subject: Interactive and mouse-responsive windows with ClearWin ??? |
|
|
Dear Fortran Gurus,
Two more queries about ClearWin. I have been struggling
with the following, and wonder if there is a simple
solution that I am not seeing, viz...
1.) Is there a way to set up an input window and
keep it open while reading and continuously updating
a variable that controls grapics in a second window?
(E.g., controlling the position of an object on screen
by entering Cartesian coordinates).
2.) How can one drag a point in graphics window
using the mouse.
I hope these are not long and/or troublesome questions.
Are there sample odes or fragments out there that deal
with the above?
With many thanks,
Ludwig
|
|
Back to top |
|
|
JohnH
Joined: 26 Sep 2005 Posts: 13
|
Posted: Thu Nov 10, 2005 4:54 am Post subject: Interactive and mouse-responsive windows with ClearWin ??? |
|
|
Ludwig
1.) Yes ! Using a CallBack function on your variable that redraws your graphics each time it is called - and its's called everytime your variable changes value ! But, be very careful, if you enter coordinates by typing them in, then you don't want the graphics being updated as you key in each numeric character, but's it's okay if you use a spin wheel or slider control to get a continuous value change.
2.) Again, using callbacks with a call to GET_MOUSE_INFO@
I suggest you work through the ClearWin+ manual, after which you could easily answer your questions.
regards
John |
|
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
|