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 

Trouble with changing focus between windows.

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





PostPosted: Sun Feb 26, 2006 10:11 am    Post subject: Trouble with changing focus between windows. Reply with quote

I am trying to do the folowing:

I open one window (%ww) for data input and output including some button controls.

Depending on the user's actions a second window (%ww) opens next to the first one to provide additional means for data input and evaluation.

Now when window #2 is open, the controls of window #1 cannot be operated. That means, the buttons show the depressed status all right when activated by my mouse, but the callback function is not called.

None of the windows use &lw becasue I do not want the prog to carry on while the two windows are open.

I am using clearwin+

Any ideas would be welcome.


Norbert
Back to top
PaulLaidler
Site Admin


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

PostPosted: Mon Feb 27, 2006 12:56 am    Post subject: Trouble with changing focus between windows. Reply with quote

Norbert

If you want the first window to remain active when the second window is open then you must make the second window "modeless" by using %lw in the winio@ declaration of the second window.

See "Closing a window" in the FTN95 help file.

Regards

Paul
Back to top
View user's profile Send private message AIM Address
ursuselasticus



Joined: 26 Mar 2005
Posts: 71

PostPosted: Mon Feb 27, 2006 9:43 am    Post subject: Trouble with changing focus between windows. Reply with quote

Thanks Paul, did not know that and surely give it a try.

Norbert
Back to top
View user's profile Send private message
ursuselasticus



Joined: 26 Mar 2005
Posts: 71

PostPosted: Wed Mar 01, 2006 12:06 pm    Post subject: Trouble with changing focus between windows. Reply with quote

Paul,

sorry for bothering you further but just one more question:

How do I make the second window to wait for input after I used %lw? My prog carries on in processing data that are not available, sleep@ stops the prog completely, not accepting any input. But the prog should wait until input from either window #1 or #2 is available.

That possible ?

Thanks in advance.

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


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

PostPosted: Wed Mar 01, 2006 12:55 pm    Post subject: Trouble with changing focus between windows. Reply with quote

Norbert

If you want to be able to access the first window without closing the second then the main idea is that you do not wait for the data.

1) Use COMMON blocks (say) to hold the common data.
2) Use callback functions on the controls to detect changes in the data.
3) When a change is detected that requires an update, process the data in a callback and (if necessary) use window_update@ to update values that are displayed one of the windows.

Regards

Paul

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 -> Support 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