FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ColumnHeader of ListView dosen't support unicode

 
Post new topic   Reply to topic     Forum Index -> DFL
View previous topic :: View next topic  
Author Message
asterite



Joined: 01 Jun 2006
Posts: 235
Location: Buenos Aires, Argentina

PostPosted: Sun Jun 18, 2006 10:11 am    Post subject: ColumnHeader of ListView dosen't support unicode Reply with quote

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. Smile
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
asterite



Joined: 01 Jun 2006
Posts: 235
Location: Buenos Aires, Argentina

PostPosted: Sun Jun 18, 2006 10:17 pm    Post subject: Reply with quote

Same goes with the text of a TabPage...
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Mon Jun 19, 2006 11:49 am    Post subject: Re: ColumnHeader of ListView dosen't support unicode Reply with quote

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
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Thu Jun 22, 2006 9:48 pm    Post subject: Re: ColumnHeader of ListView dosen't support unicode Reply with quote

These controls now support Unicode in the current snapshot.
Back to top
View user's profile Send private message
asterite



Joined: 01 Jun 2006
Posts: 235
Location: Buenos Aires, Argentina

PostPosted: Fri Jun 23, 2006 5:03 am    Post subject: Reply with quote

Great!! Thanks a lot!! Smile

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. Razz

Also thanks for this: http://www.dsource.org/forums/viewtopic.php?p=9764#9764

Very much appreciated Very Happy
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Sun Jun 25, 2006 10:53 pm    Post subject: Reply with quote

asterite wrote:
Great!! Thanks a lot!! Smile

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?


Good idea; I created and linked to page http://wiki.dprogramming.com/Dfl/UnicodeSupport from http://wiki.dprogramming.com/Dfl/BugList to which you are welcome to add.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DFL All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group