Results 1 to 40 of 4199

Thread: CommonControls (Replacement of the MS common controls)

Threaded View

  1. #10

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,728

    Re: CommonControls (Replacement of the MS common controls)

    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.

    Name:  CoolBarThemedTextColor.png
Views: 7324
Size:  1.3 KB

    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:
    Name:  CoolBarGlitchBeforeFix.png
Views: 7163
Size:  2.2 KB

    After:
    Name:  CoolBarGlitchAfterFix.png
Views: 7226
Size:  2.3 KB

    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'.
    Last edited by Krool; Oct 4th, 2017 at 01:31 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width