This patch adds two functions 'axis_xview' and
'axis_yview' to the BLT graph object, which can be used
in scrollbars as 'command' function. For example:
self.xScrollbar=Scrollbar(root,command=self.gPlot.axis_xview)
(and of course something like:
self.gPlot.xaxis_configure(scrollcommand=self.xScrollbar.set)
)
Since I don't have any idea what I was doing ;-) - use
it on your own risk (and if there is an easier way of
doing this, please let me know).
Btw: I had to use 'patch -l' to succesfully apply the
patch.
Cheeers
Joerg
patch to support axis_xview and axis_yview
Logged In: YES
user_id=253313
Oops - it sems that I forgot to attach the patch last??
Well, here it is again for Pmw1.2. To apply it, cd into
Pmw_1_2/lib directory and do a:
patch -p0 <scrollbar.patch
Greg: I would appreciate it if you could add this to the
next Pmw release :)