I have a problem figuring out how to control threads.
Have 2 programs: Program1 should stay in control, program2 contains a window that the user may activate.
Summary of source:
---
Program1 (called from my main application):
display floating window, modeless
bind to thread.
call thread "Program2".
display screen-1.
accept screen-1.
---
Program2:
display floating windows, modeless, bind to thread.
display screen-2
accept screen-2
---
My problem is that control is in Program2 and not in Program1 even if Program1 displays and accept screen-1. User has to click window in Program1 to make it active.
What do I do wrong?



