crelf Posted April 19, 2006 Report Share Posted April 19, 2006 Hey All, Here's an odd one - I'm programmatically updating the description of a control. I'm using the description of another VI - simply copying the test out of the VIs description into the control's description. The text makes it in there okay, but the text in the description of the control isn't wrapped in the Context Help window like it is in the VI's description. Hovering the mouse over the VI (the description source): Hovering the mouse over the control (the description sink): Is there any way to force the text to be wrapped in the Context Help window (I should mention that I'm using Windows user32.dll functions to lock the Context Help window to particular dimensions)? If I can't do that, then I'd be happy to manually insert CR+LF into my string (it's dirty, but it'll work) - does anyone know the tag to do that (it's not <p> - the Context Help window uses a very limited set of HTML tags)? Download File:post-181-1145462352.vi Download File:post-181-1145462360.vi Quote Link to comment
MikaelH Posted April 19, 2006 Report Share Posted April 19, 2006 Have you tried a simple <br> //Mikael Quote Link to comment
Darren Posted April 19, 2006 Report Share Posted April 19, 2006 I believe if you put two '\r\n' characters before and after a given sentence/paragraph, that will cause the paragraph to word wrap. You can try it in your VI by going to Description and Tip and pressing Enter twice before your paragraph, and after your paragraph. I have attached a VI that contains your Numeric control with the context help wrapping appropriately after making this change. If you are changing the description programatically, just convert single \r\n characters into \r\n\r\n. I noticed in your control's context help you just have \n characters, so if you're updating the context help programmatically, you would probably want to write some code that searches for \n before and after text and replaces it with \r\n\r\n. -D Download File:post-4441-1145475838.vi Quote Link to comment
crelf Posted April 19, 2006 Author Report Share Posted April 19, 2006 I can't beleive I overlooked it, but a smiple <enter> at the end of the line works That said, it'd still be much better if it wrapped properly... I believe if you put two '\r\n' characters before and after a given sentence/paragraph, that will cause the paragraph to word wrap. Ahhhhhhhhh - thanks Darren - that works perfectly! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.