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 


VDS IDE Mimimized???
Goto page 1, 2  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Sat Mar 22, 2003 10:17 pm    Post subject: VDS IDE Mimimized??? Reply with quote

Greetings everyone,

I'd like to know if anyone else has ever tried finding out the status of the
VDS IDE through your vds program? I've tried, and when vds is mimized,
it does not report as being minimized using the code below:

Code:
  If @equal(@winpos(#TMainWin,S),2)
    Info VDS Is Mimimized
  End
  If @equal(@winpos(#TMainWin,S),1)
    Info VDS Is In View
  End


Does anyone have any other suggestions that might help me detect when
the VDS IDE is minimized and in normal view?

Thanks,
-Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat Mar 22, 2003 10:23 pm    Post subject: Reply with quote

Hummm. That's odd. But try this:

Code:
  window iconize,#TMainWin
  If @equal(@winpos(#TMainWin,S),2)
    Info VDS Is Mimimized
  End
  If @equal(@winpos(#TMainWin,S),1)
    Info VDS Is In View
  End


It only works when it's this way. I think it's related to the way VDS minimizes. Confused

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


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sat Mar 22, 2003 10:40 pm    Post subject: Reply with quote

Shows to be normal in VDS3 when minimized too (using the title bar).
Maximized does report accurately though.

_________________
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
View user's profile Send private message Send e-mail
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Sat Mar 22, 2003 10:41 pm    Post subject: Reply with quote

Try #TScriptWin or #TApplication
_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Sat Mar 22, 2003 10:42 pm    Post subject: Reply with quote

That must be the problem then. The VDS IDE is not minimizing as
other programs do, it must be hiding itself instead. Oh well. What I
was trying to do, is when the VDS IDE is minimized, I was going to
have the Snip-Bar also minimize, and then when the IDE was
restored, have Snip-Bar restore.

-Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Sat Mar 22, 2003 10:43 pm    Post subject: Reply with quote

Hi Bill, I already tried #TScriptWin, same issue. I'll try the other one
you noted.

-Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Sat Mar 22, 2003 10:44 pm    Post subject: Reply with quote

#TApplication is the first window that is created when you run VDS. Try checking to see if it's minimized or whatever. Just a thought. Smile
_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat Mar 22, 2003 10:46 pm    Post subject: Reply with quote

Quote:
#TApplication is the first window that is created when you run VDS. Try checking to see if it's minimized or whatever. Just a thought. Smile


I tried that and it reported that it was in view both times.

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


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Sat Mar 22, 2003 10:47 pm    Post subject: Reply with quote

Well I feel like a complete newbie now!!!! Embarassed #TApplication was the
proper class to use and not #TMainWin.

Bill, thanks for mentioning that class name there. I'm not sure how I
missed using that class name.

-Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat Mar 22, 2003 10:51 pm    Post subject: Reply with quote

Yes, but Garrett, it seems that #TApplication doesn't minimize with VDS.
Your snippet falsely reported that VDS was in view.

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


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Sat Mar 22, 2003 10:53 pm    Post subject: Reply with quote

It's working for me now here. Snip-Bar minimizes if the VDS IDE is
minizmized... But! I have not tried this with the VDS 3.x IDE yet. So
before I jump for joy, let me run it side by side with the VDS 3.x IDE.

-Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat Mar 22, 2003 10:58 pm    Post subject: Reply with quote

So you are minimizing the VDS IDE with the minimize button or with the
code?

On Windows XP Professional I get a false report. Well, when Snip-Bar is
updated with this feature I'll tell you the results. Wink

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


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Sat Mar 22, 2003 10:59 pm    Post subject: Reply with quote

FreezingFire, here's the actual code I'm using here:

Code:
:TIMER
  If @equal(@winpos(#TApplication,S),2)
    If @equal(@winpos(#GTSNIPBAR01,S),1)
      Window Iconize,#GTSNIPBAR01
    End
  End
  If @equal(@winpos(#TApplication,S),1)
    If @equal(@winpos(#GTSNIPBAR01,S),2)
      Window Normal,#GTSNIPBAR01
    End
  End
  Goto Eventloop


And this works with the IDE for VDS 2,3,4 and 5.

Bill, FF, many thanks for helping Smile

-Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Sat Mar 22, 2003 11:35 pm    Post subject: Reply with quote

You're welcome as always Garrett. Glad to help. Smile
_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat Mar 22, 2003 11:44 pm    Post subject: Reply with quote

Quote:
You're welcome as always Garrett. Glad to help. Smile


Yes.

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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