Results 1 to 4 of 4

Thread: A quick testing of the day: UniListBox

  1. #1

    Thread Starter
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    A quick testing of the day: UniListBox

    As I'm already in a hurry to continue with the main project of mine, I'll have some people from here test the control more throughoutly than I'm able to. I just need a quick test for whatever comes into mind, running only for a day or two (which is why I'm not posting this to project requests).

    The quick factsheet:
    • should never crash under IDE (subclassed safely)
    • should support Unicode (except under 9X/ME)
    • should add and remove items and clear the list
    • should be able to set style to checked/standard through code
    • should set columns automatically in AutoColumn mode when resized
    • should be able to set the colors freely


    No, it doesn't support sorting, multiselect or databinding. The Unicode support is done by converting strings internally to UTF8, so the control is able to store the strings in the native listbox instead of using a separate array. The bad thing is that it needs to convert between UTF8 and UTF16 when drawing and when accessed, but it shouldn't be too bad of a problem (by default listbox does this between ANSI and UTF16).
    Attached Files Attached Files

  2. #2

    Thread Starter
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    Re: A quick testing of the day: UniListBox

    First bug/issue found: the subclasser doesn't like SetWindowPos if it is used to the UserControl Parent element. Unfortunatenaly that goes out of my experience level, so I can't solve what I should do to fix the issue or if it can be fixed. At the moment trying out general workarounds (I'm trying to have a form to stay on top).

    Issue solved: SetWindowPos can be called in Form_Load before anything is done to the listbox by code. Earlier I had the code in Form_Activate.
    Issue not solved: it still causes a crash randomly; especially if something is done to the listbox.



    (for mods: don't worry, next time I find something I'll just edit this message)
    Last edited by Merri; Nov 4th, 2005 at 09:07 AM.

  3. #3
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: A quick testing of the day: UniListBox

    Bug, the checkboxes get messed up (some dissapear) when you scroll the list.

  4. #4

    Thread Starter
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    Re: A quick testing of the day: UniListBox

    Weird. I haven't had that kind of bug since I made a fix to the code I used as a sample (by Aaron Young). In his code there was a small leak due to improper placement of DeleteObject. I guess I should go through every single API command with thought and using a sample that I know to work as a comparison.


    Can you reproduce the error? Exactly when it happens? It does sound a bit different to what I had before (all checkboxes disappeared permanently).

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