Results 1 to 40 of 4199

Thread: CommonControls (Replacement of the MS common controls)

Threaded View

  1. #11

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,728

    Re: CommonControls (Replacement of the MS common controls)

    Update released.

    No bugfix this time, but new feature.

    The Style property in the ListBoxW control can now be '2 - Option', beside '1 - Checkbox' and '0 - Standard'.
    With this the list box can have options that are mutually exclusive.

    Benefit to a OptionButton-Array is obvious as it inherits some useful features like scrolling, sorting, data binding and multi-column.

    With the new 'OptionIndex' run-time property the app can control the current checked item.
    Setting OptionIndex to -1 will clear everything.
    However, the ItemChecked property can also be used. Also the ItemBeforeCheck and ItemCheck events are called by this.

    Name:  OptionListBox.png
Views: 4147
Size:  1.8 KB

    Second point is for the ListView.
    There is a behavior difference between MS ListView version 5.0 and 6.0.
    By that new property 'AutoSelectFirstItem' the behavior can be chosen actually. By default it is True to match the behavior of MS 6.0 ListView.

    EDIT:
    Fixed a bug that the item's checkboxes/options were not drawn grayed in a disabled non-standard Style ListBoxW control.
    On update from 18-Oct-2016 was only the text fixed to drawn grayed in that case, but not the button itself.

    The OCX has been updated accordingly that the checkboxes will now drawn grayed in a disabled Checkbox Style ListBoxW control. (options not available in OCX)
    Last edited by Krool; Jan 21st, 2017 at 07:40 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