Update released.
This time the CoolBar control got my attention to make the control better.
First bugfix is that changing the VerticalGripper property on a vertical orientation CoolBar control was cumbersome.
The solution was to reset all header size dimensions to -1, thus the control has to recalculate them.
Second bugfix was that the HideCaption property of a Band was never written to the property bag.. easy fix to include in WriteProperties.
The actual improvement (make the control better) is as following:
The ForeColor of a Band (whether derived via 'UseCoolBarColors' or directly) was not supported when visual styles are applied.
However, that improvement works only on Vista+ (minimum comctl32.dll 6.1) since DrawThemeTextEx is not supported in Windows XP.
But there is another glitch that is fixed also for Windows XP. (MS never fixed this since Windows XP)
However, that glitch does not appear when visual styles are not applied.
The glitch can be replicated in following scenario:
Orientation = 1 - Vertical
VerticalGripper = True
3 Bands with initial settings except MinHeight of 1st Band set to 800 and input Caption text of "asd asd yxcyxc".
Then at run-time drag the band from left to right.
Before:
After:
As can be seen the text "asd asd yxcyxc" is measured by MS always on top-left and not the actual band coordinates.
These enhancements can be switched off by the conditional compilation constant 'ImplementThemedReBarFix'.




Reply With Quote