selection overlay
From: Keith Vetter (keithv_at_clover.net)
Date: 03/30/04
- Next message: Frederick Shorts: "Re: Rev Andrzej Turdence == BTov"
- Previous message: Victor Wagner: "Re: makefile for compiling ready-made tcl callable C source"
- Next in thread: Ralf Fassel: "Re: selection overlay"
- Reply: Ralf Fassel: "Re: selection overlay"
- Reply: Bruce Hartweg: "Re: selection overlay"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 30 Mar 2004 04:46:08 -0800
I'm having trouble programming a "print selection overlay" and was
wondering if somebody could provide some help. By "print selection
overlay" I mean a box with light stippling displayed on top of a
canvas which lets the user define what should get printed. The user
can grab any side or corner to resize the box, or move the box as a
whole, much like the user can resize a Windows window.
The problem is the resize behavior is tough--try playing with resize a
Windows window and see how complicated it really is.
First, I want the cursor to change shape when the mouse is over an
edge or corner but a) which shape depends on which edge or corner and
b) the cursor should change back when the mouse gets far enough inside
the box. The former you can solve with binding to <Enter> and doing
some math but the latter is not obvious how to do it.
Second, according to the man page, only Windows has the proper cursor
shape for the corners--size_nw_se and size_ne_sw (diagonal double
headed arrows). What cursor should I use on non-Windows platforms?
I'm surprised that this hasn't already been invented.
Keith
- Next message: Frederick Shorts: "Re: Rev Andrzej Turdence == BTov"
- Previous message: Victor Wagner: "Re: makefile for compiling ready-made tcl callable C source"
- Next in thread: Ralf Fassel: "Re: selection overlay"
- Reply: Ralf Fassel: "Re: selection overlay"
- Reply: Bruce Hartweg: "Re: selection overlay"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|