![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.tcl archiveRe: Adding new ItemType to Canvas
From: George Peter Staplin <georgeps@xmission.com>
Date: Mon Sep 19 2005 - 12:36:56 CEST
on Jingzhao wrote:
> However, to compile the file, the following header files are required:
For your own canvas item type you don't need the internal headers.
I've written my own canvas item type using just the public headers. The
/* should be 0 or 1 */
You may note that most Tk_ItemType definitions just use TK_CONFIG_OBJS,
Another thing I found undocumented was that Tk_ConfigureWidget needs
if (TCL_OK != Tk_ConfigureWidget (interp, Tk_CanvasTkwin (canvas),
Unfortunately this is somewhat hackish, because not all pointers are
Have fun,
George
|