CodePudding user response:
Dw_1. SetSeriesStyle (' gr_1 ', ' ', NoSymbol! )CodePudding user response:
How to get rid of pb frame chart of the datawindow nodes such as figureUse pb for a long time, the end of the year, customer demand, to add some charts function, convenient to check the data. But how also can't remember how to get rid of graph types in the datawindow's annoying frame, fork fork, etc. The small icon. Online search along while also didn't find it. Suddenly think of as they did before. Hurriedly each application search: gr_1 haha. Finally found. Clap his head three times! This memory! The dozen! In order to later need not also forget, still preserved, but also to other brothers occasionally need. Actually very simple, a property grSymbolType datawindow! Is the line type of dw in each serial ICONS, such as SymbolX! Said the fork, SymbolStar! One NoSymbol! Says the star, and so on. , needless to say, well that's it! No ink. Code to speak:
//retrieve data
Dw_gr. Setredraw (false)//no refresh the dw
Dw_gr. Retrieve ()
Dw_gr. Setredraw (true)//refresh dw: must refresh the dw, to continue!!!!!
GrSymbolType lgr_1//declare an enumeration variable
Int li_seriescount, li_i//cycle multiple series of variables, such as not the only one series.
Lgr_1=NoSymbol!//set enumeration variable value: don't show those annoying fork fork box!
Li_seriescount=dw_gr. SeriesCount (" gr_1 ")//to get the total number of total series dw,
Dw_gr. Setredraw (false)//no refresh the dw
//-- -- -- -- -- -- -- -- if it is more series, you will need to cycle set each series -- -- -- -- -- -- -- --
If li_seriescount & gt; 0 then
For li_i=1 to li_seriescount
Ls_name=dw_gr. SeriesName (" gr_1 li_i)
Dw_gr. SetSeriesStyle (" gr_1 ls_name, lgr_1)
Next
End the if
Dw_gr. Setredraw (true)//refresh dw, display the chart
CodePudding user response:
Thank you moderator, after your test method in the clicked a button works, I'm in dw with the chart, the content of the chart of data from the data window, increase in a functionRows of data, that is, according to data, my chart is a sequence of
For I=1 to 10
.
Insert_i=dw_2. Insertrow (0)
Dw_2. Setitem (insert_i, zt, string (I))//abscissa
Dw_2. Setitem (insert_i, "num1," long (BStatus))//ordinate values
Next
Dw_2. SetSeriesStyle (' gr_1 ', ' ', NoSymbol! )
Dw_2. Setredraw (true)
When performing the dw_2. SetSeriesStyle (' gr_1 ', ' ', NoSymbol! ) this line, display SetSeriesStyle returns a value of 1, namely there is an error, in addition to the button click event in the execution, when change the size gr_1, and shown as a small box, please moderator
Help, thank you
CodePudding user response:
In the button click event execution, when change gr_1 size, and shown as a small boxThe reset dw_2. SetSeriesStyle (' gr_1 ', ' ', NoSymbol! )
As for execution in function, according to the truth and no difference in the button, don't know you what is the function of the parameters, if you pass through the parameter data window, the post code
CodePudding user response:
Also because of previous line not fruity and headache, moderator advice in place