02-26-2008 09:54 AM
02-26-2008 11:26 AM
02-27-2008 04:57 AM
Thanks Luis,
I have developed many applications over the last 10 years or so and most use coloured command buttons. Some of theses applications still get the occasional tweak so the problems with CVI V8 make it impossible for me to re-compile using this version. It does seem strange to me that most software applications that are in general use manage to create proper dimmed buttons regardless of colours used. In fact NI themselves use coloured buttons in the CVI development environment. So it is a bit odd being told by NI (your explanation is the same as that given by NI UK Support and like you they say there is little chance this issue will be resolved in the near to medium future) that CVI version 8 users can only use standard windows colours, i.e. grey or white button with black text.
Regards
Richard
02-27-2008 09:27 AM
I want to second Richard's concerns.
The old algorithm might have had some drawbacks (although I never encountered one) for the developers but being aware of it we could -and did- make it work for us.
With the new algorithm, the main dimming ability is hindered for the sake of better performance in some special cases that has lower probability to occur.
I think application developers use dimming mostly for simple purposes like preventing the user from pressing the EXIT button while a serious process is running etc.
02-27-2008 11:17 AM
Hello Richard and Eren,
You both raise valid points. Although we want to continue using the new dimming algorithm, and we will continue tweaking it such that it works better with non-standard colors, there is no good reason why we can't also offer the old algorithm, if you do prefer it. Although it has its problems, I agree that for certain controls (command buttons, for example) it can work just fine.
In the next version of CVI, we will add an option for toggling between the two algorithms. The only caveat is that the choice will probably be global. It will not be per-control.
Thanks for the feedback!
Luis
02-27-2008 03:40 PM
11-24-2008 10:10 AM
11-24-2008 10:52 AM
Hello Richard,
In 9.0 there is a system attribute that allows you to pick the method of dimming that was in effect prior to version 8.0 Have you tried using it?
SetSystemAttribute (ATTR_USE_CHECKERBOARD_DIMMING, 1);
Luis
11-24-2008 11:52 PM
Hi,
It is nice to see that it is possible to use the old method.
But I'd prefer to have it also in the "User Interface Preferences" kind of menu, in the UIR editor, so that we can try the control appearance while in the UIR editor without having to run the code.
I did not install 9.0 yet, so I do not know if this option is available.
Is it?
11-25-2008 10:24 AM
That's a good point. No, it's not currently available in the UI Editor. We could certainly add it to the Preferences dialog, and have it control how it looks in the editor, but since this was implemented as a global runtime attribute (system attribute) it can't really be associated with any one .uir file. At runtime, it would still require you to add the SetSytemAttribute call to any program where you want the old style. And that might be confusing to some users who might have the option turned on in the editor, but then start seeing a different behavior at runtime.
So I'll have to think about that some more.
Luis