LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I change the size of the MS Windows taskbar at the bottom of the desktop

Hi,
 
I need to change the height of the Windows Taskbar at the bottom of the MS Windows Desktop.
 
I was able to extract the coordinates and handle of the taskbar using the attached vi. (This vi uses vis from the G Toolbox for LabVIEW). I tried several different things using vis from the G Toolbox and the LV util32.llb, but was unable to find a way of programmatically changing the width of the taskbar. Thank you for your suggestions.
 
Peter
0 Kudos
Message 1 of 7
(3,927 Views)
Why do you need to do this programmatically? Why not just set the size straight from the desktop and leave it set?

Not having the G Toolbox, I can't say if the necessary wrapper functions exist in that library, but you can take a look at this article that shows you the functions you need to call to hide/unhide the taskbar:

OFF97: How to Programmatically Hide and Unhide the Windows Taskbar.
0 Kudos
Message 2 of 7
(3,915 Views)
Use G Toolbox => Shell => Taskbar, you can set Taskbar to Auto Hide, Always on top, or both.
Reqire XP.
 
G Toolbox => Shell =>Hide SysCtrls can return taskbar handle.
 
 

Message Edited by zou on 10-23-2006 01:40 PM

George Zou
0 Kudos
Message 3 of 7
(3,905 Views)

Thanks for your reply. Some programs like Norton Virus Scan put in larger than usual icons into the task bar. This causes the taskbar to expand vertically by a few lines. I am reading information from a maximized application window. If the toolbar is wider than normal, the application window is automatically resized by Windows, and I can no longer read this information, as it is now displayed on a different absolute screen position. Thus I would like to force the taskbar to a standard height during the initialization of my LabVIEW program, and then leave it alone.

Peter

0 Kudos
Message 4 of 7
(3,902 Views)

Hi George,

Thanks for your reply. I can work with your suggestion of (temporarily) hiding the taskbar using the SysCtrl function. This was not my preferred solution, as it will require me to do numerous changes in my program. But once those changes are made, the problem will go away once and for all. My version of the G Toolbox 3.01 does not yet include the Taskbar function. But I can do without.

Out of interest. So there seems to be no way of adjusting the size of the taskbar programmatically?

Best regards,

Peter

0 Kudos
Message 5 of 7
(3,883 Views)
Hey Peter,
    Instead of resizing the task bar, you could control the size of your LabVIEW window, as stated in this KB.  Then you would always know how big your window will be, regardless of the location or size of the windows task bar.
Brian B
Account Manager
National Instruments
0 Kudos
Message 6 of 7
(3,854 Views)

Thanks, Brian.

The LabVIEW front panel is not the problem. My program communicates with the user interface of the native software running one of our instruments. I need to keep the size of this other user interface constant. The size of the LabVIEW UI does not matter.

I will go with the solution that George Zou suggested earlier. I will keep your link for future reference. Thanks.

Peter

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