Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - UI degree symbol: (9 Items)
   
UI degree symbol  
I'm in need of expressing a temperature for which I need to display a degree symbol. I cannot figure out an option to 
display the degrees. Is there any key combination or some option by which I can introduce degree symbol in the text?

Any suggestion on this is welcome.
Re: UI degree symbol  
Hi,

to enter a degree-symbol in Photon, use the compose sequence
   Alt 0 ^
(press and release each of these keys one after the other, not all at once.)

A number of special symbols can be generated from the keyboard using these compose sequences; the sequences always start
 with hitting the 'Alt' key.

For a list of available compose sequences, see in the docs:
  QNX Photon micro GUI 
    / Programmer's Guide
      / Unicode Multilingual Support,
  the paragraph "Photon Compose Sequences".

You can also look at the file 
  /usr/photon/keyboard/compose.inc
that contains all compose sequence definitions.

Regards,
- Thomas
Re: UI degree symbol  
Hi Thomas,

I tried the following key combinations in Photon App builder as follows.
          Created a new project.
          Placed a button in the base window.
          Tried to edit the button text as mentioned ("Alt 0 ^").
          But I am not getting the symbol.
          The font of the button is TextFont 9	
          Any other possible ways?

The mentioned docs were also asking us to use the same key combinations. (Alt 0 ^)

Any suggestions?

Regards,
Lakshminarayanan.R
Re: UI degree symbol  
Hi,

no, no other suggestion - but for me, it works - even under Windows. 

Two things are important to note:
 - the keys must be pressed and released individually, i.e.,
   press Alt, release Alt, press 0, release 0, ...

- Since the caret ('^') can be combined with other characters to form 
  special symbols (like, e.g., â), it doesn't generate its symbol right away - 
  you need to press the '^' key followed by the Space key to actually 
  generate the required symbol.

So for the degree symbol, you'll need to hit
   Alt
   0
   ^
   Space

Hope this helps...

- Thomas
RE: UI degree symbol  
Though elementary, that was a lucid explanation and it solved the problem. Thanks Thomas.

-----Original Message-----
From: Thomas Haupt [mailto:community-noreply@qnx.com] 
Sent: Monday, September 14, 2009 4:46 PM
To: momentics-community
Subject: Re: UI degree symbol

Hi,

no, no other suggestion - but for me, it works - even under Windows.

Two things are important to note:
 - the keys must be pressed and released individually, i.e.,
   press Alt, release Alt, press 0, release 0, ...

- Since the caret ('^') can be combined with other characters to form
  special symbols (like, e.g., â), it doesn't generate its symbol right away -
  you need to press the '^' key followed by the Space key to actually
  generate the required symbol.

So for the degree symbol, you'll need to hit
   Alt
   0
   ^
   Space

Hope this helps...

- Thomas



_______________________________________________

QNX Momentics Community Support
http://community.qnx.com/sf/go/post37874

DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. 
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. 
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have 
received this email in error please delete it and notify the sender immediately. Before opening any mail and 
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------
Re: RE: UI degree symbol  
I want to generate a subscript say, for H20, for example. I went through the unicode multilingual documentation but it 
doesn't mention anything about the subscript although it mentions about the superscript.

Please apprise me if generating a subscript is possible in photon.
Re: RE: UI degree symbol  
Any information on this? Is it possible ??
Re: RE: UI degree symbol  
PtLabel or Pt*Text do not support it by default. You can use a set of labels with different font sizes, or you can use 
PfRender() to render text yourself.
Re: RE: UI degree symbol  
Thanks Misha for the reply.