selection overlay

From: Keith Vetter (keithv_at_clover.net)
Date: 03/30/04


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



Relevant Pages

  • Re: selection overlay
    ... Keith Vetter wrote: ... much like the user can resize a Windows window. ... > b) the cursor should change back when the mouse gets far enough inside ...
    (comp.lang.tcl)
  • Re: XP Outlook express Message Preview Mode problem
    ... You have to place the cursor where you want to do the stretch and watch for it to turn into a double arrow, ... Close all other windows except this one and use the cursor to drag the message to full screen size. ... I have done that but do not get the resize icon to perform the resize. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: toplevel resize handles quirky on windows
    ... Since this behavior is unique to tcl/tk, ... the professionalism of programs written in tcl/tk vs. native windows ... behavior described in the bug report (cursor flashing to the resize ... appearance, not actual resize behavior. ...
    (comp.lang.tcl)
  • Re: New Dell; have XP, new nVidia card - cant see Start
    ... Does your keyboard have a "Windows" key? ... Another possibility is that you have "resized" the task bar to zero ... If it is the case then move your cursor to the bottom edge ... it should now change to a up down "resize" cursor. ...
    (microsoft.public.windowsxp.video)
  • Ten Mouse Cursor Problems
    ... While using the mouse (windows xp) I may encounter any of the below ... Mouse cursor unmanageable. ... just one word will highlight, I make several attempts to do the same click ...
    (microsoft.public.windowsxp.help_and_support)