LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Hide windows desktop and mouse

Hi,

I need to hide the mouse and the desktop, including the fine white line that is left after manually hiding the taskbar. In other words, I need the front panel to completely fill the screen.
I am using Evaluation LabView 6.0.1 on Win98.

Thanks,

Yossi
0 Kudos
Message 1 of 7
(3,776 Views)
To hide the mouse you need to download the Windows Utilities available for LabVIEW on ni.com.

To make the front panel cover the whole screen, read the application property Display->All Monitors and extract the actual screen resolution. Assign this size to the Front Panel Window->Windows bound property node of the VI. The property "Size to Screen" does not make the VI panel to cover the task bar.


LabVIEW, C'est LabVIEW

0 Kudos
Message 2 of 7
(3,776 Views)
Hi,

This will explain the hiding if the taskbar:

First, you need a hWnd (window reference) to the taskbar:

Use FindWindowA. The class of the taskbar is "Shell_traywnd", window name is
"".

Use SetWindowPos to set all positions to '0', exept the last one (uFlags).
Use 0x40h and 0x80h to show or hide the taskbar.

Regards,

Wiebe.




BTW:

BOOL SetWindowPos(
HWND hWnd, // handle to window
HWND hWndInsertAfter, // placement-order handle
int X, // horizontal position
int Y, // vertical position
int cx, // width
int cy, // height
UINT uFlags // window-positioning options
);


HWND FindWindow(
LPCTSTR lpClassName, // class name
LPCTSTR lpWindowName // window name
);

Bo
th are in User32.llb


"Yossi Zana" wrote in message
news:506500000008000000703D0000-1012609683000@exchange.ni.com...
> Hi,
>
> I need to hide the mouse and the desktop, including the fine white
> line that is left after manually hiding the taskbar. In other words, I
> need the front panel to completely fill the screen.
> I am using Evaluation LabView 6.0.1 on Win98.
>
> Thanks,
>
> Yossi
0 Kudos
Message 3 of 7
(3,776 Views)
Hi,

To make this work, the taskbars 'auto hide' option must be disabled!

Regards,

Wiebe.

"AIR" wrote in message news:a5fj3m$b1e$1@news1.xs4all.nl...
> Hi,
>
> This will explain the hiding if the taskbar:
>
> First, you need a hWnd (window reference) to the taskbar:
>
> Use FindWindowA. The class of the taskbar is "Shell_traywnd", window name
is
> "".
>
> Use SetWindowPos to set all positions to '0', exept the last one (uFlags).
> Use 0x40h and 0x80h to show or hide the taskbar.
>
> Regards,
>
> Wiebe.
>
>
>
>
> BTW:
>
> BOOL SetWindowPos(
> HWND hWnd, // handle to window
> HWND hWndInsertAfter, // placement-order handle
> int X, // horizontal position
> int Y, // vertical position
> int cx,
// width
> int cy, // height
> UINT uFlags // window-positioning options
> );
>
>
> HWND FindWindow(
> LPCTSTR lpClassName, // class name
> LPCTSTR lpWindowName // window name
> );
>
> Both are in User32.llb
>
>
> "Yossi Zana" wrote in message
> news:506500000008000000703D0000-1012609683000@exchange.ni.com...
> > Hi,
> >
> > I need to hide the mouse and the desktop, including the fine white
> > line that is left after manually hiding the taskbar. In other words, I
> > need the front panel to completely fill the screen.
> > I am using Evaluation LabView 6.0.1 on Win98.
> >
> > Thanks,
> >
> > Yossi
>
>
0 Kudos
Message 5 of 7
(3,776 Views)
Hi,

this will explain the hiding of the mouse;

Use ShowCursor to show it.

If hShow is true, an internal counter is increased, if false decreased.

If the counter is zero or larger, the mouse is visible. Note that this only
works in the calling application (=LabVIEW).

Regards,

Wiebe.



Btw:

int ShowCursor(
BOOL bShow // cursor visibility
);

From User32.dll


"Yossi Zana" wrote in message
news:506500000008000000703D0000-1012609683000@exchange.ni.com...
> Hi,
>
> I need to hide the mouse and the desktop, including the fine white
> line that is left after manually hiding the taskbar. In other words, I
> need the front panel to completely fill the screen.
> I am using Evaluation LabView 6.0.1 on Win98.
>
> Thanks,
>
> Yossi
0 Kudos
Message 4 of 7
(3,776 Views)
Thanks for all that answered my question. The simplest way to let the Front Panel fill the screen was to read the application property Display->WkSpace and extract the actual screen resolution, and then increasing the Botton value by 33 (the eliminate the task bar).


For the mouse hiding, I used the ShowCursor function (user32.dll). However, the mouse was hiden only after it was drifted out of the sub-vi front panel. When the sub-vi was called from the main aplication, it simply was not hiden. Any idea?

Yossi
Download All
0 Kudos
Message 6 of 7
(3,776 Views)
Do not forget that the task bar may be placed on the sides of the screen and can be larger than 33 pixels when set to multiple lines. So the safest way is to read the screen resolution, not the display workspace.


LabVIEW, C'est LabVIEW

0 Kudos
Message 7 of 7
(3,776 Views)