Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

A NexTk Demo (an image viewer)

6 views
Skip to first unread message

George Peter Staplin

unread,
Dec 9, 2007, 3:32:35 AM12/9/07
to

This is a demo of NexTk for Linux and Win32:
http://www.xmission.com/~georgeps/implementation/software/demo/NexTk_image_viewer_937.kit


This demonstrates ntk_panedwindow, ntk_listbox, ntk_grid, ntk_scrollbar,
ntk_button, ntk_label, and the rendering capabilities.


Directions:

Mouse button 1 is for panning an image. Click and drag to pan.

Mouse button 2 rotates an image. Click once for a 90 degree rotation.
Click twice for 180 degrees of rotation, and so on.

Rotations in NexTk from [-360,360] are possible as well.

Mouse button 3 scales an image. Click 3, drag until you like the size,
and release.


You can use the following tclkits to run it:
This is a Tk-less tclkit that I've tested and used for the demo in
Windows XP (Note: it tends to work better than the regular tclkit with
Tk):
http://www.equi4.com/pub/tk/8.5b1/tclkitsh-win32.upx.exe


This is what I use for testing in Ubuntu Linux:
http://www.equi4.com/pub/tk/8.5b1/tclkit-linux-x86.gz

The Win32 demo has a bit of a problem on exit with cleanup_instance. I
would appreciate review and advice with the Win32 paths. The Win32 code
I also suspect could be made to be faster, so that it operates as
smoothly as the X11/Linux version.


Thanks, and I hope you like the demo app,

George

0 new messages