View previous topic :: View next topic |
Author |
Message |
asterite
Joined: 01 Jun 2006 Posts: 235 Location: Buenos Aires, Argentina
|
Posted: Sun Jun 18, 2006 10:11 am Post subject: ColumnHeader of ListView dosen't support unicode |
|
|
Hello!
I don't know where to post bugs, so I'm going to do it here.
I think the class ColumnHeader of ListView dosen't support unicode. Here's an example:
Code: |
private import std.string;
private import dfl.all;
class MyForm: Form
{
ListView lview;
this()
{
with(lview = new ListView)
{
dock = DockStyle.FILL;
view = View.DETAILS;
ColumnHeader col;
with(col = new ColumnHeader)
{
col.text = "Español";
width = 100;
}
columns.add(col);
const char[][] row = ["Español"];
addRow(row);
parent = this;
}
}
}
int main()
{
Application.run(new MyForm);
return 0;
}
|
Of course you have to save the file as unicode or replace the ñ character with any unicode character. The item appears ok but the column dosen't. I've checked the source code (listview.d) and I think I can see where the problem is, but I don't dare to mess with the code.
I hope this helps to make the library better. |
|
Back to top |
|
|
asterite
Joined: 01 Jun 2006 Posts: 235 Location: Buenos Aires, Argentina
|
Posted: Sun Jun 18, 2006 10:17 pm Post subject: |
|
|
Same goes with the text of a TabPage... |
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Mon Jun 19, 2006 11:49 am Post subject: Re: ColumnHeader of ListView dosen't support unicode |
|
|
It is known that DFL doesn't completely support Unicode yet, but it's getting there. There is a BugList that mentions this (says UTF), but you're welcome to report bugs here. I try to give some priority to bugs reported by users, but that depends on other things such as the difficulty. I'll see about having these controls fully support Unicode soon; these two should be an easy update.
- Chris |
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Thu Jun 22, 2006 9:48 pm Post subject: Re: ColumnHeader of ListView dosen't support unicode |
|
|
These controls now support Unicode in the current snapshot. |
|
Back to top |
|
|
asterite
Joined: 01 Jun 2006 Posts: 235 Location: Buenos Aires, Argentina
|
Posted: Fri Jun 23, 2006 5:03 am Post subject: |
|
|
Great!! Thanks a lot!!
I didn't know wether to post it, but MenuItem also dosen't render unicode well. Do you want me to, as I use the controls, leave in the BugList ( http://wiki.dprogramming.com/Dfl/BugList ) the controls that still dosen't support unicode?
Like this:
UTF-8 not completely supported yet (it's getting there). Controls not unicode-aware:
- MenuItem
- etc.
That way you can see easily which componets miss, and also users dosen't get a surprise if a control they use dosen't work as they expect. And I think they are not that much, so it will be nice seeing few controls.
Also thanks for this: http://www.dsource.org/forums/viewtopic.php?p=9764#9764
Very much appreciated |
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
|
Back to top |
|
|
|