Jump to content


Photo

Nextgrid caption does not support Unicode


  • Please log in to reply
20 replies to this topic

#1 Vu Quang Thang

Vu Quang Thang
  • Members
  • 91 posts

Posted 21 July 2007 - 05:52 AM

Hello Boki,

It seems that Nextgrid Caption does not support Unicode. Can you fix this?

Regards

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 21 July 2007 - 12:11 PM

Hello Sayxanath,

I have fix it. Thank you.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 Vu Quang Thang

Vu Quang Thang
  • Members
  • 91 posts

Posted 18 September 2007 - 06:12 AM

Hello Boki,

This bug still exists in version 4.1.5.

Regards

#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 18 September 2007 - 02:00 PM

Hello Sayanath,

It is WideString already. Maybe correct Font is not chosen for Grid itself?

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#5 Vu Quang Thang

Vu Quang Thang
  • Members
  • 91 posts

Posted 18 September 2007 - 02:45 PM

Hello Boki,

It shows the caption correctly if you assign a Unicode string to the caption at run-time. But at design-time, all you type or paste in Caption become ????. Maybe there is a bug in property windows. I attach here a demo with Saysetha OT font.

Regards,

Attached Files



#6 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 18 September 2007 - 03:10 PM

Hello Sayxanath,

Unfortunatelly Delphi's IDE doesn't support unicode in ObjectInspector (design-time) without some additional plug-in as far I know unsure.gif

You will need to set it in run-time.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#7 Vu Quang Thang

Vu Quang Thang
  • Members
  • 91 posts

Posted 19 September 2007 - 05:09 AM

Hello Boki,

I think it is a new bug of NextGrid. Agree that we cannot see Unicode characters correctly on ObjectInspecter but we can see it on Unicode aware controls. With the previous version of NextGrid I can type Unicode on NextGrid column caption. Now I cannot even when I first open the form, Unicode characters still there. But when I type a new Unicode character, it becomes all ???.

Regards,

#8 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 19 September 2007 - 06:16 AM

Hello Sayxanath,

I am really not sure how to do this, and it is possible sad.gif I am also nothing change since previous versions about this property.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#9 Vu Quang Thang

Vu Quang Thang
  • Members
  • 91 posts

Posted 21 September 2007 - 07:51 PM

Hello Boki,

Today I have installed the NextGrid version 4.0.1 and I can type Unicode in column header caption now. Could you please check it again. There must be something has changed since then. For your information, the version 4.1.5 has no problem with column footer caption.

Regards,

#10 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 21 September 2007 - 09:02 PM

Hello Sayxanath,

I have spot it now, it was my mistake. I will work on it now.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#11 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 21 September 2007 - 09:35 PM

Hello Sayxanath,

I have fix it. I was need to add conditional statement for Delphi2005 and up. I will send you updated file now.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#12 Vu Quang Thang

Vu Quang Thang
  • Members
  • 91 posts

Posted 22 September 2007 - 05:20 AM

Hello Boki,

I have replaced NxGridReg.pas and recompiled all available packages but it does not help. I attach here my form that using TntUnicodeControls and NextGrid. You can test by copy the caption of a radio button and paste into a NextGrid column header caption. In this form I use Saysetha OT font that I provided in the last message. In addition, I am using Delphi 7.

Kind regards,

Attached Files



#13 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 22 September 2007 - 08:45 AM

Hello Sayxanath,

Can you please tell me which version of Delphi you use?

Thank you.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#14 Vu Quang Thang

Vu Quang Thang
  • Members
  • 91 posts

Posted 22 September 2007 - 06:21 PM

Hello Boki,

As I said in the last post, I am using Delphi 7 Enterprise Update Pack 1 (Build 8.1)

Regards

#15 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 22 September 2007 - 06:30 PM

Hello Sayanath,

Please sorry for miss-read.

For now it works in Delphi 2005 and up, and now need to see how to work in Delphi 7 (Delphi 6 doesn't support it).

In Delphi 2005 and up there is a TWideStringProperty design-time class but in Delphi 7 not and I need to see what I need to inherit to add Unicode support too.

When I don't have my own property editor all work fine, but for Column.Header I was add multi-line editor and this made a problem. I will see what to do.

You may do next in NxGridReg.pas, comment next 2 lines in Register procedure:

CODE
  RegisterPropertyEditor(TypeInfo(WideString), TColumnHeader, 'Caption', TNxCaptionProperty);
  RegisterPropertyEditor(TypeInfo(WideString), TNxCustomGrid, 'Caption', TWideCaptionProperty);


but I will need to solve it better, because this will disable multi-line header editing.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#16 Vu Quang Thang

Vu Quang Thang
  • Members
  • 91 posts

Posted 24 September 2007 - 11:21 AM

Hello Boki,

I did as your suggestion but it does not help. I can wait for your final solution. Meantime I use version 4.0.1 for editing and 4.1.5 for compiling.

Regards

#17 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 24 September 2007 - 11:31 AM

Hello Sayxanath,

When I have disable this 2 lines, I was able to type unicode strings in Delphi 7. Problem was only that if property is not selected, squares are shown. Same as with Footer.Caption.

Can you please tell me how it work in v4.0.1 for you exactly. Thank you.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#18 Vu Quang Thang

Vu Quang Thang
  • Members
  • 91 posts

Posted 24 September 2007 - 01:56 PM

Hello Boki,

I have commented out two lines of code in the NxGridReg.pas that you sent to me and recompile all packages (version 4.1.5) but it does not work. When I select a column, its header caption in the Object Inspector window are all ???? even though in the ColumnEditor they are squares. If I type new Unicode characters, the caption will change all ??? in both Object Inspector windows and on NextGrid column header. (normally I do not type Unicode characters directly in Object Inspector window but copy and paste from Excel.

In the version 4.0.1, when I type Unicode characters or paste from Excel to Object Inspector, it shows squares in both Object Inspector and ColumnEditor but on NextGrid column header, Unicode characters are shown correctly.

Regards

#19 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 24 September 2007 - 06:24 PM

Hello Sayxanath,

After I have comment this 2 lines, work exacly as you described , all is also shown on form too. Also, when you select property and start edit, unicode characters are shown as well.

Don't know why this happen. This 2 lines are exactly what I have add since v4.0.1 smile.gif

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#20 Vu Quang Thang

Vu Quang Thang
  • Members
  • 91 posts

Posted 25 September 2007 - 09:46 AM

QUOTE (Boki (Berg) @ Sep 25 2007, 12:24 AM) <{POST_SNAPBACK}>
Hello Sayxanath,

After I have comment this 2 lines, work exacly as you described , all is also shown on form too. Also, when you select property and start edit, unicode characters are shown as well.

Don't know why this happen. This 2 lines are exactly what I have add since v4.0.1 smile.gif

Best regards


Hello Boki,

Not just that 2 line of code have been added but also many others. I attach here the NxGridReg.pas of v4.0.1 - v.4.0.5 - and the last version you sent me. You can use WinMerge to compare the differences.

Regards

Attached Files






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users