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 


Hiding Window from taskbar?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Tue Mar 02, 2004 4:23 pm    Post subject: Reply with quote

Well with the risk of upsetting others I would say probably adding :

Code:
@hwnd(<DlgID>)
where <DlgID>) is 0 based index of the dialog.


in addition to what already exists would be very useful in avoidng unecessary workarounds and gives better control too in such situations. I think VDS runtime already has to maintain a record of these and so may not be so much overhead either.

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Tue Mar 02, 2004 4:27 pm    Post subject: Reply with quote

That sounds like a good solution to me... Smile
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
jules
Professional Member
Professional Member


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

PostPosted: Tue Mar 02, 2004 5:15 pm    Post subject: Reply with quote

Well I have a philosophical objection to using a C-like name in VDS, especially when there is already a function that can return a window ID, namely @winexists(). However, I take CodeScript's point that there isn't an easy way to get the window id of a specific child dialog. I wasn't thinking of that, probably because I don't usually need to display more than one instance of a dialog at any one time (it gets pretty hairy, handling the events.)
I seem to recall the one time I needed to do this, I did the following. Since the window is always active when you show it, I got its id by using @winactive right after the dialog show, and then stored the result in a hidden text element on the dialog itself. Then I could retrieve it whenever I wanted using @dlgtext. You could call the hidden element hwnd if you want to. Very Happy

_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Wed Mar 03, 2004 9:29 am    Post subject: Reply with quote

That's a nice solution... Smile
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Fri Mar 05, 2004 1:54 pm    Post subject: Reply with quote

jules wrote:
Well I have a philosophical objection to using a C-like name in VDS, especially when there is already a function that can return a window ID, namely @winexists(). However, I take CodeScript's point that there isn't an easy way to get the window id of a specific child dialog. I wasn't thinking of that, probably because I don't usually need to display more than one instance of a dialog at any one time (it gets pretty hairy, handling the events.)
I seem to recall the one time I needed to do this, I did the following. Since the window is always active when you show it, I got its id by using @winactive right after the dialog show, and then stored the result in a hidden text element on the dialog itself. Then I could retrieve it whenever I wanted using @dlgtext. You could call the hidden element hwnd if you want to. Very Happy


Well I don't think you need to change VDS Jules you already have a function in VDS that will return the child window ID's it's just that it's not explained in the VDS help file very well. Everyone just use the @window() function. This can return the Window ID of any child window. I have already sent Skit some VDS code to use this function so I don't know why he is asking these questions. Maybe I will go ahead and finish that unit that will make it a little easier to use. Also to get the Window ID/hwnd for a child window on a VDS dialog it's real easy

%A = @winexists(~BUTTON1)

How hard is that?

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Fri Mar 05, 2004 3:37 pm    Post subject: Reply with quote

I'm always in trouble with that @window() function. I know you explained me a few times, but I always get different results... Sad
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Sat Mar 06, 2004 2:14 am    Post subject: Reply with quote

Skit3000 wrote:
I'm always in trouble with that @window() function. I know you explained me a few times, but I always get different results... Sad


That's ok Skit I have my DSU in the works to make using it a bit easier Wink

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Goto page Previous  1, 2
Page 2 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