forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


IDE hangs after SHOWMODAL

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
Vic D'Elfant
Past Contributor
Past Contributor


Joined: 26 Jun 2002
Posts: 673
Location: The Netherlands

PostPosted: Tue Aug 24, 2004 11:43 am    Post subject: IDE hangs after SHOWMODAL Reply with quote

Hi Guys Wink
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 Wink).

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
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Tue Aug 24, 2004 1:03 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Vic D'Elfant
Past Contributor
Past Contributor


Joined: 26 Jun 2002
Posts: 673
Location: The Netherlands

PostPosted: Tue Aug 24, 2004 1:06 pm    Post subject: Reply with quote

I guess you're right FreezingFire Smile Let's hope that the users won't click the taskbar button when running the program Wink

Vic

_________________
phpBB Development Team
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Tue Aug 24, 2004 1:08 pm    Post subject: Reply with quote

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. Wink

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Tue Aug 24, 2004 1:28 pm    Post subject: Reply with quote

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 Smile

serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Vic D'Elfant
Past Contributor
Past Contributor


Joined: 26 Jun 2002
Posts: 673
Location: The Netherlands

PostPosted: Tue Aug 24, 2004 1:29 pm    Post subject: Reply with quote

Hey.... using that ONTOP style is a good idea! Very Happy I'll give it a try.

Vic

_________________
phpBB Development Team
Back to top
View user's profile Send private message Visit poster's website
Vic D'Elfant
Past Contributor
Past Contributor


Joined: 26 Jun 2002
Posts: 673
Location: The Netherlands

PostPosted: Tue Aug 24, 2004 1:36 pm    Post subject: Reply with quote

Hm.... the child window will always remain ontop of the other windows, but everything is better then loosing the window Wink

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? Laughing

Vic

_________________
phpBB Development Team
Back to top
View user's profile Send private message Visit poster's website
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Tue Aug 24, 2004 1:56 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Hooligan
VDS Developer
VDS Developer


Joined: 28 Oct 2003
Posts: 480
Location: California

PostPosted: Fri Sep 17, 2004 6:32 pm    Post subject: Reply with quote

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. Wink
_________________
Hooligan

Why be normal?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group