Solved

Response window focus difficulties in Terminal Server

Posted on 2004-03-28
5
703 Views
Last Modified: 2013-12-26
Hello.

I’m trying to deal with a problem I suspect has to do with MS Terminal Server.  I read this post:

http://www.tokeshi.com/modules.php?op=modload&name=News&file=article&sid=2005

It spoke about Citrix and I wonder if the following problem sounds the same to you:

If you run any application through a Citrix client or a Terminal Services Client where the scenario is as follows:

You open a response window, say window_A.  From the response window A you open a second response window, say window_B.  The only thing is, there is a delay of about 10 seconds before window B actually opens.  While you are waiting for window B to open, you minimize the session’s client to do something on you own desktop.  Once you return to the session, you find that window_B has indeed opened but doesn’t have the focus.  Instead, window_A has the focus.

Depending on the language the application is written in, in my case PowerBuilder, you will, in most cases, run into the problem of not being able to change the focus to window_B since window A is a response window and won’t let you leave it.

If you think your can help, kindly let me know what I can do.  The solution I'm looking for should not drastically change my current PB6.5 application is there are may response windows and to retest the entire up is not an option with this project.

mailto:epitchon@shaw.ca

May thanks for your time.

Erez Pitchon.
0
Comment
Question by:epitchon
  • 2
5 Comments
 
LVL 18

Expert Comment

by:diasroshan
ID: 10701557
hi epitchon,

      can u update me abt a query...does ur window B get the focus if u don't minimise ur session client.??... as u must be aware that citrix only passes across snapshots and keystrokes.... so what i feel is when the response returns to the citrix client after u call the open window B the problem arises coz it is minimised...

try explicitly calling setfocus to an object on window B and let me know if it works fine if ur session client is not minimised,,,,

      on a normal application it works fine if u open a response window from another response window.. the second window gets the focus....

Cheers,
Rosh
0
 
LVL 1

Author Comment

by:epitchon
ID: 10704242
Yes, this happens only if I minimize the Citrix or Terminal client (problem happens in both).  I don't think the problem is specific to PowerBuilder though.  I created a macro in Excel that opens a FORM_B from FORM_A with a pause before FORM_B opens.  If you minimize the session before FORM_B opens, when you return, FORM_A has the focus and FORM_B does not.  I did try SetFocus explicitly, but to no avail.

Erez.
0
 
LVL 18

Accepted Solution

by:
diasroshan earned 290 total points
ID: 11259426
hi ,
see :http://www.powerbuilder.org/modules.php?name=News&file=print&sid=110 .. Which says:
Change Request#: 340967    (PB Enterprise - 8.0.4) Response window on top of response window lost the focus if try to switch the focus backward and forward to other application before succesfully opening the last response window.


Cheers,
Rosh
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now