Hi,
I'm working with GdPicture version 6.7.0.0 licensed.
I would like to create a region that contains the entire file displayed on viewer ("select all" functionality). Is it possible?
Is it also possible to change background color of the selected region?
Thanks in advance,
G. S.
Select All on viewer
Re: Select All on viewer
Hi,
Yes:
Hope this helps,
Loïc
Easy:I would like to create a region that contains the entire file displayed on viewer ("select all" functionality). Is it possible?
Code: Select all
regid = GdViewer1.AddRegionInches("MyRegion", 0, 0, GdViewer1.PageWidth / GdViewer1.HorizontalResolution, GdViewer1.PageHeight / GdViewer1.VerticalResolution, ForegroundMixMode.ForegroundMixModeMASKPEN, Color.Aqua)
GdViewer1.Redraw()
Is it also possible to change background color of the selected region?
Yes:
Code: Select all
GdViewer1.SetRegionColor(regid, Color.LightSalmon)
GdViewer1.Redraw()
Hope this helps,
Loïc
-
- Posts: 5
- Joined: Wed Jun 30, 2010 12:13 pm
Re: Select All on viewer
Hi Loïc,Loïc wrote:Hi,
Easy:I would like to create a region that contains the entire file displayed on viewer ("select all" functionality). Is it possible?Code: Select all
regid = GdViewer1.AddRegionInches("MyRegion", 0, 0, GdViewer1.PageWidth / GdViewer1.HorizontalResolution, GdViewer1.PageHeight / GdViewer1.VerticalResolution, ForegroundMixMode.ForegroundMixModeMASKPEN, Color.Aqua) GdViewer1.Redraw()
Is it also possible to change background color of the selected region?
Yes:
Code: Select all
GdViewer1.SetRegionColor(regid, Color.LightSalmon) GdViewer1.Redraw()
Hope this helps,
Loïc
It's work very well.
Thank's a lot.
G. S.
Who is online
Users browsing this forum: No registered users and 1 guest