LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

ATTR_TASKBAR_BUTTON_TEXT

Solved!
Go to solution

Hello,

 

the function call SetSystemAttribute ( ATTR_TASKBAR_BUTTON_TEXT, ) works fine when the program is run under Windows XP. Running the same software under Windows 7, however, only the application icon is shown in the taskbar, but no text. I tend to believe that this is more of a general Windows 7 feature than a problem of CVI, still:

 

  1. Is there a way to have some short text displayed in the taskbar (e.g. app name, release version) also for Windows 7?
  2. If not, I suggest correcting the help text of this function, which does not indicate any limitation.

Thanks!

0 Kudos
Message 1 of 6
(3,699 Views)

Hi Wolfgang,

 

I don't have a windows XP comp ready for test. Do you think you could post a screenshot on how this used to look on windows XP?

 

Thanks

 

Regards 

______________
Florian Abry
Inside Sales Engineer, NI Germany
0 Kudos
Message 2 of 6
(3,680 Views)

Sure Smiley Wink

 

taskbar.png

0 Kudos
Message 3 of 6
(3,678 Views)
Solution
Accepted by topic author Wolfgang

Hi Wolfgang,

 

Either I misunderstood the question or it works for me. After I releases the executable and run it, this is how my taskbat looks:

 

cvi taskbar.png

 

I use CVI 2010 SP1 in Win 7 Enterprise x64 SP1

 

The code I used:

 

#include <cvirte.h>		
#include <userint.h>
#include "CVI_Bar_Test.h"

static int panelHandle;

int main (int argc, char *argv[])
{
	if (InitCVIRTE (0, argv, 0) == 0)
		return -1;	/* out of memory */
	if ((panelHandle = LoadPanel (0, "test.uir", PANEL)) < 0)
		return -1;
	DisplayPanel (panelHandle);
	SetSystemAttribute (ATTR_TASKBAR_BUTTON_TEXT, "SATRECH 2.6");
	RunUserInterface ();
	DiscardPanel (panelHandle);
	return 0;
}

int CVICALLBACK panel (int panel, int event, void *callbackData,
		int eventData1, int eventData2)
{
	switch (event)
	{
		case EVENT_CLOSE:
			QuitUserInterface(0);
			break;
	}
	return 0;
}

 

My supposition is that you activate the pile-up of task in the task bar option. in that case, no names are displayed. This option hide the names, but you can change it to a view where all tasks are close to another, like in all other versions of windows (it is, in my opinion, more efficient to work that way).

 

Best Regards

______________
Florian Abry
Inside Sales Engineer, NI Germany
Message 4 of 6
(3,676 Views)

Thank you, Naity, you were right!

 

Obviously I am still more familiar with Windows XP than with Windows 7... The behavior can be changed by right clicking on the Windows taskbar, chosing 'Properties', and in the 'Taskbar and Start Menu Properties' popup panel one has to adjust the ring 'Taskbar buttons'. Now everything is as expected... Thanks and sorry for not being related to CVI...

0 Kudos
Message 5 of 6
(3,666 Views)

It's ok, you learned something that might ne very useful in your future Win 7 user experience, and that's important 😉

 

Even though I'm familiar with Win 7 since its beta, I still can not work with the piled up tasks in the taskbar and I find the "Windows XP-like" display much more comfortable.

 

Best Regards

______________
Florian Abry
Inside Sales Engineer, NI Germany
0 Kudos
Message 6 of 6
(3,664 Views)