CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

ShowMessage Umlaute+LF

General discussion

by JMiller » 30 Apr 2014 09:01

Hello!

I have two problems with IWCGShowMessage

1. When I use a prompt, it doesn't process Unicode characters correctly.
You can check this in your demo: ShowMessage - Prompt and type in something like "ü","ê" or the like and compare the notification.

2. The displayed text doesn't show a line feed (sLineBreak or "\n").


Best regards,
JM
Last edited by JMiller on 16 May 2014 11:03, edited 3 times in total.
JMiller
 
Posts: 135
Joined: 13 Jul 2012 05:01

by JMiller » 05 May 2014 09:51

to ilustrate problem 1
You do not have the required permissions to view the files attached to this post.
JMiller
 
Posts: 135
Joined: 13 Jul 2012 05:01

by Alexander Bulei » 05 May 2014 10:15

Hi JMiller,

Thanks, I will check this asap.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by Jorge Sousa » 05 May 2014 10:24

Hello

Please use UTF8toString, while we find a way to this internally

procedure TJQShowMessageFrame.ConfirmEvent(Sender: TObject; AParams: TStringList);
var
LName: string;
begin
LName:= UTF8ToString(AParams.Values['str']);
IWCGJQShowMessage.ShowNotification(Format('You''ve clicked OK and your name is: %s',[LName]),jqsntSuccess);
end;
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by JMiller » 06 May 2014 12:16

1. That works so far. Thanks. :D

2. Any plans to introduce line breaks in IWCGShowMessage?
JMiller
 
Posts: 135
Joined: 13 Jul 2012 05:01

by Jorge Sousa » 06 May 2014 12:28

Hi JMiller

About the linefeeds, since you can pass html in the functions, and knowing that \n = <br> in html, you can call something like this

IWCGJQShowMessage.ShowMessage('Alert <b>Message</b>! <br> This is a message!');


About the national characters problem, this only happens in IW14.0.29 but not in previous version, because they introduced a new version.

But you say that you have IW12?

Can you please confirm that, and run the attached demo, and tell us how it works for you please? t.i.a.
You do not have the required permissions to view the files attached to this post.
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by JMiller » 06 May 2014 15:22

cgdevtools_support wrote:you can pass html in the functions

Ups, didn't think of that :oops:

The project you attached doesn't work in XE2.
It produces errors like "ServerControllerBaseNewSession doesn't get the right Parameter list from OnNewSession"
JMiller
 
Posts: 135
Joined: 13 Jul 2012 05:01

by Jorge Sousa » 06 May 2014 15:34

Hi

It produces errors like "ServerControllerBaseNewSession doesn't get the right Parameter list from OnNewSession"


Just delete the event OnNewSession and redo it again using the usual code and save, please
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by JMiller » 07 May 2014 10:20

Pushing the button results in this window:
You do not have the required permissions to view the files attached to this post.
JMiller
 
Posts: 135
Joined: 13 Jul 2012 05:01

by Jorge Sousa » 07 May 2014 10:25

Hello

Then in the version of Intraweb that you're using, you must use UTF8ToString
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

Next

Return to General - Archive

Who is online

Users browsing this forum: No registered users and 3 guests

Contact Us.