[Gnocl -the Tcl/Gtk Bindings] Paned motion events now handled

4 views
Skip to first unread message

William J Giddings

unread,
Nov 20, 2014, 4:20:38 PM11/20/14
to gn...@googlegroups.com
I'm not quite certain why, but the GtkPaned API has no direct support for tracking the events associated with the mouse pointer. Signals are implemented, but only for keyboard operations. The docs give useful function to isolate the handle gdkwindow but why didn't they go the whole hog and implement a proper binding? Well we have it now in Gnocl!  

To test this feature get the latest nighly build.

set p [gnocl::paned \
-children [list $b1 $ebox] \
-resize 1 -shrink 1 \
-onHandleMotion {
## puts "MOVING w= %w x= %x X= %X p= %p s=%s"
if {"%s"== "256" } {
foreach {x y w h} [gnocl::winfo geometry %w] {}
_set_width $paned [expr $w - "%p"]
gnocl::update
}
}]


--
Posted By William J Giddings to Gnocl -the Tcl/Gtk Bindings on 11/20/2014 09:20:00 pm
Reply all
Reply to author
Forward
0 new messages