Friday, September 03, 2010

gnocl::pointer stock item

After spending too much time this afternoon trying to overcome what might be a Tcl side issue, I decided to abandon the creation of cursors from stock item icons. Ok, it was a daft idea. The code used to determine and load the right icon was sound, it's used in the creation all widgets that use markup strings, but for some reason it just kept crashing the interpreter. It was highly unlikely that such a feature would ever be used anyway. If someone needs to drag an icon around on screen, its best achieved repositioning an undecorated window.

So, if anyone tries to create a weird cursor with something like:

gnocl::pointer set -widget $win1 -image "%#New" -offset {25 25}

then, be warned! It will result in an Error!


No comments: