| View previous topic :: View next topic |
| Author |
Message |
HPW Senior Member
Joined: 25 Feb 2006 Posts: 131 Location: Germany
|
Posted: 11/02/07 17:43 Post subject: cmPan without Scrollbars |
|
|
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 |
|
| Back to top |
|
 |
Kambiz Administrator

Joined: 07 Mar 2003 Posts: 1113 Location: Tehran, Iran
|
Posted: 12/02/07 04:31 Post subject: |
|
|
The only solution that I can imagine is rewriting the code.
_________________ Kambiz |
|
| Back to top |
|
 |
HPW Senior Member
Joined: 25 Feb 2006 Posts: 131 Location: Germany
|
Posted: 12/02/07 06:24 Post subject: |
|
|
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 |
|
| Back to top |
|
 |
Johnny_Bit Administrator
Joined: 15 Jun 2003 Posts: 347
|
Posted: 12/02/07 08:29 Post subject: |
|
|
| there is Q&D way: enable it whenever you'll need them and then quickly and quietly disable them.
|
|
| Back to top |
|
 |
HPW Senior Member
Joined: 25 Feb 2006 Posts: 131 Location: Germany
|
Posted: 12/02/07 16:30 Post subject: |
|
|
| Quote: | | 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 |
|
| Back to top |
|
 |
Johnny_Bit Administrator
Joined: 15 Jun 2003 Posts: 347
|
Posted: 12/02/07 16:44 Post subject: |
|
|
| That's what the Q&D way is about!
|
|
| Back to top |
|
 |
HPW Senior Member
Joined: 25 Feb 2006 Posts: 131 Location: Germany
|
Posted: 12/02/07 19:06 Post subject: |
|
|
| Quote: | | That's what the Q&D way is about! |
The Q&D way works now in the just released new version!
_________________ Hans-Peter |
|
| Back to top |
|
 |
Kambiz Administrator

Joined: 07 Mar 2003 Posts: 1113 Location: Tehran, Iran
|
Posted: 12/02/07 19:27 Post subject: |
|
|
What a simple solution!
_________________ Kambiz |
|
| Back to top |
|
 |
Johnny_Bit Administrator
Joined: 15 Jun 2003 Posts: 347
|
Posted: 12/02/07 20:36 Post subject: |
|
|
We, coders of the Free Software, know our stuff.
Happy hacking!
|
|
| Back to top |
|
 |
|