1. how turn off task bar

Can anyone tell me how to programmatically turn the task bar "off" (& back
on again), so I can have a maximized window come up full screen?

Dan Moyer

new topic     » topic index » view message » categorize

2. Re: how turn off task bar

This doesn't "turn off" the taskbar, but it does hide it behind your window:

---- untested code starts here ----
include win32lib.ew

-- use the WinAPI to get the screen resolution in pixels
constant screenCX = c_func(xGetSystemMetrics,{SM_CXSCREEN})
constant screenCY = c_func(xGetSystemMetrics,{SM_CYSCREEN})

-- now create the window
constant MainWin = create(Window,"Big Winder",0,0,0,screenCX,screenCY,0)

----------------------
--- your code here ---
----------------------

WinMain(MainWin, Normal)
---- end code ----

Also, if you want to hide the caption bar with the -0X buttons in the upper
right hand corner, you can of course use the WS_POPUP window style.

Go to bed!
Brian

new topic     » goto parent     » topic index » view message » categorize

3. Re: how turn off task bar

Thanks Brian,

I was already using " getExtent(Window1)" to help center things in my
window, & I remember now that you remind me having seen SystemMetrics used
before somewhere, but it didn't occur to me to try that to make a fully big
window.  Thanks!

Dan


Brian wrote:


>This doesn't "turn off" the taskbar, but it does hide it behind your
window:
>
>---- untested code starts here ----
>include win32lib.ew
>
>-- use the WinAPI to get the screen resolution in pixels
>constant screenCX = c_func(xGetSystemMetrics,{SM_CXSCREEN})
>constant screenCY = c_func(xGetSystemMetrics,{SM_CYSCREEN})
>
>-- now create the window
>constant MainWin = create(Window,"Big Winder",0,0,0,screenCX,screenCY,0)
>
>----------------------
>--- your code here ---
>----------------------
>
>WinMain(MainWin, Normal)
>---- end code ----
>
>Also, if you want to hide the caption bar with the -0X buttons in the upper
>right hand corner, you can of course use the WS_POPUP window style.
>
>Go to bed!
>Brian

new topic     » goto parent     » topic index » view message » categorize

4. Re: how turn off task bar

Brian wrote:

>-- use the WinAPI to get the screen resolution in pixels
>constant screenCX = c_func(xGetSystemMetrics,{SM_CXSCREEN})
>constant screenCY = c_func(xGetSystemMetrics,{SM_CYSCREEN})

You can also use:

   screenSize = getExtent( Screen )

keep in mind that the user can resize the screen while an application is
running.

-- David Cuny

new topic     » goto parent     » topic index » view message » categorize

5. Re: how turn off task bar

Thanks Brian & David,

Some interesting things about both ideas for covering up the task bar:

1.  Brian used the "Normal" parameter in WinMain, & because I already had
"Maximize" there in my code, I left it like that; mistake, it HAS to be
"Normal" to work;

2.  If I run it while connected to Internet, the window won't stay big; it
starts out big, but then the screen flickers with other window's stuff & the
task bar comes back (not a problem for me, since mine isn't an Internet app,
but could be a problem for those that are);

3.  If the window IS resized, RESTORING it DOESN'T re-coverup the task bar
(I'll probably use Brian's suggestion & use WS_POPUP to eliminate the
buttons that would allow that, since it also denies manual resizing; gotta
remember to provide way to CLOSE it, with buttons gone!)

Dan Moyer

David wrote:

>Brian wrote:
>
>>-- use the WinAPI to get the screen resolution in pixels
>>constant screenCX = c_func(xGetSystemMetrics,{SM_CXSCREEN})
>>constant screenCY = c_func(xGetSystemMetrics,{SM_CYSCREEN})
>
>You can also use:
>
>   screenSize = getExtent( Screen )
>
>keep in mind that the user can resize the screen while an application is
>running.
>
>-- David Cuny

new topic     » goto parent     » topic index » view message » categorize

6. Re: how turn off task bar

Has anyone considered telling windoze to hide the taskbar with a win_msg?
Naturally, i don't know if that setting can be changed without rebooting,
but since clicking on the desktop makes the taskbar collapse, i'd guess
there is some msg to tell it to collapse once that's enabled.

Kat,
just musing.

----- Original Message -----
From: Dan B Moyer <DANMOYER at PRODIGY.NET>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Thursday, January 20, 2000 10:49 PM
Subject: Re: how turn off task bar


> Thanks Brian & David,
>
> Some interesting things about both ideas for covering up the task bar:
>
> 1.  Brian used the "Normal" parameter in WinMain, & because I already had
> "Maximize" there in my code, I left it like that; mistake, it HAS to be
> "Normal" to work;
>
> 2.  If I run it while connected to Internet, the window won't stay big; it
> starts out big, but then the screen flickers with other window's stuff &
the
> task bar comes back (not a problem for me, since mine isn't an Internet
app,
> but could be a problem for those that are);
>
> 3.  If the window IS resized, RESTORING it DOESN'T re-coverup the task bar
> (I'll probably use Brian's suggestion & use WS_POPUP to eliminate the
> buttons that would allow that, since it also denies manual resizing; gotta
> remember to provide way to CLOSE it, with buttons gone!)
>
> Dan Moyer
>
> David wrote:
>
> >Brian wrote:
> >
> >>-- use the WinAPI to get the screen resolution in pixels
> >>constant screenCX = c_func(xGetSystemMetrics,{SM_CXSCREEN})
> >>constant screenCY = c_func(xGetSystemMetrics,{SM_CYSCREEN})
> >
> >You can also use:
> >
> >   screenSize = getExtent( Screen )
> >
> >keep in mind that the user can resize the screen while an application is
> >running.
> >
> >-- David Cuny
>

