Author Topic: Cursor change event  (Read 16503 times)

jj2007

  • Member
  • *****
  • Posts: 13957
  • Assembly is fun ;-)
    • MasmBasic
Re: Cursor change event
« Reply #15 on: December 14, 2012, 02:01:11 PM »
Very cute, Dave, thanks :t

MichaelW

  • Global Moderator
  • Member
  • *****
  • Posts: 1196
Re: Cursor change event
« Reply #16 on: December 14, 2012, 06:55:36 PM »
It works well Dave, but on my systems one of the 4 possible orientations at the intersection is missing.
Well Microsoft, here’s another nice mess you’ve gotten us into.

dedndave

  • Member
  • *****
  • Posts: 8828
  • Still using Abacus 2.0
    • DednDave
Re: Cursor change event
« Reply #17 on: December 14, 2012, 08:12:27 PM »
you mean the ne/sw cursor ?
this particular application didn't really warrant the forth cursor

there are 3 cases:
you are on the vertical divider
you are on the horizontal divider
you are on both dividers

tell me what the 4th case is, and i'll put the cursor on it   :biggrin:
(and, before it hits the page, i am not counting "you are not on any divider" as a case - lol)

dedndave

  • Member
  • *****
  • Posts: 8828
  • Still using Abacus 2.0
    • DednDave
Re: Cursor change event
« Reply #18 on: December 15, 2012, 03:12:06 AM »
i made a few minor changes and did some cleanup
updated the previous post with a new attachment

MichaelW

  • Global Moderator
  • Member
  • *****
  • Posts: 1196
Re: Cursor change event
« Reply #19 on: December 15, 2012, 03:30:46 AM »
The Microsoft name for the one missing is Diagonal Resize 2, but I see now that the functionality is there for dragging in both diagonal directions. I was expecting different cursors for the two directions, but I now think it would be a needless complexity.
Well Microsoft, here’s another nice mess you’ve gotten us into.

Magnum

  • Member
  • *****
  • Posts: 2399
Re: Cursor change event
« Reply #20 on: December 15, 2012, 04:07:10 AM »
That is a pretty neat.

Will put that in my source code directory.

Andy
Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org

dedndave

  • Member
  • *****
  • Posts: 8828
  • Still using Abacus 2.0
    • DednDave
Re: Cursor change event
« Reply #21 on: December 15, 2012, 04:38:33 AM »
Michael,
if you look at the _main source, i do in fact load the 4th cursor
that's because i used it in the program from which i copied this code
that window composition is reversable   :P
and, i figured that someone else may want it
the LoadCursor ID names are... (there are more - see LoadCursor)
IDC_SIZENS
IDC_SIZEWE
IDC_SIZENWSE
IDC_SIZENESW
i think the "diagonal resize" name is for the cursor file, itself (C:\Windows\Cursors)

thanks Andy   :t

dedndave

  • Member
  • *****
  • Posts: 8828
  • Still using Abacus 2.0
    • DednDave
Re: Cursor change event
« Reply #22 on: December 15, 2012, 04:46:07 AM »
for this window, it made sense to use both diagonal sizing cursors
i use the ne/sw one for the first case and the nw/se one for the second