08-06-2012 12:37 AM
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:
Thanks!
Solved! Go to Solution.
08-07-2012 03:55 AM
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
08-07-2012 04:09 AM
Sure
08-07-2012 04:24 AM
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:
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
08-07-2012 02:21 PM
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...
08-07-2012 03:10 PM - edited 08-07-2012 03:10 PM
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