02-14-2011 08:02 AM
Hi all,
I have a problem in displaying Tips(For long texts) which occured during Runtime in List Box. This Tip's is nothing but current cell's details.
As default the tip's get truncated at the border of LabVIEW Window, so basically that to be wraped to next line.
Please tell me how to wrap the text on the Tip's, this will help the user to view the entire details as wraped text.
Please see the attachment for screen shots.
With Regards,
Suresh S
02-15-2011 02:38 AM
Suresh,
instead of directly writing the tip strip(on the FP of the controls) use the propert "tipstrip". with this propery you can format the tipstrip string so that it can be within the FP boundary.
Run the attached vi for the difference
02-15-2011 05:41 AM
Hi Guru,
Thanks for your information.
In my senerio when the user keeps mouse over particular cell on listbox the Tip's occurs, that tip containts details of particular cell of listbox. that must be word wrap
Note : it is not the entire Listbox's Tip & Description
I have attached the VI, please run it and place your mouse on Column-B, Row-1, you can see the runtime tips(which is nothing but that cell detail), i need to word wrap that details.
File is in LV 8.6 Version
Thanks,
Suresh S
02-15-2011 09:14 PM
Suresh,
I dont think that it is possible.
As a work around yOu can to format the string to be displayed in the list box. (before writing to the "itemnames" property) or make sure that the row width is sufficient to hold the entire display string
Guru
02-17-2011 12:17 AM
Hi Guru,
Thank you for your suggestion, Please let me know if any other options are available
Regards,
Suresh S
02-20-2011 11:46 PM
As a simple solution ,you can provide a "string indiactor/control" (at bottom or on top of the list box) that can be populated with the approproiate message when the coreesponding cell/row on the list box. (You can make use of the property nodes to get the currently selected row/cell).
And do remeber that there are other solutions as well which may be better. This is what came to my mind as of now...
02-20-2011 11:59 PM - edited 02-20-2011 11:59 PM
Hi suresh,
I had faced same problem.
I was reading data from Excel sheet and was displaying it in "tree indicator".
Suppose this is my line " My name is xyz and I am studying in CBZ college from x years with my friends" (Just any sentence)
Suppose it is not fitting in indicator I had simply modified it as shown below,
" My name is xyz and I am studying in (ALT+ENTER)
CBZ college from x years with my friends"
It shows this sentence in two lines in Tree indicator.
May be you can try this.
02-21-2011 12:08 AM
Hello GaK,
i guess its not possible to issue a "enter" or "ALT+enter" to the "tip" of the "description and tip" from the FP iteself.
02-21-2011 12:19 AM
oh.........may be you are right.
02-21-2011 12:23 AM
Hi guru,
I just tried,
If your string is larger than the size of listbox indicator, then you face this problem of tip strip.
But if you display larger string using two lines, tip strip does not appear.
Have you tried this?