new topic     » goto parent     » topic index » view message » categorize

7. Re: how turn off task bar

Kat,

That does sound like a better way, if it would work, although I haven't the
foggiest idea how to do so :)  , and Brian & Dave's suggestions worked ok
for me, in case I didn't make that clear; I just thought I'd mention the
caveats I noticed in case anyone else tried to use them in an Internet app.

But clicking on my desktop doesn't collapse my taskbar !?

Dan
(clicking here, clicking there, clicking everywhere)

Kat mused:


>Has anyone considered telling windoze to hide the taskbar with a win_msg?
>Naturally, i don't know if that setting can be changed without rebooting,
>but since clicking on the desktop makes the taskbar collapse, i'd guess
>there is some msg to tell it to collapse once that's enabled.
>
>Kat,
>just musing.
>
>----- Original Message -----
>From: Dan B Moyer <DANMOYER at PRODIGY.NET>
>To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
>Sent: Thursday, January 20, 2000 10:49 PM
>Subject: Re: how turn off task bar
>
>
>> Thanks Brian & David,
>>
>> Some interesting things about both ideas for covering up the task bar:
>>
>> 1.  Brian used the "Normal" parameter in WinMain, & because I already had
>> "Maximize" there in my code, I left it like that; mistake, it HAS to be
>> "Normal" to work;
>>
>> 2.  If I run it while connected to Internet, the window won't stay big;
it
>> starts out big, but then the screen flickers with other window's stuff &
>the
>> task bar comes back (not a problem for me, since mine isn't an Internet
>app,
>> but could be a problem for those that are);
>>
>> 3.  If the window IS resized, RESTORING it DOESN'T re-coverup the task
bar
>> (I'll probably use Brian's suggestion & use WS_POPUP to eliminate the
>> buttons that would allow that, since it also denies manual resizing;
gotta
>> remember to provide way to CLOSE it, with buttons gone!)
>>
>> Dan Moyer
>>
>> David wrote:
>>
>> >Brian wrote:
>> >
>> >>-- use the WinAPI to get the screen resolution in pixels
>> >>constant screenCX = c_func(xGetSystemMetrics,{SM_CXSCREEN})
>> >>constant screenCY = c_func(xGetSystemMetrics,{SM_CYSCREEN})
>> >
>> >You can also use:
>> >
>> >   screenSize = getExtent( Screen )
>> >
>> >keep in mind that the user can resize the screen while an application is
>> >running.
>> >
>> >-- David Cuny
>>

new topic     » goto parent     » topic index » view message » categorize

8. Re: how turn off task bar

----- Original Message -----
From: Dan B Moyer <DANMOYER at PRODIGY.NET>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Friday, January 21, 2000 8:07 AM
Subject: Re: how turn off task bar


> Kat,
>
> That does sound like a better way, if it would work, although I haven't
the
> foggiest idea how to do so :)  , and Brian & Dave's suggestions worked ok
> for me, in case I didn't make that clear; I just thought I'd mention the
> caveats I noticed in case anyone else tried to use them in an Internet
app.

Yeas, i saw that, but the thing is, clicking on any app collapses the
taskbar, once the taskbar loses focus it drops down off the desktop,, that
includes internet apps. If i have an Eu app running a windoze window and a
dos window, clicking on either drops the taskbar. If the app already has
focus, the taskbar drops on it's own when the mouse leaves it.

> But clicking on my desktop doesn't collapse my taskbar !?

Do you have "Hide Taskbar" enabled? Naturally, with windoze, it's in the
Start menu, under Settings.

