From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
03-15-2010 12:20 AM
03-15-2010 12:50 AM
03-15-2010 01:11 AM
03-16-2010 12:31 AM
Thanks for replying.
I've tried changing the font, but the problem is, when i change the font its either symbol or arial for the whole text. I want to change the font selectively.
e.g.
Vx=DV1+w1*(1+d)
03-16-2010 09:18 AM - edited 03-16-2010 09:18 AM
Just select the specific characters for which you want to change font and set the font on them, rather than the entire control. For example, in this string control I entered the text Vx=DV1+w1*(1+d), selected the w and set the font for that to Symbol, and got this:
03-16-2010 01:44 PM
Actually, I want to do this through programming. First, the mathematical model is written in a string control then the quantities in that model goes into a listbox. It looks something like this.
String control= Vx=(DV1+DV2+DV3)(1+dm)
Listbox= DV1
DV2
DV3
dm
Vx
I am able to write the code for the purpose but the only hindrance remains with writing these Greek letters in the string control as well as in the listbox.
Please help somebody!!
03-16-2010 02:04 PM
03-16-2010 02:16 PM
Thanks for replying.
My point is....when you transfer Dv from string to listbox, it changes back to Dv. Can you give me a solution for this.
03-16-2010 03:21 PM - edited 03-16-2010 03:22 PM
There isn't one. When you "transfer" the text from the string control to the listbox you are setting the value, not the format. With listboxes and tables you cannot set the font for individual characters you can only set the font for the entire item/cell. I.e., for a listbox, this is what you'd get:
An alternative is to simply use a picture indicator and draw your text.