LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

sqrt command button

Solved!
Go to solution

Hi,

I'd like to creat a Command Button that the lable on it will be sqrt (square root) symbol.

I'll very appriciate your help with any direction if it's possible.

Thank you!

Eliran

0 Kudos
Message 1 of 9
(3,665 Views)

Until the day when CVI will support Unicode I would use a picture button

0 Kudos
Message 2 of 9
(3,660 Views)
Solution
Accepted by topic author EliranMar3005

Or do the following:

 

  • Open Charmap application, select Symbol font, locate the sqrt character, press Select and Copy
    Screenshot 2016-11-08 09.35.15.png
  • Create and edit a button on your panel, paste the text into Label field, then edit label attributes and select Symbol both as Character set and Font (in this order)
    Screenshot 2016-11-08 09.32.52.png
  • Enjoy the result Smiley Wink


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 3 of 9
(3,640 Views)

Hi Roberto,

From some reason i'm getting (on the CVI) the "?" symbol instead of the sqrt symbol..

Do you know why? 

0 Kudos
Message 4 of 9
(3,635 Views)

for some reason I would NOT consider this a square root symbol... it is the first part of a square root...Smiley Wink

 

my idea of a square root is s.png

0 Kudos
Message 5 of 9
(3,631 Views)

@Eliran

I don't know why you are getting the wrong symbol, maybe OS settings can influence the rendering of symbols. Which OS and language are you running on? Can you post a small UIR that shows the result you have gotten? I mean the actual .UIR file, not a screenshot.

 

@Wolfgang

While you are right in that that one is not the exact sqrt symbol, nevertheless it is a good approximation to that. I seems the user wants to create a small calculator inside its app: using the same font for all keys (including the sqrt) will give a good and uniform aspect to all of them: I suppose this is why that symbol is used in Windows calculator utility.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 6 of 9
(3,622 Views)

Hi Roberto,

I'm using Windows 7 (Hebrew language).

UIR file attached

0 Kudos
Message 7 of 9
(3,616 Views)

Try with this UIR: I modified your adding a new button with the sqrt symbol, can you see it?



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 8 of 9
(3,612 Views)

Thank you very much for your help!

 

0 Kudos
Message 9 of 9
(3,595 Views)