Hello colleague,
On Tuesday, September 1, 2015 at 8:17:18 PM UTC+2, Dömötör Gulyás wrote:
>
> I'm trying to build a scrollable Cario canvas in a Tk GUI, but I keep
> getting "TclError("unknown option -xscrollcommand")" trying to add the
> scrollbars, apparently the canvas is a frame ("winfo class" returns
> "Frame"), which is not scrollable.
>
somebody with more know how about Tk.jl should comment on this, but i think
you are right. The Tk.jl Cairo Canvas is using a 'plain' window/widget to
provide a cairo surface and context and doesn't fully replace the original
tk Canvas who has drawing methods of it's own - not cairo based.
> Is there a way to add scrollbars to a Cairo canvas, or can something be
> done to make it the proper widget class?. I've tried changing the
> constructor from c = TkWidget(parent, "ttk::frame") to c = TkWidget(parent,
> "ttk::canvas"), but that doesnt seem to help, and I see no other obvious
> place to change.
>
> Anyone have any idea how to go about this? I've also tried to build the
> GUI in Gtk, but that hasn't worked out for other reasons.
>
I'd be interested in the Gtk example - even if it's not working. I'd assume
that add_view_viewport is the issue.