| View previous topic :: View next topic |
| Author |
Message |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Fri May 10, 2002 10:32 am Post subject: @window() problem |
|
|
I am having trouble making the @WINDOWS() function work properly.
For example, the following code does not return me to the parent but returns an empty string instead of the parent!
| Code: | wait 3
%b = @winactive(i)
%%url_address = @window(%b,child)
info @window(%%url_address,owner)
|
What am i doing wrong?
Thanks,
Serge _________________
|
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Fri May 10, 2002 12:37 pm Post subject: |
|
|
You might try using a WAIT after each line, or maybe
WAIT ".5" (if you use OPTION DECIMALSEP, ".").
Some of the window access functions are a tad slow,
and VDS will sometimes outrun them.
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Fri May 10, 2002 10:32 pm Post subject: |
|
|
Thanks for that Mac but no good!
I didn't put a wait for the @WINDOW(..,FIRST) and @WINDOW(..,LAST) and these 2 work fine. So why won't the @WINDOW(..,OWNER) work? grrrrrrr  _________________
|
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sat May 11, 2002 5:20 am Post subject: |
|
|
Hmmm... this is kinda strange. I can't even get the
CHILD parameter to work correctly...
In a VDS prog with a child dialog, it picks up the first
element (button, etc.) instead of the child window.
I tried with both windows open, and either of them
active several times...
OWNER also returns an empty value for me.
Any ideas anybody?
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Sat May 11, 2002 5:52 am Post subject: |
|
|
Thanks for trying Mac, and great to see that i'm not the only one with that problem.
I placed a similar post at the VDS forum and am waiting to see what they suggest.
Serge _________________
|
|
| Back to top |
|
 |
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Sat May 18, 2002 12:24 am Post subject: |
|
|
This simply must be a bug in VDS. There's nothing more I could add...
Tommy |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Sat May 18, 2002 12:28 am Post subject: |
|
|
thanks Tommy,
Serge _________________
|
|
| Back to top |
|
 |
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Sat May 18, 2002 2:34 am Post subject: |
|
|
Try this one:
http://www.vdsworld.com/files/vdswin.zip
The simple source code is included.
Syntax:
@DWINDOW(PARENT,<window identifier>)
Returns the window identifier of the parent window.
@DWINDOW(VERSION)
Returns the DLL's version number (1.0).
Please note that this DLL returns the parent window's identifier which actually may not be the same as a window's owner.
Tommy |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Sat May 18, 2002 6:07 am Post subject: |
|
|
thanks Tommy - i can't check it out at the moment but i'll certainly do so in the following week.
Serge _________________
|
|
| Back to top |
|
 |
|