View previous topic :: View next topic |
Author |
Message |
Vic D'Elfant Past Contributor
Joined: 26 Jun 2002 Posts: 673 Location: The Netherlands
|
Posted: Tue Aug 24, 2004 11:43 am Post subject: IDE hangs after SHOWMODAL |
|
|
Hi Guys
I've got a problem with the IDE and the SHOWMODAL command... the script below works fine, but if you click the taskbar button of the parent window the small one disappears behind it. That doesn't have be a big problem, but when I run the script in the IDE the whole IDE hangs, and it is impossible to click the parent window; it generates that disabled-sound (dong... dong..., you know what I mean I suppose ).
Code: |
DIALOG CREATE,Big one,-1,0,727,475
DIALOG SHOW
DIALOG CREATE,Small one,-1,0,240,160,SMALLCAP
DIALOG SHOWMODAL
wait event |
Vic _________________ phpBB Development Team |
|
Back to top |
|
|
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Tue Aug 24, 2004 1:03 pm Post subject: |
|
|
I suppose this is becuase the IDE creates the dialogs as child windows of
itself. Regular child windows (really 'parent' in your VDS script) have no
effect on the IDE, however, modal child dialogs affect the whole script & IDE. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
Vic D'Elfant Past Contributor
Joined: 26 Jun 2002 Posts: 673 Location: The Netherlands
|
Posted: Tue Aug 24, 2004 1:06 pm Post subject: |
|
|
I guess you're right FreezingFire Let's hope that the users won't click the taskbar button when running the program
Vic _________________ phpBB Development Team |
|
Back to top |
|
|
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Tue Aug 24, 2004 1:08 pm Post subject: |
|
|
I forgot to add that I do find this annoying. Especially when your
script crashes or goes into an infinite loop with the modal dialog open
and you haven't saved it. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
Serge Professional Member
Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Tue Aug 24, 2004 1:28 pm Post subject: |
|
|
hi vic,
you could make the child window always on top this way it never disappears or you could use WINDOW HIDE for the parent while the child is showing
serge _________________
|
|
Back to top |
|
|
Vic D'Elfant Past Contributor
Joined: 26 Jun 2002 Posts: 673 Location: The Netherlands
|
Posted: Tue Aug 24, 2004 1:29 pm Post subject: |
|
|
Hey.... using that ONTOP style is a good idea! I'll give it a try.
Vic _________________ phpBB Development Team |
|
Back to top |
|
|
Vic D'Elfant Past Contributor
Joined: 26 Jun 2002 Posts: 673 Location: The Netherlands
|
Posted: Tue Aug 24, 2004 1:36 pm Post subject: |
|
|
Hm.... the child window will always remain ontop of the other windows, but everything is better then loosing the window
I think it's time that VDS comes with a proper solution for those I-want-a-disabled-parent-window-but-a-enabled-child-window problems, isn't it?
Vic _________________ phpBB Development Team |
|
Back to top |
|
|
jules Professional Member
Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Tue Aug 24, 2004 1:56 pm Post subject: |
|
|
It's really a Windows problem. I've seen VB apps do the same thing. If the main window isn't active then Windows thinks the user doesn't want an inactve app's window popping up in the foreground, which is quite a reasonable assumption IMO.
If you don't use SMALLCAP or NOTITLE then the windows have a button on the task bar, so you can bring them to the foreground, once you realise what's happening.
If you do want the window coming to the foreground, then I've adopted the solution of not using SHOWMODAL, and sending a WINDOW ACTIVATE to the window to force it to the foreground, _________________ The Tech Pro
www.tech-pro.net |
|
Back to top |
|
|
Hooligan VDS Developer
Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Fri Sep 17, 2004 6:32 pm Post subject: |
|
|
I had that happen to me once... As I recall, I opened winspy, found the modal window, and clicked on activate. That brought it to the front. _________________ Hooligan
Why be normal? |
|
Back to top |
|
|
|