cmPan without Scrollbars

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

cmPan without Scrollbars

Postby HPW » February 11th, 2007, 5:43 pm

Hello,

I was asked for a option to disable the scrollbars in my simplegraph neobook-plugin.
But with diabled scrollbars the cmPan comandmode no longer works.
After a look in the component-source I see that the scrollbars are heavily involved in panning. Any idea to get a pan without scrollbars?

TSimpleGraph 2.61
Hans-Peter
HPW
Moderator
Moderator
 
Posts: 230
Joined: February 25th, 2006, 10:19 am
Location: Germany

Postby Kambiz » February 12th, 2007, 4:31 am

The only solution that I can imagine is rewriting the code. :(
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm

Postby HPW » February 12th, 2007, 6:24 am

I thought that I get this answer, so when there is no easy way, I think it is not worth to spend to much efforts on this.

Thanks anyway.
Hans-Peter
HPW
Moderator
Moderator
 
Posts: 230
Joined: February 25th, 2006, 10:19 am
Location: Germany

Postby Johnny_Bit » February 12th, 2007, 8:29 am

there is Q&D way: enable it whenever you'll need them and then quickly and quietly disable them.
Johnny_Bit
VIP Member
VIP Member
 
Posts: 455
Joined: June 15th, 2003, 9:56 am

Postby HPW » February 12th, 2007, 4:30 pm

there is Q&D way: enable it whenever you'll need them and then quickly and quietly disable them.


Hm, does not work since position gets reset to 0,0 when scrollbars are made invisible.

Another idea would be to make TSimpleGraph bigger by the amount of scrollbar-width/height to have them in the invisible area outside the form.
Hans-Peter
HPW
Moderator
Moderator
 
Posts: 230
Joined: February 25th, 2006, 10:19 am
Location: Germany

Postby Johnny_Bit » February 12th, 2007, 4:44 pm

That's what the Q&D way is about!
Johnny_Bit
VIP Member
VIP Member
 
Posts: 455
Joined: June 15th, 2003, 9:56 am

Postby HPW » February 12th, 2007, 7:06 pm

That's what the Q&D way is about!


The Q&D way works now in the just released new version!

;-)
Hans-Peter
HPW
Moderator
Moderator
 
Posts: 230
Joined: February 25th, 2006, 10:19 am
Location: Germany

Postby Kambiz » February 12th, 2007, 7:27 pm

:lol: What a simple solution!
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm

Postby Johnny_Bit » February 12th, 2007, 8:36 pm

We, coders of the Free Software, know our stuff.

Happy hacking!
Johnny_Bit
VIP Member
VIP Member
 
Posts: 455
Joined: June 15th, 2003, 9:56 am


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 2 guests