bring Special Characters Such as "landa" and "delta in my labels

Hi Experts,
How can I bring Special Characters Such as "landa" and "delta" in my
Labels?

Delphi Version : 7
Os : Win2K

Regards

LVL 2
123456Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sun4sundayCommented:
No idea what is landa
To put special character

Open MSword>Insert>Symbol> select the symbol u need and press insert.

Copy from MSword to the Label Caption Property.

Is this is what u are looking for?

sun4sunday
0
mikelittlewoodCommented:
To do this via code, you would first have to load the correct font set to use and then choose the correct # value for the item.
0
123456Author Commented:
No, it don’t work for me.
When I copy from MSWord To delphi I see only "?" character.
I should initiate labels from my coding too(Not only Need From object Inspector).
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

123456Author Commented:
>>To do this via code, you would first have to load the correct font set to use and then choose the correct # value for the item. <<
can you Explain it bit more?
0
123456Author Commented:
Any Feed back?

0
AmigoJackCommented:
either you have to select another font in that labels.. maybe WINGDINGS orso which only contains symbols.

the standard ascii set is limited to 256 characters and doesnt contain advanced mathematical signs like lamda or delta. instead unicode (in delphi known as widestring instead of string) can display 65536 different characters. go here http://www.tntware.com/delphicontrols/unicode/downloads.htm and download a set of all standard components which give you unicode support. install it and then create a new project, add a TTntLabel and set the caption to the text youve copied from ms word. done :)
0
123456Author Commented:
With this component, can I give value to labels from my coding?
0
AmigoJackCommented:
of course. but it might be not as trivial as you could think, since delphi coding language itself is purely ascii, which cant be changed. this means you cannot paste your characters from word into your pascal code - that will NEVER work. but it surely works by building widechars out of their ordinals. here is a small example:

// this is needed because WIDECHAR is pointerious... we simply need this ok? :)
function strpasw(w: pwidechar): widestring;
begin
  result:= w;
end;

// just create a new project, add a TTntLabel and some button - then define this for example
procedure TForm1.TntButton1Click(Sender: TObject);
var
  s1: widestring;
begin
  s1:= 'delta '+ strpasw(widechar(#$2206))+ '  lambda '+ strpasw(widechar(#$2041));
  tntlabel1.caption:= s1;
end;

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bernaniCommented:
With tntCompo  - see the link given by AmigoJack above (tested and working with D5):

unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,StdCtrls, TntStdCtrls;

type
  TForm1 = class(TForm)
    TntLabel1: TTntLabel;
    TntLabel2: TTntLabel;
    TntButton1: TTntButton;
    TntLabel3: TTntLabel;
    TntLabel4: TTntLabel;
    procedure TntButton1Click(Sender: TObject);
  private
    { Déclarations privées }
  public
    { Déclarations publiques }
  end;

var
  Form1: TForm1;

implementation

{$R *.DFM}

procedure TForm1.TntButton1Click(Sender: TObject);
begin
//greek letter delta
tntlabel1.caption := #$03B4; //greek delta lowercase
tntlabel3.caption := #$0394 ; // greek delta uppercase
//greek letter lambda
tntlabel2.caption := #$03BB; //greek lambda lowercase
tntlabel4.caption := #$039B; //greek lambda uppercase
end;

end.

__________________________________________
object Form1: TForm1
  Left = 192
  Top = 114
  Width = 198
  Height = 157
  Caption = 'Form1'
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'MS Sans Serif'
  Font.Style = []
  OldCreateOrder = False
  PixelsPerInch = 96
  TextHeight = 13
  object TntLabel1: TTntLabel
    Left = 16
    Top = 16
    Width = 48
    Height = 13
    Caption = 'TntLabel1'
  end
  object TntLabel2: TTntLabel
    Left = 104
    Top = 16
    Width = 48
    Height = 13
    Caption = 'TntLabel2'
  end
  object TntLabel3: TTntLabel
    Left = 16
    Top = 40
    Width = 48
    Height = 13
    Caption = 'TntLabel3'
  end
  object TntLabel4: TTntLabel
    Left = 104
    Top = 40
    Width = 48
    Height = 13
    Caption = 'TntLabel4'
  end
  object TntButton1: TTntButton
    Left = 48
    Top = 88
    Width = 75
    Height = 25
    Caption = 'Apply'
    TabOrder = 0
    OnClick = TntButton1Click
  end
end


Hope this help.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Fonts Typography

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.