| View previous topic :: View next topic |
| Author |
Message |
kOt Contributor

Joined: 19 Jan 2004 Posts: 89 Location: Fyffe, AL
|
Posted: Sun Feb 29, 2004 6:54 am Post subject: Hiding Window from taskbar? |
|
|
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 |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Sun Feb 29, 2004 10:02 am Post subject: |
|
|
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 |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Mon Mar 01, 2004 6:21 pm Post subject: |
|
|
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 |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Mon Mar 01, 2004 7:33 pm Post subject: |
|
|
| 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 |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Mon Mar 01, 2004 7:38 pm Post subject: |
|
|
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...  _________________ [ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial! |
|
| Back to top |
|
 |
kOt Contributor

Joined: 19 Jan 2004 Posts: 89 Location: Fyffe, AL
|
Posted: Mon Mar 01, 2004 8:12 pm Post subject: |
|
|
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 |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Mon Mar 01, 2004 11:10 pm Post subject: |
|
|
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.
Cheers, Mac  _________________ 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 |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Tue Mar 02, 2004 1:02 am Post subject: |
|
|
| 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 |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Tue Mar 02, 2004 5:38 am Post subject: |
|
|
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
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Tue Mar 02, 2004 8:56 am Post subject: |
|
|
| 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...  |
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 |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Tue Mar 02, 2004 11:42 am Post subject: |
|
|
| 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...
Cheers, Mac  _________________ 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 |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Tue Mar 02, 2004 1:48 pm Post subject: |
|
|
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 |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Tue Mar 02, 2004 1:53 pm Post subject: |
|
|
True, but you still don't know which instance is which - same
as using the title. Am I just missing something here?
Cheers, Mac  _________________ 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 |
|
 |
|