Page 1 of 1
cmPan without Scrollbars

Posted:
February 11th, 2007, 5:43 pm
by HPW
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

Posted:
February 12th, 2007, 4:31 am
by Kambiz
The only solution that I can imagine is rewriting the code.


Posted:
February 12th, 2007, 6:24 am
by HPW
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.

Posted:
February 12th, 2007, 8:29 am
by Johnny_Bit
there is Q&D way: enable it whenever you'll need them and then quickly and quietly disable them.

Posted:
February 12th, 2007, 4:30 pm
by HPW
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.

Posted:
February 12th, 2007, 4:44 pm
by Johnny_Bit
That's what the Q&D way is about!

Posted:
February 12th, 2007, 7:06 pm
by HPW
That's what the Q&D way is about!
The Q&D way works now in the just released new version!


Posted:
February 12th, 2007, 7:27 pm
by Kambiz

What a simple solution!

Posted:
February 12th, 2007, 8:36 pm
by Johnny_Bit
We, coders of the Free Software, know our stuff.
Happy hacking!