Simplegraph scroll

Please post bug reports, feature requests, or any question regarding the DELPHI AREA products here.

Simplegraph scroll

Postby glabz74 » September 14th, 2012, 5:44 pm

how to scroll semplegraph by your own scrollbar (i've use alphacontrols component) ?
User avatar
glabz74
Active Member
Active Member
 
Posts: 11
Joined: October 28th, 2011, 11:03 am

Re: Simplegraph scroll

Postby glabz74 » September 15th, 2012, 8:50 am

i made VertScrollBar and HorzScrollBar unvisitable in simplegraph properties
then in FormCreate add
Code: Select all
    sskinscrollbar1.PageSize:=SimpleGraph.HorzScrollBar.size;               
    sskinscrollbar2.PageSize:=SimpleGraph.VertScrollBar.Size;


and procedure sSkinScrollBar1Change

SimpleGraph.scrollby(0, sskinscrollbar1.position)

scroll dose not work wen VertScrollBar and HorzScrollBar unvisitable

may be you have got some hit ? ](*,) ](*,) ](*,) ](*,) ](*,)
User avatar
glabz74
Active Member
Active Member
 
Posts: 11
Joined: October 28th, 2011, 11:03 am

Re: Simplegraph scroll

Postby Kambiz » September 15th, 2012, 3:35 pm

It wouldn't be easy. SimpleGraph uses its own ScrollBar class to consider zoom factor. In lot of parts of the code, that class is engaged to calculate the viewport.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm

Re: Simplegraph scroll

Postby glabz74 » September 15th, 2012, 6:51 pm

I know, i'd been working on it all day, but no luck.. Could you tell from what point i must start ? [-o< I've made a lot of cool skin, and standard scrollbar looks too terribly, i really need to improve it. ](*,)
i try to change HorzScrollBar.position when it invisible with change my own scrollbar.position, but again no luck
User avatar
glabz74
Active Member
Active Member
 
Posts: 11
Joined: October 28th, 2011, 11:03 am

Re: Simplegraph scroll

Postby Kambiz » September 16th, 2012, 9:32 am

The best thing is to study SG code first.
SG scrollbars are managed by TGraphScrollBar instances, however the scrollbar controls are part of SG window (not separate controls).
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 1 guest

cron