Paul, would be nice to have a function which creates texture background in the %gr area same simple way as %wp doing that for the text window background. But besides this new CWP additional control there has to be also additional function to call the texture background each time before plotting different graph into the same %gr area. I think we discussed that before, so I am wondering was this already implemented or is it in the work or not yet planned.
Basically I do that by reading texture bmp files and then plotting them on %gr window with dimensions (ixGRsize, iyGRsize) while (ixBkgBMPsize, iyBkgBMPsize) are dimensions of texture bitmap this way
do ivert =1, iyGrsize/iyBkgBMPsize(icurBkgDispl)+1
do ihoriz=1, ixGrsize/ixBkgBMPsize(icurBkgDispl)+1
i = dib_paint@((ihoriz-1)*ixBkgBMPsize(icurBkgDispl),
* (ivert-1) *iyBkgBMPsize(icurBkgDispl),
* ihDibBkgFile(icurBkgDispl), 0, 0)
enddo
enddo
But the inconvenience is that I still need to read BMP files, separate names from directories, sort them, compare with the request and then plot like in the snippet above. But these texture files are already in my RESOURCES and are used for other text windows so would be great to reuse them for %gr. May be there exist workaround to do the same thing as I showed above with DIB_PAINT@ for %gr using bitmaps from RESOURCES ?
