04-02-2007 08:45 AM
04-02-2007 09:14 AM
First of all, you can plot your text without its own background color choosing the appropriate value in the corresponding parameter in PlotText.
If on the contrary you want your text to absolutely not overlap your plots, you must set an appropriate value for y and y coordinates in PlotText function. You can use GetTextDisplaySize function to determine height and width of the string you need to plot, so you can adjust its coordinates not to overlap your data
04-02-2007 09:45 AM
04-03-2007 01:00 AM
Hi using colornumeric and then opening "paint tool" selecting " T " you told the colornumeric will be transparent over the background color of Graph control but infact it is not transparent . The background color of graph control is covered (blocked) by the foregroundground color of the colornumeric .Plz JB reply me soon ?
Regards
Subrata
04-03-2007 01:55 AM
In the first case you can simply paint the background color on the text control in transparent in the UIR editor (see the UIR attached as an example). In the second case you can use PlotText (panelHandle, PANEL_GRAPH, x, y, "Some Text", VAL_APP_META_FONT, VAL_RED, VAL_TRANSPARENT); (the text in red is the background color used to plot text).
In both cases if you want to avoid ovelapping of text and plots you must know height and width of either the plotted text (and you can use GetTextDisplaySize function) or of the text message control (with standard GetCtrlAttribute and ATTR_HEIGHT and ATTR_WIDTH option). Next you will need to calculate text position according to its dimensions and existing plots on the graph.