Nextgrid caption does not support Unicode
#1
Posted 21 July 2007 - 05:52 AM
It seems that Nextgrid Caption does not support Unicode. Can you fix this?
Regards
#2
Posted 21 July 2007 - 12:11 PM
I have fix it. Thank you.
Best regards
--
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
Posted 18 September 2007 - 06:12 AM
This bug still exists in version 4.1.5.
Regards
#4
Posted 18 September 2007 - 02:00 PM
It is WideString already. Maybe correct Font is not chosen for Grid itself?
Best regards
--
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
Posted 18 September 2007 - 02:45 PM
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
Posted 18 September 2007 - 03:10 PM
Unfortunatelly Delphi's IDE doesn't support unicode in ObjectInspector (design-time) without some additional plug-in as far I know
You will need to set it in run-time.
Best regards
--
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
Posted 19 September 2007 - 05:09 AM
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
Posted 19 September 2007 - 06:16 AM
I am really not sure how to do this, and it is possible I am also nothing change since previous versions about this property.
Best regards
--
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
Posted 21 September 2007 - 07:51 PM
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
Posted 21 September 2007 - 09:02 PM
I have spot it now, it was my mistake. I will work on it now.
Best regards
--
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
Posted 21 September 2007 - 09:35 PM
I have fix it. I was need to add conditional statement for Delphi2005 and up. I will send you updated file now.
Best regards
--
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
Posted 22 September 2007 - 05:20 AM
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
Posted 22 September 2007 - 08:45 AM
Can you please tell me which version of Delphi you use?
Thank you.
--
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
Posted 22 September 2007 - 06:21 PM
As I said in the last post, I am using Delphi 7 Enterprise Update Pack 1 (Build 8.1)
Regards
#15
Posted 22 September 2007 - 06:30 PM
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:
RegisterPropertyEditor(TypeInfo(WideString), TNxCustomGrid, 'Caption', TWideCaptionProperty);
but I will need to solve it better, because this will disable multi-line header editing.
Best regards
--
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
Posted 24 September 2007 - 11:21 AM
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
Posted 24 September 2007 - 11:31 AM
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
--
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
Posted 24 September 2007 - 01:56 PM
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
Posted 24 September 2007 - 06:24 PM
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
Best regards
--
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
Posted 25 September 2007 - 09:46 AM
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
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