Jump to content

Harry Bego

Members
  • Content Count

    9
  • Joined

  • Last visited

Posts posted by Harry Bego


  1. Ok so in Windows 11 the only way to get rid of the solid blue and get decent looking checkboxes and radio buttons is to use styles. I have been using customized styles a lot but not for checkboxes and radio buttons since these didn’t look good at high dpi. But I now find that the new high DPI styles work great and the “Sky” style has nice checkboxes. Also, you can choose a style per control so I can use Sky just for the checkboxes and radio buttons.

     

    Problem solved. Thanks for all responses.


  2. 16 hours ago, Stano said:

    This is a matter of OS and the great innovation of W11. As you can see, this can only be changed using themes.

    The issue is unrelated to themes. It’s the same in all themes.

     

    Looks like it is a similar thing to what we saw initially in listviews in Windows 10: selected items had a solid blue background.


  3. Solved! It turned out that one of the cases in a switch statement processing arrow keys did not call the default proc where it should, so the Selected property was not unset. 

     

    Moral of story: if a subclassed window procedure shows incorrect default behavior, you're probably not calling the default procedure. 

     

     


  4. Thank you. I did test with a basic TListView and that works fine.

     

    There's a lot going on. It uses a home-brewn virtual list; I'm afraid it may be the subclassing. But I'm also using an TApplicationEventsShortCut to dispatch keyboard events.

     

    I still hope it is something simple. Rebuilding it from the ground up will take two months. 

     


  5. I have a TListView, report style, with MultiSelect == true; after selecting multiple items, pressing VK_DOWN does not correctly clear the selection. It visually unselects the items, and unsets their Selected properties. However, pressing Shift + Click includes the 'old' items in the selection.

     

    Clicking an item does correctly clear the selection.

    The listview is subclassed, but the default procedure is called correctly (I think). I've tried various ways to clear the selection but somehow the listview remembers. The only way I can make it forget is to clear and reload it.

     

    Am I missing something? Thank you for any clues!

×