dawieblake$2007105
dawieblake

04/16/2007 :: 19:04

Registered

Hi
I used the gdpicture and gdviewer activex's successfully to build a elaborate gantschart system... but now I have a problem . The gantschart is growing vertically and horizontally so that the user needs to scroll. When they scroll vertically, the headings on the top disappear... I would also like to "freeze" the first 3 columns of my gantschart on the left so that scrolling doesn't hide them...
One solution is to have 4 gdviewers and use one for the headings, one for the 3 columns on the left one for etc. etc...
(get the picture )

But I wondered if it is not possible to FREEZE a top and left portion of the picture so that scrolling doesn't affect it ?

Greatly appreciate your help!
Dave
Loïc$2006306
Loïc

04/17/2007 :: 11:29

Registered

Hi,
The best way is to do what's you described: Using several GdViewer.
There is no way to freeze a portion of the gdviewer using only the gdviewer.

Best regards,

Loïc Carrère
dawieblake$2007105
dawieblake

04/17/2007 :: 13:13

Registered

Hi,
What is the chance of this being a new feature - can't be too much programming, or is it... Problem is that I'm getting funny memory-related problems when I flip-between screens in my application all the time - the gdviewer suddenly only shows part of the whole picture etc. Or perhaps there is a leak somewhere ?!

Adding this as a feature shouldn't affect existing solutions since its an add-onn. I'm just trying me luck . It would be quite cool, opening up a whole bunch of new applications that can be programmed with the control....

Anyway, enjoy the day and thanks for your hard work!
David
Loïc$2006306
Loïc

04/19/2007 :: 12:18

Registered

Hi,

with the last beta release you can use this method: DisplayImageRectOnHDC ()http://gdpicture.com/references/gdpicturepro/content/cGdPicture-DisplayImageRectOnHDC.html

I think you can catch the displayed event or the scoll event and use this code:

oGdPicture.SetNativeImage(oGdViewer.GetNativeImage)
oGdPicture.DisplayImageRectOnHDC(oGdViewer.hdc,...)


Best regards,

Loïc Carrère
Loïc$2006306
Loïc

04/19/2007 :: 12:19

Registered

PS: link for the last beta release http://www.gdpicture.com/ressources/betas/
back to forum