Posted 20 years ago
by Boyd
-
Sr. Software Developer,
Patterson Consulting, LLC
I have encountered a situation where the InfoTip I'm trying to display is not being properly rendered on the screen. The following is the test code being used to add the InfoTip.
You can actually add this code to the Sample Editor application under the 'editor_KeyPress' event to use with the InfoTip sample for 'Invalidate'. When executed, you'll see that the InfoTip doesn't draw correctly. Only the first three lines of the InfoTip are visible. The very top of the fourth line can be detected, but is not fully visible.
It appears it's getting tripped up while trying to word-wrap the long line that doesn't have breaks in it. It's almost as if the necessary height of the MarkupLabel is being calculated before word-wrapping has taken place.
I should also note that your screen resolution should be no higher than 1024x768 to reproduce the error. I ran the same code on a higher screen resolution and it worked. That fortifies my word-wrapping theory.
Let me know if you can't get the above sample to work or if I can provide more detail.
[ 01-26-2005: Message edited by: Boyd ]
editor.IntelliPrompt.InfoTip.Info.Add(@"Variant DataTable.RawValue (<b>Variant ParameterID</b> )<br />Retrieves the <em>raw value</em> of the cell in the specified parameter and the current row of the run-time Data Table. The <em>raw value</em> is hte actual string written in a cell before the cell has been computed, such as the actual text from a formula.<br /><b>ParameterID:</b> Identifies the parameter (column) of the value to be set/retrieved. Index values begin with 1.");
It appears it's getting tripped up while trying to word-wrap the long line that doesn't have breaks in it. It's almost as if the necessary height of the MarkupLabel is being calculated before word-wrapping has taken place.
I should also note that your screen resolution should be no higher than 1024x768 to reproduce the error. I ran the same code on a higher screen resolution and it worked. That fortifies my word-wrapping theory.
Let me know if you can't get the above sample to work or if I can provide more detail.
[ 01-26-2005: Message edited by: Boyd ]