Connecting Tech Pros Worldwide Help | Site Map

detecting a window from another window

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 20th, 2005, 11:23 AM
Dom Nicholas
Guest
 
Posts: n/a
Default detecting a window from another window

Hi,

I would like to find a better way of doing the following. I have a
window (call it Win) that creates a new window (call it Win2). It
detects if the window already exists and brings it to the front if it
does (else it just creates it).

Please study and try the code below to try it and then read on.

The problem occurs when I reload window Win and hit the create-window
button. The Win2 window is reset and reloads from scratch. I want it to
just be brought to the top.

In my work what I do is have the Order button bring up an order form
from an item page. Then going to another item page hitting order should
not reload the order form since then all the previous item orders are
thrown away - I just raise it to the top if its hidden.

So my question boils down to this : how do I detect whether the window
created using the Order button exists from another window ? For example,
is there a window-id's container of some sort that hangs around that I
can interrogate ?

ok thanks for any help.

-Dom


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.