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 1, 2  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
kOt
Contributor
Contributor


Joined: 19 Jan 2004
Posts: 89
Location: Fyffe, AL

PostPosted: Sun Feb 29, 2004 6:54 am    Post subject: Hiding Window from taskbar? Reply with quote

I got an Invisible - Notitle - Ontop window

So i can't use Smallcaps style to hide my window from
the taskbar.

What i want is to hide my window from the taskbar and instead use a taskicon in the system tray

anyway to do it?

_________________
Visual Dialogscript 5
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
jules
Professional Member
Professional Member


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

PostPosted: Sun Feb 29, 2004 10:02 am    Post subject: Reply with quote

Give the window a class, e.g. window create, ... CLASS MyWindow, then after the window show command do a window hide,#MyWindow.
_________________
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: Sun Feb 29, 2004 10:42 am    Post subject: Reply with quote

Julian, shouldn't this work as well?

Code:
window hide,@dlgtext()

_________________
[ 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: Mon Mar 01, 2004 6:21 pm    Post subject: Reply with quote

It probably would. However, I usually keep my apps in folders that have the same name as the program itself. One day I tore my hair out for an afternoon wondering why the Explorer window showing the folder kept disappearing every time I started the program. Think about it...
_________________
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: Mon Mar 01, 2004 7:29 pm    Post subject: Reply with quote

Laughing Maybe the next (if any?) VDS version should come with an @hwnd() function... 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
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1566

PostPosted: Mon Mar 01, 2004 7:33 pm    Post subject: Reply with quote

Skit you can already can get the Window Handle with VDS. It adds a % to the beginning but that is the window handle; in vds it's called 'Windows Id'.
Back to top
View user's profile Send private message
Skit3000
Admin Team


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

PostPosted: Mon Mar 01, 2004 7:38 pm    Post subject: Reply with quote

Yes, I know, but you can't get it the way I described (because of the potential Explorer problem), and with the way Julian told, you should add a classname to your window. Most languages already have a @hwnd() function/variable/parameter, so I think it may be confusing for people who are new to VDS... Rolling Eyes 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
kOt
Contributor
Contributor


Joined: 19 Jan 2004
Posts: 89
Location: Fyffe, AL

PostPosted: Mon Mar 01, 2004 8:12 pm    Post subject: Reply with quote

My window needs to be visible also but just not shown in the taskbar

It not a big deal but would be nice to just have it in the systray

If you need source i will gladly show it....

My window hides when a another window loses focus and shows again when its has focus again. And it kinda annoying to see a window keep poping up in the taskbar when its shown.

_________________
Visual Dialogscript 5
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Mac
Professional Member
Professional Member


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

PostPosted: Mon Mar 01, 2004 11:10 pm    Post subject: Reply with quote

You can get the handle of your app with @winexists() using
the title, if you call it immediately after DIALOG CREATE.
This works for multiple instances of the same app.

Here's a discussion with an example:

http://forum.vdsworld.com/viewtopic.php?t=995

BTW, multiple instances of an app with the same class
name is no better than using the title (in my opinion).
You can at least modify/increment titles at runtime if
necessary. Wink

Cheers, Mac Smile

_________________
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
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1566

PostPosted: Tue Mar 02, 2004 1:02 am    Post subject: Reply with quote

The best way I think is to use a Window class when you are creating the dialog. You can make the class name unique by using the datetime as part of the classname; so even if multiple copies of your program are open each has it's own unique class name.
Back to top
View user's profile Send private message
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Tue Mar 02, 2004 5:38 am    Post subject: Reply with quote

Hi kOt
What version of VDS are you using ??
Are you using any additional extension dlls/DSUs for alpha blending etc?

In VDS 5.01 this one works perfect on Win98/XP both IDE/compiled :
No Taskbar button is ever shown.


Code:
DIALOG CREATE,New Dialog,-1,0,240,160,NOTITLE,INVISIBLE,ONTOP
DIALOG ADD,BUTTON,BUTTON1,107,49,142,43,BUTTON1,,DEFAULT
DIALOG SHOW

:EVLOOP
WAIT EVENT
GOTO @EVENT()

:BUTTON1BUTTON
DIALOG HIDE
WAIT 3
DIALOG SHOW
WARN I will now close

:CLOSE
EXIT

_________________
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
jules
Professional Member
Professional Member


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

PostPosted: Tue Mar 02, 2004 8:56 am    Post subject: Reply with quote

Skit3000 wrote:
Most languages already have a @hwnd() function/variable/parameter, so I think it may be confusing for people who are new to VDS... Rolling Eyes Smile


But the idea behind VDS is that people shouldn't have to know about basic Windows nuts and bolts things like window handles. It's probably only confusing for people who come to VDS with some knowledge of Windows API programming and look for an API-style way of doing things. The idea behind being able to use the title bar caption, a class name prefixed by # ir a window-id (actually the window handle prefixed by %) is that you can use any of these things in a window command or function without worrying about it.

_________________
The Tech Pro
www.tech-pro.net
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: Tue Mar 02, 2004 11:42 am    Post subject: Reply with quote

PGWARE wrote:
You can make the class name unique by using the datetime as part of the classname; so even if multiple copies of your program are open each has it's own unique class name.


Good point Prakash, but doesn't that also make it impossible to
use the class name outside the app? Even the author wouldn't
know what it is... Confused

Cheers, Mac Smile

_________________
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
jules
Professional Member
Professional Member


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

PostPosted: Tue Mar 02, 2004 1:48 pm    Post subject: Reply with quote

As long as the first part of the name is specific to the app you could do a list ... winlist to determine if any instances are running.
_________________
The Tech Pro
www.tech-pro.net
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: Tue Mar 02, 2004 1:53 pm    Post subject: Reply with quote

True, but you still don't know which instance is which - same
as using the title. Am I just missing something here? Confused

Cheers, Mac Smile

_________________
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
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