Hi M3nth,
You said "I am looking for a workaround to get LabVIEW to apply formatting correctly without displaying the string control to the user.
"
I can confirm the case 1 part of this BUG. I did not try out case two because the attached seemed to fix the case 1 problem.
I the attached VI (LV 7.1) I first defer front panel update and then note which tab is currently selected.
I then set the tab control to "page 1" (remember FP updates are defered so user does not see this) before applying all of the properties in the same order as you example using a single property node.
After that I set the tab back to the way it was to start and un-defer FP updates.
NOTE:
The above only works if you also invoke one of the two following additional actions.
1) Set the string as "syncronous"
or
2) Set the property node to "ignore errors inside node"
I hope this work-around gets you past this issue.
Thoughts on what we are seeing.
Since the syncronous setting is required, it looks like we can only select text offsets within the text field in the string AT THE TIME the selection is applied. The syncronous setting ensures the string is there before we select the offsets.
The ignore errors work-around is a little troubling in that I never saw an error running your example, so there are either "hidden errors" that affect the property node if not set for "ignore..." or that setting lets us do illeagal things like selecting text offsets that do not exist.
Please chime in if you think you can shed more light on this issue.
I hope this helps,
Ben
Message Edited by Ben on 06-25-2005 08:07 AM