> Dan
> (clicking here, clicking there, clicking everywhere)
>
> Kat mused:
>
>
> >Has anyone considered telling windoze to hide the taskbar with a win_msg?
> >Naturally, i don't know if that setting can be changed without rebooting,
> >but since clicking on the desktop makes the taskbar collapse, i'd guess
> >there is some msg to tell it to collapse once that's enabled.
> >
> >Kat,
> >just musing.
> >
> >----- Original Message -----
> >From: Dan B Moyer <DANMOYER at PRODIGY.NET>
> >To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
> >Sent: Thursday, January 20, 2000 10:49 PM
> >Subject: Re: how turn off task bar
> >
> >
> >> Thanks Brian & David,
> >>
> >> Some interesting things about both ideas for covering up the task bar:
> >>
> >> 1.  Brian used the "Normal" parameter in WinMain, & because I already
had
> >> "Maximize" there in my code, I left it like that; mistake, it HAS to be
> >> "Normal" to work;
> >>
> >> 2.  If I run it while connected to Internet, the window won't stay big;
> it
> >> starts out big, but then the screen flickers with other window's stuff
&
> >the
> >> task bar comes back (not a problem for me, since mine isn't an Internet
> >app,
> >> but could be a problem for those that are);
> >>
> >> 3.  If the window IS resized, RESTORING it DOESN'T re-coverup the task
> bar
> >> (I'll probably use Brian's suggestion & use WS_POPUP to eliminate the
> >> buttons that would allow that, since it also denies manual resizing;
> gotta
> >> remember to provide way to CLOSE it, with buttons gone!)
> >>
> >> Dan Moyer
> >>
> >> David wrote:
> >>
> >> >Brian wrote:
> >> >
> >> >>-- use the WinAPI to get the screen resolution in pixels
> >> >>constant screenCX = c_func(xGetSystemMetrics,{SM_CXSCREEN})
> >> >>constant screenCY = c_func(xGetSystemMetrics,{SM_CYSCREEN})
> >> >
> >> >You can also use:
> >> >
> >> >   screenSize = getExtent( Screen )
> >> >
> >> >keep in mind that the user can resize the screen while an application
is
> >> >running.
> >> >
> >> >-- David Cuny
> >>
>

new topic     » goto parent     » topic index » view message » categorize

9. Re: how turn off task bar

Dan,

Just to save a lot of back and forth, I believe that Kat is referring to what
happens to the task bar when autohide is turned on in the taskbar properties
dialog. The problem with that is that many other events can bring the task
bar back without your permission. Your program would have to check and/or
turn on that property, and then send it a message to go away. I'm not sure
what you would have to do to be notified every time the task bar wanted to
come back. I can't comment on the rest.

Everett L.(Rett) Williams
rett at gvtc.com

Dan B Moyer  wrote:

>But clicking on my desktop doesn't collapse my taskbar !?
>
>Dan
>(clicking here, clicking there, clicking everywhere)
>
>Kat mused:
>
>
>>Has anyone considered telling windoze to hide the taskbar with a win_msg?
>>Naturally, i don't know if that setting can be changed without rebooting,
>>but since clicking on the desktop makes the taskbar collapse, i'd guess
>>there is some msg to tell it to collapse once that's enabled.
>>
>>Kat,
>>just musing.
>>

new topic     » goto parent     » topic index » view message » categorize

10. Re: how turn off task bar

I have not been following this thread, but after a quick search on the MSDN
knowledge base, I came up with the following:
It is aimed at VBA, but by the looks of the API calls, it could be easily
adapted.
Send all grateful donations to..... :)

Nick

----- Original Message -----
From: Everett Williams <rett at GVTC.COM>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Saturday, January 22, 2000 8:55 AM
Subject: Re: how turn off task bar


> Dan,
>
> Just to save a lot of back and forth, I believe that Kat is referring to
what
> happens to the task bar when autohide is turned on in the taskbar
properties
> dialog. The problem with that is that many other events can bring the task
> bar back without your permission. Your program would have to check and/or
> turn on that property, and then send it a message to go away. I'm not sure
> what you would have to do to be notified every time the task bar wanted to
> come back. I can't comment on the rest.
>
> Everett L.(Rett) Williams
> rett at gvtc.com
>
> Dan B Moyer  wrote:
>
> >But clicking on my desktop doesn't collapse my taskbar !?
> >
> >Dan
> >(clicking here, clicking there, clicking everywhere)
> >
> >Kat mused:
> >
> >
> >>Has anyone considered telling windoze to hide the taskbar with a
win_msg?
> >>Naturally, i don't know if that setting can be changed without
rebooting,
> >>but since clicking on the desktop makes the taskbar collapse, i'd guess
> >>there is some msg to tell it to collapse once that's enabled.
> >>
> >>Kat,
> >>just musing.
> >>
>
>

new topic     » goto parent     » topic index » view message » categorize

11. Re: how turn off task bar

Nick,

That looks like exactly what I was looking for, except for the small matter
of the statement:

"Advanced: Requires expert coding, interoperability, and multiuser skills.
",

which unquestionably is NOT me  :(

I'll probably just stick with trying to cover the taskbar up with a POPUP
window, but thanks for finding the info.

Dan


Nick wrote:


>I have not been following this thread, but after a quick search on the MSDN
>knowledge base, I came up with the following:
>It is aimed at VBA, but by the looks of the API calls, it could be easily
>adapted.
>Send all grateful donations to..... :)
>
>Nick
>

new topic     » goto parent     » topic index » view message » categorize

12. Re: how turn off task bar

Kat, Everett,

Oh. Autohide taskbar. One more thing I didn't know about.  :)

Dan
--------

Kat wrote:

(Dan said:
> But clicking on my desktop doesn't collapse my taskbar !?)

Do you have "Hide Taskbar" enabled? Naturally, with windoze, it's in the
Start menu, under Settings.
-------------

And Everett wrote:


>Dan,
>
>Just to save a lot of back and forth, I believe that Kat is referring to
what
>happens to the task bar when autohide is turned on in the taskbar
properties
>dialog.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu