Home All Groups Group Topic Archive Search About

vbaccelerator - compile ListView for Unicode?

Author
8 Oct 2005 1:43 PM
jameshamilton777
I'm trying out the wonderful ListView control by Steve at
vbaccelerator:

http://www.vbaccelerator.com/home/VB/Code/Controls/ListView/article.asp

The binary doesn't do Unicode. But the source code seems to have
Unicode built-in, it's just turned off in the conditional compilation
directive. I can't get it to compile with the Unicode directive, there
are lots of errors that I can't fix.

Has anyone compiled this to be Unicode complient?

Author
8 Oct 2005 3:04 PM
Ken Halter
<jameshamilton***@hotmail.com> wrote in message
news:1128779032.922506.151040@z14g2000cwz.googlegroups.com...
> I'm trying out the wonderful ListView control by Steve at
> vbaccelerator:
>
> http://www.vbaccelerator.com/home/VB/Code/Controls/ListView/article.asp
>
> The binary doesn't do Unicode. But the source code seems to have
> Unicode built-in, it's just turned off in the conditional compilation
> directive. I can't get it to compile with the Unicode directive, there
> are lots of errors that I can't fix.
>
> Has anyone compiled this to be Unicode complient?

Not me.... the unicode support seems to be "work in progress" that he may
never complete. There's a section at the bottom of the page that reads.....

"There are a few omissions with the control at this point which are still
being researched:"

One of the items in the list "Text is currently set using ANSI APIs"

--
Ken Halter - MS-MVP-VB - http://www.vbsight.com
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
Please keep all discussions in the groups..
Author
8 Oct 2005 3:41 PM
Someone
Before going to vbaccelerator site, you may want to read their usage policy.
You have to put an ad space for their site as seen in item 2 in the
following link. This may or may not be okay with your boss or team leader.
IMO, this is more than just giving credit.

http://www.vbaccelerator.com/home/The_Site/Usage_Policy/article.asp

Also, you may want to look at CCM_SETUNICODEFORMAT in MSDN, I never used it
before.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/common/messages/ccm_setunicodeformat.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/listview/messages/lvm_setunicodeformat.asp

There is another ListView replica out there that is free, but it's a class,
not a UserControl, but it's easy to change it to a UserControl. The site at
the moment seems to be under maintenance.

http://www.vbbox.com/vb/codebox/


<jameshamilton***@hotmail.com> wrote in message
Show quoteHide quote
news:1128779032.922506.151040@z14g2000cwz.googlegroups.com...
> I'm trying out the wonderful ListView control by Steve at
> vbaccelerator:
>
> http://www.vbaccelerator.com/home/VB/Code/Controls/ListView/article.asp
>
> The binary doesn't do Unicode. But the source code seems to have
> Unicode built-in, it's just turned off in the conditional compilation
> directive. I can't get it to compile with the Unicode directive, there
> are lots of errors that I can't fix.
>
> Has anyone compiled this to be Unicode complient?
>
Author
8 Oct 2005 5:01 PM
Someone
Here is another working URL to download CodeBox, but the main site has
better documentation and easy navigation to view the source files. CodeBox
has replicas for all Common Controls using the API, plus many other useful
libraries.

http://sourceforge.net/projects/codebox/

See "listviewsort" demo in the demos folder to see how to use it and what
files to include in your project. You could put the code in the 4 standard
modules that the list view requires in one file if you want.

If you want to make it work with Unicode, you may have to use the W version
of API calls after checking the OS version and use "If bUnicode Then".

Obtaining Windows' Version Information
http://vbnet.mvps.org/index.html?code/system/getversionex.htm

Obviously you could get a 3rd party control and save your time.


"Someone" <nob***@cox.net> wrote in message
news:dMR1f.2201$MN6.909@fed1read04...
Show quoteHide quote
> Before going to vbaccelerator site, you may want to read their usage
> policy. You have to put an ad space for their site as seen in item 2 in
> the following link. This may or may not be okay with your boss or team
> leader. IMO, this is more than just giving credit.
>
> http://www.vbaccelerator.com/home/The_Site/Usage_Policy/article.asp
>
> Also, you may want to look at CCM_SETUNICODEFORMAT in MSDN, I never used
> it before.
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/common/messages/ccm_setunicodeformat.asp
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/listview/messages/lvm_setunicodeformat.asp
>
> There is another ListView replica out there that is free, but it's a
> class, not a UserControl, but it's easy to change it to a UserControl. The
> site at the moment seems to be under maintenance.
>
> http://www.vbbox.com/vb/codebox/
>
>
> <jameshamilton***@hotmail.com> wrote in message
> news:1128779032.922506.151040@z14g2000cwz.googlegroups.com...
>> I'm trying out the wonderful ListView control by Steve at
>> vbaccelerator:
>>
>> http://www.vbaccelerator.com/home/VB/Code/Controls/ListView/article.asp
>>
>> The binary doesn't do Unicode. But the source code seems to have
>> Unicode built-in, it's just turned off in the conditional compilation
>> directive. I can't get it to compile with the Unicode directive, there
>> are lots of errors that I can't fix.
>>
>> Has anyone compiled this to be Unicode complient?
>>
>
>